/* ============================================================
   Home Equity Guide — LEAD FORM (LendingTree-style)
   Palette: black · white · green · a touch of gold
   Fonts: Lora (serif headings) · Lato (sans body)
   ============================================================ */

.lead-form-shell {
  /* Scoped palette — recolors all form components to LendingTree green
     without affecting the rest of the site. */
  --emerald:        #2EA24F;
  --emerald-bright: #34B358;
  --emerald-dark:   #228040;
  --forest:         #14402E;
  --paper:          #F5F7F6;
  --header-dark:    #0F1A14;
  --ink:            #16241D;
  --stone:          #5B6760;
  --line:           #E2E7E3;
  font-family: 'Lato', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ===== HEADER (dark bar, centered logo) ===== */
.form-header {
  background: var(--header-dark);
  border-bottom: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  height: 56px;
  padding: 0 14px;
  position: sticky;
  justify-content: center;
}
.form-header .logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-width: calc(100% - 104px);
}
.form-header .brand-logo {
  display: block;
  width: auto;
  height: 30px;
  max-width: 100%;
  object-fit: contain;
}
.form-header .logo {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 21px;
  color: var(--gold);
  letter-spacing: 0;
}
.form-header .logo .sec { color: var(--gold); }
.form-header .logo .eq  { color: var(--emerald); }

.header-back {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  visibility: hidden;
}
.header-back.visible { visibility: visible; }
.header-back svg { width: 24px; height: 24px; }

.header-disclosures {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  opacity: 0.82;
  font-size: 14px;
  font-weight: 400;
}
.header-disclosures:hover { opacity: 1; color: #fff; text-decoration: none; }

/* ===== PAGE LAYOUT ===== */
.form-page {
  background: var(--paper);
  min-height: 100vh;
  padding: 18px 18px 40px;
}
.form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

/* ===== PROGRESS BAR (inset rounded pill) ===== */
.progress-bar-track {
  width: 100%;
  height: 6px;
  background: #DDE3DE;
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
  transition: width 0.4s cubic-bezier(0.4,0,0.2,1);
}

/* ===== EYEBROW ===== */
.form-eyebrow {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 13px;
  color: var(--emerald);
  margin: 22px 0 4px;
}

/* ===== FORM BODY ===== */
.form-card-body { padding: 26px 0 0; }

.step-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.16;
  letter-spacing: -0.01em;
  text-align: center;
}
.step-subtitle {
  font-size: 15px;
  color: var(--stone);
  margin-bottom: 24px;
  line-height: 1.5;
  text-align: center;
}

/* ===== OPTION CARDS (single column, white, soft shadow) ===== */
.options-grid,
.options-grid.two-col {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 4px;
}

.option-card,
.options-grid.two-col .option-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s;
  position: relative;
  user-select: none;
  background: #fff;
  text-align: left;
  width: 100%;
  font-family: 'Lato', sans-serif;
  box-shadow: 0 1px 2px rgba(16,32,26,0.06), 0 2px 10px rgba(16,32,26,0.05);
}
.option-card:hover {
  border-color: var(--emerald);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16,32,26,0.10);
}
.option-card.selected {
  border-color: var(--emerald);
  box-shadow: 0 0 0 1.5px var(--emerald), 0 4px 16px rgba(46,162,79,0.16);
}
.option-card.selected .check-mark { opacity: 1; }

.option-icon,
.options-grid.two-col .option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  font-size: 26px;
  line-height: 1;
}
.option-icon svg { width: 28px; height: 28px; stroke: var(--emerald); }

.option-text { flex: 1; min-width: 0; }
.option-label,
.options-grid.two-col .option-label {
  font-size: 16.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
  line-height: 1.25;
}
.option-desc {
  font-size: 13px;
  color: var(--stone);
  margin-top: 3px;
  display: block;
  line-height: 1.35;
  font-weight: 400;
}

/* credit score dots */
.score-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin: 0 8px; }

