/* assets/css/signup.css
   Signup page only. High contrast, elderly-friendly, premium + clean.
   Intentionally overrides the dark/overlay styling from main.css within .kmd-signup.
*/

:root{
  --kmd-blue: #1d4ed8;
  --kmd-blue-2: #2563eb;
  --kmd-ink: #0b1220;
  --kmd-muted: #445066;
  --kmd-border: rgba(15, 23, 42, .12);
  --kmd-shadow: 0 18px 60px rgba(2, 6, 23, .10);
  --kmd-shadow-2: 0 10px 28px rgba(2, 6, 23, .10);
  --kmd-radius: 18px;
  --kmd-radius-lg: 22px;
}

/* Full-page background for signup only (no need to touch body class) */
.kmd-signup{
  position: relative;
  isolation: isolate;
  color: var(--kmd-ink);
}

.kmd-signup::before{
  content:"";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 15% 15%, rgba(37, 99, 235, .18), transparent 55%),
    radial-gradient(900px 500px at 85% 25%, rgba(29, 78, 216, .12), transparent 55%),
    linear-gradient(180deg, #f6f8ff 0%, #f3f6ff 35%, #ffffff 100%);
}

/* Ensure bootstrap text utilities don't inherit a dark theme look */
.kmd-signup .text-muted{ color: rgba(68, 80, 102, .85) !important; }

/* HERO */
.kmd-signup-hero{
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (min-width: 992px){
  .kmd-signup-hero{
    grid-template-columns: 1.35fr .65fr;
    align-items: start;
    gap: 18px;
    margin-bottom: 22px;
  }
}

.kmd-signup-title{
  font-weight: 900;
  letter-spacing: -0.03em;
  margin: 0 0 8px 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.07;
  color: var(--kmd-ink);
}

.kmd-signup-subtitle{
  margin: 0;
  max-width: 70ch;
  font-size: 1.10rem;
  line-height: 1.55;
  color: var(--kmd-muted);
}

/* Callout */
.kmd-signup-callout{
  margin-top: 14px;
  border-radius: var(--kmd-radius);
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(37, 99, 235, .08);
  border: 1px solid rgba(37, 99, 235, .18);
  box-shadow: 0 10px 24px rgba(2, 6, 23, .06);
}

.kmd-signup-callout__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(29, 78, 216, .12);
  color: var(--kmd-blue);
  flex: 0 0 auto;
}

.kmd-signup-callout__text{
  color: var(--kmd-ink);
  line-height: 1.45;
}

/* Support card */
.kmd-support-card{
  border-radius: var(--kmd-radius);
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--kmd-border);
  box-shadow: var(--kmd-shadow-2);
}

.kmd-support-card__title{
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--kmd-ink);
}

.kmd-support-card__body{
  color: var(--kmd-muted);
  line-height: 1.5;
}

.kmd-support-phone{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(29, 78, 216, .10);
  border: 1px solid rgba(29, 78, 216, .20);
  color: var(--kmd-ink);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.kmd-support-phone:hover{
  transform: translateY(-1px);
  background: rgba(29, 78, 216, .14);
  border-color: rgba(29, 78, 216, .26);
  color: var(--kmd-ink);
}

/* MAIN CARD */
.kmd-signup-card{
  border-radius: var(--kmd-radius-lg);
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--kmd-border);
  box-shadow: var(--kmd-shadow);
}

@media (min-width: 992px){
  .kmd-signup-card{ padding: 22px; }
}

/* STEPPER */
.kmd-stepper{
  position: relative;
  padding: 10px 8px 6px 8px;
}

.kmd-stepper__bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .08);
  overflow: hidden;
  margin-bottom: 14px;
}

.kmd-stepper__barFill{
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kmd-blue) 0%, var(--kmd-blue-2) 100%);
  transition: width .35s ease;
}