/* ===== MULTI-SELECT GRID (checkboxes) ===== */
.options-grid.multi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 4px;
}
.option-card.opt-multi {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  padding: 16px 14px;
  min-height: 86px;
}
.opt-multi .option-icon { width: 26px; height: 26px; }
.opt-multi .option-icon svg { width: 25px; height: 25px; }
.opt-multi .option-label { font-size: 15.5px; padding-right: 22px; }
.opt-multi .check-box {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 21px;
  height: 21px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.opt-multi.selected .check-box {            /* a touch of GOLD when checked */
  background: var(--gold);
  border-color: var(--gold);
}
.opt-multi.selected .check-box::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* check mark — a touch of GOLD */
.check-mark {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.check-mark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid white;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
}

/* ===== DOLLAR INPUT ===== */
.dollar-input-wrap { position: relative; margin-bottom: 18px; }
.dollar-prefix {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 600;
  color: var(--stone);
  pointer-events: none;
  font-family: 'Lora', serif;
}
.dollar-input {
  width: 100%;
  height: 68px;
  font-size: 28px;
  font-weight: 600;
  font-family: 'Lora', serif;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 18px 0 44px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  text-align: center;
}
.dollar-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(46,162,79,0.12); }
.dollar-input.error { border-color: var(--error); }

/* ===== RANGE SLIDER ===== */
.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #DDE3DE;
  border-radius: 999px;
  outline: none;
  margin: 14px 0 8px;
  cursor: pointer;
}
.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: 0 1px 5px rgba(16,32,26,0.25);
}
.range-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  border: 2px solid var(--ink);
  box-shadow: 0 1px 5px rgba(16,32,26,0.25);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--stone);
  margin-bottom: 6px;
}

/* ===== HELPER BOXES ===== */
.equity-helper {
  background: #ECF6EE;
  border: 1px solid #D5E9DA;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14.5px;
  color: var(--forest);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  line-height: 1.5;
  text-align: center;
}
.equity-helper strong { font-size: 15.5px; color: var(--emerald-dark); }

.equity-warning {
  background: #fff5f0;
  border: 1px solid #f5c4a8;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: #b34700;
  margin-top: 8px;
  display: none;
  text-align: center;
}
.equity-warning.show { display: block; }

/* ===== EQUITY BOX (step 6 — two clean rows) ===== */
.equity-box {
  background: #ECF6EE;
  border: 1px solid #D5E9DA;
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 20px;
}
.equity-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  font-size: 15.5px;
}
.equity-row + .equity-row { border-top: 1px solid #D5E9DA; }
.equity-row span { color: var(--stone); font-weight: 500; }
.equity-row strong {
  font-family: 'Lora', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--emerald-dark);
}

/* ===== NO MORTGAGE TOGGLE ===== */
.no-mortgage-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-size: 14.5px;
  font-family: 'Lato', sans-serif;
  color: var(--stone);
  margin-bottom: 16px;
  transition: all 0.15s;
  text-align: left;
}
.no-mortgage-btn .toggle-icon {
  width: 22px; height: 22px;
  border: 2px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  transition: all 0.15s;
}
.no-mortgage-btn.active {
  border-color: var(--emerald);
  background: #ECF6EE;
  color: var(--forest);
  font-weight: 700;
}
.no-mortgage-btn.active .toggle-icon {
  background: var(--emerald);
  border-color: var(--emerald);
}
.no-mortgage-btn.active .toggle-icon::after {
  content: '';
  position: absolute;
  left: 6px; top: 2px;
  width: 5px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}

/* ===== TEXT INPUTS ===== */
.text-input {
  width: 100%;
  height: 54px;
  font-size: 16px;
  color: var(--ink);
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 0 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
  font-family: 'Lato', sans-serif;
  margin-bottom: 12px;
}
.text-input:focus { border-color: var(--emerald); box-shadow: 0 0 0 3px rgba(46,162,79,0.12); }
.text-input.error { border-color: var(--error); }

.text-input.zip-input {
  width: 190px;
  height: 68px;
  font-size: 28px;
  font-weight: 700;
  font-family: 'Lora', serif;
  text-align: center;
  letter-spacing: 6px;
  margin: 0 auto;
  display: block;
}
.zip-city {
  text-align: center;
  font-size: 14.5px;
  color: var(--emerald-dark);
  font-weight: 700;
  margin-top: 10px;
  min-height: 22px;
}

.input-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--stone);
  margin-bottom: 6px;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

select.text-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235B6760' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
}

/* ===== DOB ===== */
.dob-row { display: grid; grid-template-columns: 2fr 1fr 2fr; gap: 11px; margin-bottom: 12px; }

/* ===== PHONE ===== */
.phone-wrap { position: relative; }
.phone-flag {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  pointer-events: none;
}
.phone-input { padding-left: 76px !important; }

/* ===== ERROR MESSAGES ===== */
.error-msg {
  font-size: 13px;
  color: var(--error);
  margin-top: -7px;
  margin-bottom: 11px;
  display: none;
}
.error-msg.show { display: block; }

/* ===== CONTINUE BUTTON (green pill, LendingTree-style) ===== */
.next-btn-wrap { margin-top: 26px; }
.next-btn-wrap .btn-primary,
.lender-btn {
  font-family: 'Lato', sans-serif;
}
.next-btn-wrap .btn-primary {
  width: 100%;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 26px;
  cursor: pointer;
  box-shadow: 0 10px 22px -10px rgba(46,162,79,0.6);
  transition: background 0.18s, transform 0.16s, box-shadow 0.18s;
}
.next-btn-wrap .btn-primary:hover {
  background: var(--emerald-dark);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -10px rgba(46,162,79,0.7);
}
.next-btn-wrap .btn-primary:active { transform: scale(0.99); }

.cta-sub-text {
  font-size: 12px;
  color: var(--stone);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}
.cta-sub-text a { color: var(--stone); text-decoration: underline; }

/* ===== SECURITY REASSURANCE (trust footer, below divider) ===== */
.form-security {
  margin: 14px auto 0;
  width: fit-content;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.form-security-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.3;
}
.form-security-item svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ink); }

/* ===== CREDIT-MINIMUM DISCLAIMER (above the divider) ===== */
.form-credit-note {
  text-align: center;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--stone);
  margin: 22px auto 0;
  max-width: 440px;
}
.form-credit-note strong { color: var(--ink); font-weight: 700; }

/* ===== INTRO / OWNERSHIP-GATE PAGE ===== */
.intro-content { padding-top: 22px; }
.intro-content .step-title { margin-bottom: 10px; }
.intro-content .step-subtitle { margin-bottom: 20px; }

.intro-reqs {
  margin-bottom: 22px;
}
.intro-reqs-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--emerald-dark);
  text-align: center;
  margin-bottom: 12px;
}
.intro-req {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
  padding: 6px 0;
}
.intro-req svg { width: 22px; height: 22px; flex-shrink: 0; stroke: var(--emerald); }