.kmd-stepper__steps{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.kmd-step{
  display: flex;
  gap: 10px;
  align-items: center;
  opacity: .60;
  transition: opacity .18s ease, transform .18s ease;
}

.kmd-step--active{
  opacity: 1;
  transform: translateY(-1px);
}

.kmd-step__dot{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: rgba(15, 23, 42, .06);
  border: 1px solid rgba(15, 23, 42, .12);
  color: rgba(15, 23, 42, .65);
}

.kmd-step--active .kmd-step__dot{
  background: rgba(29, 78, 216, .12);
  border-color: rgba(29, 78, 216, .28);
  color: var(--kmd-blue);
}

.kmd-step__label{
  font-weight: 900;
  letter-spacing: -0.01em;
  font-size: 1.00rem;
  color: rgba(11, 18, 32, .85);
}

/* PANELS */
.kmd-stepPanel{
  display: none;
  animation: kmdFadeUp .26s ease both;
}

.kmd-stepPanel--active{ display:block; }

@keyframes kmdFadeUp{
  from{ opacity: 0; transform: translateY(8px); }
  to{ opacity: 1; transform: translateY(0); }
}

.kmd-h2{
  font-weight: 950;
  letter-spacing: -0.03em;
  margin: 10px 0 0 0;
  color: var(--kmd-ink);
  font-size: clamp(22px, 2.1vw, 30px);
}

.kmd-muted{
  color: var(--kmd-muted);
  margin-top: 8px;
  font-size: 1.02rem;
  line-height: 1.5;
}

/* PLAN CARDS */
.kmd-plan{
  width: 100%;
  text-align: left;
  border-radius: var(--kmd-radius);
  padding: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, .14);
  color: var(--kmd-ink);
  box-shadow: 0 8px 22px rgba(2, 6, 23, .06);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
  min-height: 220px;
}

.kmd-plan:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 6, 23, .10);
  border-color: rgba(29, 78, 216, .25);
}

.kmd-plan[aria-pressed="true"]{
  border-color: rgba(29, 78, 216, .55);
  box-shadow: 0 18px 44px rgba(2, 6, 23, .12);
  outline: 4px solid rgba(29, 78, 216, .12);
}

.kmd-plan__top{
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.kmd-plan__name{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
}

.kmd-plan__price{
  font-weight: 950;
  font-size: 1.24rem;
  color: var(--kmd-ink);
}
.kmd-plan__price span{
  font-weight: 800;
  color: rgba(68, 80, 102, .9);
  font-size: .95rem;
}

.kmd-plan__desc{
  color: rgba(68, 80, 102, .95);
  margin-bottom: 10px;
  font-size: 1.02rem;
}

.kmd-plan__bullets{
  margin: 0;
  padding-left: 18px;
  color: rgba(68, 80, 102, .95);
  line-height: 1.55;
}

/* FORM ELEMENTS (bigger, clearer) */
.kmd-label{
  font-weight: 950;
  letter-spacing: -0.01em;
  color: rgba(11, 18, 32, .92);
}

.kmd-help{
  color: rgba(68, 80, 102, .9) !important;
}

.form-control-lg, .form-select-lg{
  border-radius: 14px;
  padding: 12px 14px;
  border-color: rgba(15, 23, 42, .16);
}

.form-control, .form-select{
  color: var(--kmd-ink);
  background-color: #fff;
}

.form-control:focus, .form-select:focus{
  border-color: rgba(29, 78, 216, .40);
  box-shadow: 0 0 0 .22rem rgba(29, 78, 216, .14);
}

.is-invalid{
  border-color: rgba(220, 38, 38, .55) !important;
  box-shadow: 0 0 0 .22rem rgba(220, 38, 38, .12) !important;
}

/* BUTTONS */
.kmd-btn-lg{
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 950;
  letter-spacing: -0.01em;
}

.btn-primary.kmd-btn-lg{
  background: linear-gradient(90deg, var(--kmd-blue) 0%, var(--kmd-blue-2) 100%);
  border: none;
  box-shadow: 0 12px 26px rgba(29, 78, 216, .22);
}

.btn-primary.kmd-btn-lg:hover{
  box-shadow: 0 16px 32px rgba(29, 78, 216, .26);
}

.btn-outline-secondary.kmd-btn-lg{
  border-color: rgba(15, 23, 42, .20);
  color: rgba(11, 18, 32, .90);
}

.btn-outline-secondary.kmd-btn-lg:hover{
  background: rgba(15, 23, 42, .04);
}

.kmd-link{
  font-weight: 950;
  text-decoration: none;
  color: rgba(29, 78, 216, .95);
}

.kmd-link:hover{
  text-decoration: underline;
  color: rgba(29, 78, 216, 1);
}

/* PASSWORD */
.kmd-passwordRow{
  display: flex;
  gap: 10px;
  align-items: center;
}

.kmd-btn-eye{
  border-radius: 14px;
  padding: 12px 14px;
}

.kmd-pwHints{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kmd-pill{
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, .05);
  border: 1px solid rgba(15, 23, 42, .10);
  color: rgba(68, 80, 102, .95);
  font-weight: 900;
  font-size: .92rem;
}

.kmd-pill.kmd-pill--good{
  background: rgba(29, 78, 216, .10);
  border-color: rgba(29, 78, 216, .22);
  color: rgba(29, 78, 216, .95);
}

/* REVIEW */
.kmd-review, .kmd-nextSteps, .kmd-success__box{
  border-radius: var(--kmd-radius);
  padding: 14px 14px;
  background: rgba(15, 23, 42, .03);
  border: 1px solid rgba(15, 23, 42, .10);
}

.kmd-review__row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 23, 42, .08);
}