/* required confirmation checkboxes */
.intro-check {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 14px 15px;
  margin-bottom: 10px;
  cursor: pointer;
  text-align: left;
  font-family: 'Lato', sans-serif;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.intro-check:last-child { margin-bottom: 0; }
.intro-check .check-box {
  width: 23px;
  height: 23px;
  border: 2px solid var(--line);
  border-radius: 6px;
  flex-shrink: 0;
  position: relative;
  background: #fff;
  transition: background 0.15s, border-color 0.15s;
}
.intro-check.checked { border-color: var(--emerald); box-shadow: 0 0 0 1px var(--emerald); }
.intro-check.checked .check-box { background: var(--gold); border-color: var(--gold); }  /* touch of gold */
.intro-check.checked .check-box::after {
  content: '';
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: 2px solid #fff;
  border-top: none; border-left: none;
  transform: rotate(45deg);
}
.intro-check-label { font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.intro-check.error { border-color: var(--error); }

.intro-nudge { display: none; text-align: center; color: var(--error); font-size: 13px; margin-top: 12px; }
.intro-nudge.show { display: block; }

.intro-q {
  font-family: 'Lora', Georgia, serif;
  font-size: 21px;
  font-weight: 600;
  color: var(--ink);
  text-align: center;
  margin: 4px 0 14px;
}
.intro-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.intro-yesno .option-card { justify-content: center; text-align: center; padding: 20px 14px; }
.intro-yesno .option-label { font-size: 17px; }

/* ===== NOT-QUALIFIED PAGE ===== */
.nq-content { text-align: center; padding-top: 34px; }
.nq-icon {
  width: 66px; height: 66px;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #ECF6EE;
  color: var(--emerald-dark);
}
.nq-icon svg { width: 34px; height: 34px; }
.nq-content .step-title { margin-bottom: 12px; }
.nq-content .step-subtitle { margin-bottom: 26px; max-width: 420px; margin-left: auto; margin-right: auto; }
.nq-home { display: block; text-align: center; margin-top: 18px; color: var(--stone); font-size: 14px; text-decoration: underline; }

/* ===== STEP TRANSITIONS ===== */
.form-step { animation: fadeSlideIn 0.22s ease; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateX(18px); }
  to   { opacity: 1; transform: translateX(0); }
}
.form-step.going-back { animation: fadeSlideInLeft 0.22s ease; }
@keyframes fadeSlideInLeft {
  from { opacity: 0; transform: translateX(-18px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* ===== RESULTS STEP ===== */
.results-loading { text-align: center; padding: 48px 20px; }
.spinner {
  width: 52px; height: 52px;
  border: 4px solid #DDE3DE;
  border-top-color: var(--emerald);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.results-loading h3 { font-family: 'Lora', serif; font-size: 21px; font-weight: 600; margin-bottom: 8px; color: var(--ink); }
.results-loading p { color: var(--stone); font-size: 14px; }

.results-content { display: none; }
.results-header { text-align: center; padding: 8px 0 18px; }
.results-header .emoji { font-size: 38px; display: block; margin-bottom: 10px; }
.results-header h2 { font-family: 'Lora', serif; font-size: 24px; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.results-header p { font-size: 14px; color: var(--stone); }

.lender-card {
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
  background: #fff;
  position: relative;
  box-shadow: 0 1px 2px rgba(16,32,26,0.06), 0 2px 10px rgba(16,32,26,0.05);
}
.lender-card:hover { box-shadow: 0 4px 16px rgba(16,32,26,0.10); transform: translateY(-1px); }
.lender-card-featured { border-color: var(--emerald); box-shadow: 0 0 0 1.5px var(--emerald), 0 4px 16px rgba(46,162,79,0.16); padding-top: 28px; }
.lender-featured-badge {
  position: absolute; top: -1px; left: 16px;
  background: var(--emerald); color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 0 0 8px 8px;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.lender-tag { font-size: 12px; color: var(--emerald-dark); font-weight: 700; margin-bottom: 3px; }
.lender-logo {
  width: 52px; height: 52px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff; flex-shrink: 0;
  font-family: 'Lora', serif;
}
/* lender logo image with initials fallback */
.lender-badge { flex: none; width: 112px; display: flex; align-items: center; justify-content: center; }
.lender-logo-img { max-width: 112px; max-height: 54px; object-fit: contain; display: block; }
.lender-initials {
  display: none;            /* shown only if the logo image fails to load */
  width: 52px; height: 52px; border-radius: 10px;
  align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; color: #fff;
  font-family: 'Lora', serif;
}
.lender-info { flex: 1; min-width: 0; }
.lender-name { font-weight: 700; font-size: 15px; margin-bottom: 2px; color: var(--ink); }
.lender-rate { font-family: 'Lora', serif; font-size: 22px; font-weight: 700; color: var(--emerald-dark); line-height: 1; }
.lender-rate-label { font-size: 11.5px; color: var(--stone); margin-left: 3px; }
.lender-details { font-size: 12px; color: var(--stone); margin-top: 2px; }
.lender-btn {
  background: var(--emerald); color: #fff; border: none; border-radius: 999px;
  padding: 10px 18px; font-size: 13.5px; font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: background 0.15s; flex-shrink: 0;
}
.lender-btn:hover { background: var(--emerald-dark); }

.summary-box { background: #ECF6EE; border-radius: 12px; padding: 16px; margin-top: 18px; border: 1px solid #D5E9DA; }
.summary-box h4 { font-size: 11.5px; font-weight: 700; margin-bottom: 10px; color: var(--stone); text-transform: uppercase; letter-spacing: 0.06em; }
.summary-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid #D5E9DA; font-size: 13.5px; }
.summary-row:last-child { border-bottom: none; }
.summary-row span:first-child { color: var(--stone); }
.summary-row span:last-child { font-weight: 700; color: var(--ink); }

/* ===== CALL CTA (hear all offers) ===== */
.call-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 18px;
  padding: 18px 22px;
  text-decoration: none;
  box-shadow: 0 10px 22px -10px rgba(46,162,79,0.6);
  transition: background 0.18s, transform 0.16s;
}
.call-cta:hover { background: var(--emerald-dark); transform: translateY(-1px); text-decoration: none; color: #fff; }
.call-cta:active { transform: scale(0.99); }
.call-cta svg { width: 20px; height: 20px; }
.call-sub { text-align: center; font-size: 12.5px; color: var(--stone); margin-top: 10px; }

/* ===== CLOSING NOTE (broker follow-up) ===== */
.results-note {
  margin-top: 16px;
  padding: 16px 18px;
  background: var(--sage, #ECF6EE);
  border: 1px solid #D5E9DA;
  border-left: 3px solid var(--emerald);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--forest);
  text-align: center;
}

/* ===== DISABLED INPUT ===== */
.disabled-input { background: #F1F4F2 !important; color: var(--stone) !important; cursor: not-allowed; }

/* ============================================================
   FULL-SCREEN MOBILE APP LAYOUT
   One clean screen — no page scroll, no zoom. The body area
   scrolls internally only if a step is taller than the space.
   ============================================================ */
@media (max-width: 600px) {
  html:has(.lead-form-shell),
  html:has(.lead-form-shell) body { height: 100%; }

  .lead-form-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100vh;                      /* fallback */
    height: 100svh;                     /* small viewport height */
    height: var(--app-height, 100svh);  /* exact visible height set by JS */
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .lead-form-shell .site-header {
    position: relative;
    height: calc(52px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
    flex: 0 0 auto;
  }
  .form-header .brand-logo { height: 28px; }
  .lead-form-shell .site-footer { display: none; }

  .form-page {
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
  }
  .form-wrapper {
    height: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
  }
  .progress-bar-track,
  .form-eyebrow,
  .form-security,
  .form-credit-note { flex: 0 0 auto; }

  .progress-bar-track { height: 5px; }
  .form-credit-note { margin-top: 10px; font-size: 10.5px; line-height: 1.35; }

  .form-eyebrow { margin: 16px 0 4px; }

  .form-card-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-top: 14px;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .form-card-body::-webkit-scrollbar { display: none; }

  .step-title { font-size: clamp(23px, 7vw, 27px); line-height: 1.12; }
  .step-subtitle { margin-bottom: 18px; line-height: 1.4; }
  .option-card,
  .options-grid.two-col .option-card { min-height: 58px; padding: 14px 15px; gap: 13px; }
  .option-icon,
  .options-grid.two-col .option-icon { width: 27px; height: 27px; }
  .option-icon svg { width: 25px; height: 25px; }
  .next-btn-wrap { margin-top: 20px; padding-bottom: 2px; }
  .next-btn-wrap .btn-primary { min-height: 54px; padding: 15px 22px; font-size: 17px; }

  .form-security {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
  }
  .form-security-item { justify-content: center; gap: 6px; font-size: 11.5px; line-height: 1.2; }
  .form-security-item svg { width: 17px; height: 17px; }
  .lender-card { flex-wrap: wrap; }
  .lender-btn { width: 100%; text-align: center; }
}

@media (max-width: 360px) {
  .form-page { padding-left: 12px; padding-right: 12px; }
  .form-header .brand-logo { height: 26px; }
  .option-label,
  .options-grid.two-col .option-label { font-size: 15.5px; }
  .option-desc { font-size: 12.5px; }
  .dob-row { grid-template-columns: 1.6fr 1fr 1.45fr; gap: 7px; }
  select.text-input { padding-left: 10px; padding-right: 28px; background-position: right 9px center; }
}

/* Shorter / smaller phones — trim spacing only, keep it legible */
@media (max-width: 600px) and (max-height: 720px) {
  .form-eyebrow { margin: 10px 0 2px; font-size: 12px; }
  .step-title { font-size: 23px; margin-bottom: 6px; }
  .step-subtitle { margin-bottom: 16px; font-size: 14px; }
  .option-card { padding: 14px 16px; }
  .options-grid, .options-grid.two-col { gap: 10px; }
  .options-grid.multi-grid { gap: 9px; }
  .option-card.opt-multi { min-height: 74px; padding: 12px 12px; gap: 7px; }
  .opt-multi .option-label { font-size: 14.5px; }
  .dollar-input { height: 60px; }
  .form-security { margin-top: 7px; padding-top: 8px; gap: 6px; }
  .form-security-item { font-size: 10.5px; }
  .form-credit-note { margin-top: 8px; font-size: 10px; line-height: 1.3; }
}

/* Full-width date fields prevent mobile select text from clipping. */
.dob-row { grid-template-columns:minmax(0,1fr); gap:12px; }
.dob-row > div { min-width:0; }
.dob-row select { width:100%; min-width:0; box-sizing:border-box; }
.btn-primary:disabled { opacity:.45; cursor:not-allowed; box-shadow:none; }

.range-slider:disabled { opacity:.3;cursor:not-allowed;filter:grayscale(1); }
.thanks-call,.thanks-book {display:flex;justify-content:center;align-items:center;text-align:center;text-decoration:none;width:100%;margin-top:20px;}
.heloc-thanks .summary-row strong {text-align:right;max-width:60%;overflow-wrap:anywhere;}