.kmd-review__row:last-child{ border-bottom: 0; }

.kmd-review__label{
  color: rgba(68, 80, 102, .92);
  font-weight: 950;
}

.kmd-review__value{
  font-weight: 950;
  color: rgba(11, 18, 32, .94);
}

.kmd-nextSteps__title{
  font-weight: 950;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  color: var(--kmd-ink);
}

.kmd-nextSteps__list{
  margin: 0;
  padding-left: 18px;
  color: rgba(68, 80, 102, .98);
  line-height: 1.65;
  font-size: 1.02rem;
}

.kmd-nonumbers{
  list-style: none;
  padding-left: 0;
}

/* NAV ROW */
.kmd-navRow{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* SUCCESS */
.kmd-success{
  text-align: center;
  padding-top: 6px;
}

.kmd-success__icon{
  font-size: 46px;
  margin-bottom: 10px;
  color: rgba(16, 185, 129, .95); /* subtle green */
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce){
  .kmd-stepPanel{ animation: none; }
  .kmd-plan, .kmd-support-phone, .btn{ transition: none !important; }
}

/* Porting input status (spinner / check inside the textbox) */
.kmd-inputAffix{
  position: relative;
}

.kmd-inputStatus{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  pointer-events: none;
  color: rgba(68, 80, 102, .95);
}

.kmd-statusSpin,
.kmd-statusOk,
.kmd-statusBad{
  display: none;
}

.kmd-inputAffix.is-loading .kmd-statusSpin{ display: inline-flex; }
.kmd-inputAffix.is-ok .kmd-statusOk{ display: inline-flex; color: rgba(16, 185, 129, .95); }
.kmd-inputAffix.is-bad .kmd-statusBad{ display: inline-flex; color: rgba(220, 38, 38, .95); }

/* Give room for the status icon */
.kmd-inputAffix input{
  padding-right: 54px !important;
}

/* Carrier result message box */
.kmd-carrierResult{
  border-radius: var(--kmd-radius);
  padding: 12px 14px;
  background: rgba(29, 78, 216, .08);
  border: 1px solid rgba(29, 78, 216, .18);
  color: rgba(11, 18, 32, .92);
  line-height: 1.5;
}
