/* ── Font Awesome 4.7.0 — local font path override ── */
@font-face {
  font-family: 'FontAwesome';
  src: url('font-awesome-4.7.0/fonts/fontawesome-webfont.eot?v=4.7.0');
  src: url('font-awesome-4.7.0/fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
       url('font-awesome-4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
       url('font-awesome-4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
       url('font-awesome-4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* ═══════════════════════════════════════
   LOGO INTRO — acts as brief page load indicator
═══════════════════════════════════════ */
@keyframes logo-intro {
  0%   { opacity: 0; transform: scale(0.78); }
  55%  { opacity: 1; transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
#navLogo {
  animation: logo-intro 0.75s cubic-bezier(.22,.68,0,1.2) both;
}

/* ── RemoteInsurance — Editorial Design System ── */

:root {
  --cream:       #FDFBF7;
  --cream-dark:  #EDE8DE;
  --ink:         #2B2D31;
  --ink-muted:   #6B6E75;
  --royal:       #1B2A4A;
  --slate:       #4A6B82;
  --terracotta:  #ff7828;
  --terra-dark:  #d9651a;
  --forest:      #2D6A4F;
  --dark-green:  #12241E;
  --lime:        #B8E62E;
  --shadow-hard: 4px 4px 0px 0px #2B2D31;
  --shadow-sm:   2px 2px 0px 0px #2B2D31;
}

/* ═══════════════════════════════════════
   SITE FOOTER
═══════════════════════════════════════ */
.site-footer {
  flex-shrink: 0;
  background: var(--cream);
  border-top: 2px solid var(--ink);
  padding: 0 24px;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ═══════════════════════════════════════
   RESET & BASE — full-viewport, no page scroll
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  height: 100%;
  overflow: hidden;
}

body {
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  background-image:
    radial-gradient(circle at 15% 60%, rgba(26,138,181,0.04) 0%, transparent 50%),
    radial-gradient(circle at 85% 15%, rgba(27,42,74,0.05) 0%, transparent 40%);
}

h1, h2, h3, .serif {
  font-family: 'Raleway', sans-serif;
}

img { max-width: 100%; display: block; }

/* ═══════════════════════════════════════
   HEADER — fixed height, shrink-0
═══════════════════════════════════════ */
.site-header {
  flex-shrink: 0;
  background: var(--cream);
  border-bottom: 2px solid var(--ink);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 0;
}

.brand-name {
  font-family: 'Raleway', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1.2;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.site-nav-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  padding: 5px 11px;
  letter-spacing: .03em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.site-nav-link:hover,
.site-nav-link:focus-visible {
  color: var(--royal);
  border-bottom-color: var(--royal);
  outline: none;
}
.site-nav-cta {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--royal);
  color: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 6px 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform .12s, box-shadow .12s;
}
.site-nav-cta:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow-hard);
}
.site-nav-cta:active {
  transform: translate(2px, 2px);
  box-shadow: none;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 1.05rem;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.site-nav-toggle:hover,
.site-nav-toggle:focus-visible {
  color: var(--royal);
  border-color: var(--royal);
  outline: none;
}

/* ═══════════════════════════════════════
   PAGE BODY — flex-1, scroll-free column
═══════════════════════════════════════ */
.page-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  width: 100%;
}

/* ═══════════════════════════════════════
   LANDING — two-column hero + preview strip
═══════════════════════════════════════ */
/* ── Section: full viewport, no scroll ── */
.landing-section {
  position: relative;
  width: 100%;
  height: calc(100svh - 60px);   /* 60px = header height */
  display: flex;
  flex-direction: column;
  background: var(--cream);
  overflow: hidden;
}

/* Corner deco: terracotta peeks from top-right of the whole section */
.landing-deco {
  position: absolute;
  top: -18px;
  right: -18px;
  width: clamp(120px, 14vw, 190px);
  height: clamp(140px, 18vh, 240px);
  border-radius: 20px;
  background: var(--terracotta);
  z-index: 0;
  pointer-events: none;
}

/* ── Hero two-column (fills available height) ── */
.landing-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 36px;
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 48px 16px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* ── LEFT — heading/sub/benefits ── */
.landing-left {
  order: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Desktop: show desktop heading, hide mobile heading & mobile CTA */
.lh-mobile        { display: none; }
.landing-cta--mobile { display: none; }

.landing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1.5px solid rgba(43,45,49,0.3);
  color: var(--ink-muted);
  font-size: 0.56rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase;
  padding: 3px 10px;
  margin-bottom: 12px;
  border-radius: 4px;
}
.landing-heading {
  font-family: 'Raleway', sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.75rem);
  font-weight: 800;
  color: var(--royal);
  line-height: 1.08;
  margin-bottom: 10px;
}
.landing-heading em { font-style: italic; color: var(--terracotta); display: block; }
.landing-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 380px;
}

/* Benefit cards */
.landing-benefit-cards { display: flex; gap: 10px; margin-bottom: 14px; }
.landing-benefit-card {
  flex: 1;
  border: 1.5px solid rgba(43,45,49,0.12);
  padding: 11px 8px 10px;
  background: #fff;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 5px;
  border-radius: 8px;
}
.lbc-icon {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,120,40,0.1);
  display: flex; align-items: center; justify-content: center;
}
.lbc-icon .fa { color: var(--terracotta); font-size: 0.82rem; }
.lbc-title { font-size: 0.72rem; font-weight: 700; color: var(--ink); }
.lbc-desc  { font-size: 0.62rem; color: var(--ink-muted); line-height: 1.35; }

/* Trust row */
.landing-trust-row { display: flex; gap: 16px; flex-wrap: wrap; }
.landing-trust-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 0.7rem; font-weight: 600; color: var(--ink-muted);
}
.landing-trust-item .fa { color: var(--terracotta); font-size: 0.75rem; }

/* ── RIGHT — quote card, sits below top of car ── */
.landing-right {
  order: 2;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
  min-height: 0;
  z-index: 2;
}

/* Cream circle behind car */
.landing-circle {
  position: absolute;
  width: min(400px, 82%);
  height: min(400px, 82%);
  border-radius: 50%;
  background: rgba(238,230,218,0.7);
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  pointer-events: none;
}

/* Car: top-right, smaller so front wheel & plate show above the card.
   Rendered as a CSS background (not <img>) so mobile — where it's
   hidden anyway — never fetches the asset at all. */
.landing-car-img {
  position: absolute;
  top: 0;
  right: 0;
  height: clamp(160px, 36vh, 380px);
  width: 52%;
  max-width: 52%;
  z-index: 1;
  pointer-events: none;
  display: block;
  background-repeat: no-repeat;
  background-position: top right;
  background-size: contain;
}
@media (min-width: 769px) {
  .landing-car-img {
    background-image: url('../images/landing.png');
    background-image: image-set(
      url('../images/landing.webp') type('image/webp'),
      url('../images/landing.png') type('image/png')
    );
  }
}

/* Quote card — card starts below the car's mid-point */
.landing-quote-card {
  position: relative;
  z-index: 3;
  flex-shrink: 0;
  margin-top: calc(clamp(140px, 30vh, 340px) - 15px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(43,45,49,0.13);
  padding: 16px 18px 12px;
}

/* On very short screens hide the step preview so the CTA stays visible */
@media (max-height: 720px) {
  .lqcp-wrap { display: none; }
  .landing-quote-card { margin-top: clamp(140px, 22vh, 260px); }
}
.lqc-title { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.lqc-sub   { font-size: 0.68rem; color: var(--ink-muted); margin-bottom: 10px; }

/* Form fields */
.lqc-field {
  display: flex; align-items: center;
  border: 1.5px solid rgba(43,45,49,0.15);
  border-radius: 6px;
  margin-bottom: 8px;
  background: #fafaf9;
  overflow: hidden;
}
.lqc-row { display: flex; gap: 8px; margin-bottom: 8px; }
.lqc-row .lqc-field { flex: 1; margin-bottom: 0; }
.lqc-fi {
  padding: 0 9px;
  color: rgba(43,45,49,0.35);
  font-size: 0.72rem;
  flex-shrink: 0;
}
.lqc-input, .lqc-select {
  flex: 1; border: none; outline: none;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem; color: var(--ink);
  padding: 9px 6px 9px 0;
  -webkit-appearance: none; appearance: none;
  min-width: 0;
}
.lqc-input::placeholder { color: rgba(43,45,49,0.35); }
.lqc-hint { font-size: 0.6rem; color: rgba(43,45,49,0.3); padding-right: 8px; white-space: nowrap; }
.lqc-chev { font-size: 0.52rem; color: rgba(43,45,49,0.35); padding-right: 8px; flex-shrink: 0; pointer-events: none; }

/* CTA */
.landing-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: var(--terracotta); color: #fff;
  border: none; border-radius: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  padding: 11px 20px;
  cursor: pointer;
  margin-top: 4px; margin-bottom: 8px;
  box-shadow: 0 4px 16px rgba(255,120,40,0.3);
  transition: background .15s, box-shadow .12s, transform .1s;
}
.landing-cta:hover { background: var(--terra-dark); box-shadow: 0 2px 6px rgba(255,120,40,0.2); transform: translateY(1px); }
.landing-cta .fa { transition: transform .18s; }
.landing-cta:hover .fa { transform: translateX(4px); }

.lqc-trust { text-align: center; font-size: 0.62rem; color: var(--ink-muted); }

/* ── Step 1 wizard preview inside landing card ── */
.lqcp-wrap {
  background: #f7f5f2;
  border: 1px solid rgba(43,45,49,0.1);
  border-radius: 10px;
  padding: 10px 12px 10px;
  margin-bottom: 10px;
  pointer-events: none;
  user-select: none;
}

/* Progress bar */
.lqcp-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 8px;
}
.lqcp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lqcp-step span {
  font-size: 0.52rem;
  font-weight: 600;
  color: rgba(43,45,49,0.35);
  letter-spacing: .04em;
  white-space: nowrap;
}
.lqcp-step--active .lqcp-dot { background: var(--terracotta); color: #fff; }
.lqcp-step--active span { color: var(--terracotta); }
.lqcp-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(43,45,49,0.12);
  color: rgba(43,45,49,0.4);
  font-size: 0.62rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.lqcp-line {
  flex: 1;
  height: 1.5px;
  background: rgba(43,45,49,0.12);
  margin: 0 6px;
  margin-bottom: 12px;
}

/* Step heading */
.lqcp-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--royal);
  margin-bottom: 2px;
}
.lqcp-stepsub {
  font-size: 0.6rem;
  color: var(--ink-muted);
  margin-bottom: 7px;
  line-height: 1.4;
}

/* Make chips — single row, overflow hidden */
.lqcp-makes {
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  gap: 4px;
  margin-bottom: 8px;
}
.lqcp-make {
  font-size: 0.6rem;
  font-weight: 600;
  color: rgba(43,45,49,0.55);
  background: #fff;
  border: 1px solid rgba(43,45,49,0.13);
  border-radius: 4px;
  padding: 3px 8px;
}
.lqcp-make--hi {
  color: var(--royal);
  border-color: rgba(43,45,49,0.22);
  background: #fff;
}
.lqcp-more {
  font-size: 0.58rem;
  color: var(--terracotta);
  background: rgba(255,120,40,0.07);
  border-color: rgba(255,120,40,0.2);
}

/* Bottom fields */
.lqcp-fields { display: flex; flex-direction: column; gap: 5px; }
.lqcp-field {
  display: flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid rgba(43,45,49,0.13);
  border-radius: 6px;
  padding: 6px 10px;
}
.lqcp-fi {
  color: rgba(43,45,49,0.35);
  font-size: 0.7rem;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}
.lqcp-fi--r { font-weight: 700; font-size: 0.72rem; }
.lqcp-ph {
  flex: 1;
  font-size: 0.68rem;
  color: rgba(43,45,49,0.35);
}
.lqcp-hint {
  font-size: 0.58rem;
  color: rgba(43,45,49,0.25);
  white-space: nowrap;
}

/* ── Insurer logos ── */
.landing-insurers {
  flex-shrink: 0;
  border-top: 1px solid rgba(43,45,49,0.08);
  padding: 9px 40px;
  position: relative; z-index: 1;
}
.landing-insurers-label {
  text-align: center;
  font-size: 0.54rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 7px;
}
.landing-insurer-logos {
  display: flex; align-items: center; justify-content: center;
  gap: 28px; flex-wrap: wrap;
}
.insurer-logo {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem; font-weight: 700;
  color: rgba(43,45,49,0.4);
  white-space: nowrap;
}
.insurer-logo em { font-style: normal; }

/* ── Contact strip ── */
.landing-contact-strip {
  flex-shrink: 0;
  border: 1.5px solid rgba(43,45,49,0.1);
  border-radius: 8px;
  max-width: 1080px;
  width: calc(100% - 80px);
  margin: 0 auto 10px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 9px 20px;
  flex-wrap: wrap;
  position: relative; z-index: 1;
}
.lcs-left { display: flex; align-items: center; gap: 10px; }
.lcs-phone-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,120,40,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lcs-phone-icon .fa { color: var(--terracotta); font-size: 0.85rem; }
.lcs-title { font-size: 0.78rem; font-weight: 700; color: var(--ink); }
.lcs-sub   { font-size: 0.65rem; color: var(--ink-muted); margin-top: 1px; }

.landing-contact-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: transparent;
  color: var(--terracotta);
  border: 1.5px solid var(--terracotta);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  padding: 7px 16px;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.landing-contact-btn:hover { background: var(--terracotta); color: #fff; }

.landing-footnote {
  flex-shrink: 0;
  text-align: center;
  font-size: 0.58rem; color: var(--royal);
  padding: 0 20px 8px;
  letter-spacing: .03em; opacity: 0.75;
  position: relative; z-index: 1;
}

/* ═══════════════════════════════════════
   PROGRESS — fixed height strip
═══════════════════════════════════════ */
.progress-wrap {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  padding: 14px 20px 10px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.progress-label-left {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
}
.progress-label-right {
  font-size: 0.63rem;
  color: var(--ink-muted);
}

.step-dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--cream);
  color: var(--ink-muted);
  font-weight: 700; font-size: 0.75rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all .25s ease;
}
.step-dot.active {
  background: var(--royal);
  border-color: var(--royal);
  color: var(--cream);
  box-shadow: var(--shadow-sm);
}
.step-dot.done {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}

.step-connector {
  flex: 1;
  height: 0;
  border-top: 2px dashed rgba(43,45,49,0.18);
  margin: 0 5px;
  align-self: center;
  transition: border-color .25s, border-style .25s;
}
.step-connector.done {
  border-color: var(--forest);
  border-style: solid;
}

.step-names {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
}
.step-name {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--ink-muted);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   WIZARD OUTER — fills remaining height
═══════════════════════════════════════ */
.wizard-outer {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: 720px;
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   WIZARD CARD — flex column, fills outer
═══════════════════════════════════════ */
.wizard-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
}

/* ═══════════════════════════════════════
   STEP LAYOUT — header / body / nav
═══════════════════════════════════════ */
.wizard-step { display: none; }
.wizard-step.active {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.step-header {
  flex-shrink: 0;
  padding: 20px 24px 0;
}

.step-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 14px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) var(--cream-dark);
  -webkit-overflow-scrolling: touch;
}
.step-body::-webkit-scrollbar { width: 4px; }
.step-body::-webkit-scrollbar-thumb { background: var(--slate); border-radius: 2px; }
.step-body::-webkit-scrollbar-track { background: transparent; }

.step-nav {
  flex-shrink: 0;
  padding: 12px 24px 16px;
  border-top: 1px solid rgba(43,45,49,0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.step-nav.end { justify-content: flex-end; }

/* ═══════════════════════════════════════
   STEP HEADINGS
═══════════════════════════════════════ */
.step-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1.15;
  margin: 0 0 3px;
}
.step-sub {
  font-size: 0.77rem;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0 0 12px;
  line-height: 1.4;
}
.step-rule {
  border: none;
  border-top: 1px solid rgba(43,45,49,0.1);
  margin: 0;
}

/* ═══════════════════════════════════════
   VEHICLE SELECTOR
═══════════════════════════════════════ */
.field-group {
  background: #fff;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 14px;
}

/* Step 1: stretch body + field-group so checkbox list fills all space */
#step1 .step-body {
  display: flex;
  flex-direction: column;
}
#step1 .field-group {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#step1 .checkbox-list {
  flex: 1;
  min-height: 0;
  max-height: none;
}
#yearSourceBadge {
  flex-shrink: 0;
}

.field-label {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

#selectorLevelLabel {
  font-size: 0.63rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--royal);
}

/* Clear-all button — icon only, top-right of breadcrumb row */
.btn-clear-all {
  flex-shrink: 0;
  width: 26px; height: 26px;
  background: var(--cream);
  border: 1px solid rgba(43,45,49,0.35);
  color: var(--ink-muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, border-color .15s, transform .2s;
  padding: 0;
}
.btn-clear-all:hover {
  border-color: #991B1B;
  color: #991B1B;
  transform: rotate(-180deg);
}

/* Selector track dots */
.sel-track-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  flex-shrink: 0;
  cursor: default;
  transition: all .2s;
}
.sel-track-dot.done  { background: var(--forest); border-color: var(--forest); cursor: pointer; }
.sel-track-dot.active { background: var(--royal); border-color: var(--royal); }

.sel-track-line {
  flex: 0 0 18px; height: 0;
  border-top: 2px dashed rgba(43,45,49,0.18);
  transition: border-color .2s, border-style .2s;
}
.sel-track-line.done { border-color: var(--forest); border-style: solid; }

/* ═══════════════════════════════════════
   INPUTS
═══════════════════════════════════════ */
.search-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 9px 13px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
  border-radius: 0;
}
.search-input:focus {
  border-color: var(--royal);
  box-shadow: 3px 3px 0px 0px var(--royal);
}
.search-input::placeholder { color: var(--ink-muted); font-style: italic; }
.search-input:disabled { background: var(--cream-dark); opacity: 0.5; cursor: not-allowed; box-shadow: none; }

.year-input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  padding: 9px 13px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--ink);
  outline: none;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, border-color .15s;
  border-radius: 0;
}
.year-input:focus {
  border-color: var(--royal);
  box-shadow: 3px 3px 0px 0px var(--royal);
}
.year-input::placeholder { color: var(--ink-muted); font-style: italic; }

/* ═══════════════════════════════════════
   CHECKBOX LIST
═══════════════════════════════════════ */
.checkbox-list {
  max-height: 160px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--slate) var(--cream-dark);
  border: 1px solid var(--cream-dark);
  -webkit-overflow-scrolling: touch;
}
.checkbox-list::-webkit-scrollbar { width: 3px; }
.checkbox-list::-webkit-scrollbar-thumb { background: var(--slate); }

.checkbox-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--cream-dark);
  cursor: pointer;
  color: var(--ink);
  font-size: 0.84rem;
  transition: background .1s;
}
.checkbox-item:last-child { border-bottom: none; }
.checkbox-item:hover { background: #F0EBE1; }
.checkbox-item.selected { background: #E5EDF5; color: var(--royal); font-weight: 600; }
.checkbox-item input[type="checkbox"] {
  accent-color: var(--royal);
  width: 14px; height: 14px; cursor: pointer; flex-shrink: 0;
}

/* ═══════════════════════════════════════
   BREADCRUMB CHIPS
═══════════════════════════════════════ */
.sel-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  font-size: 0.67rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--ink);
  box-shadow: 1px 1px 0px 0px var(--ink);
  transition: box-shadow .1s, transform .1s;
}
.sel-chip:hover               { box-shadow: none; transform: translate(1px,1px); }
.sel-chip.make-chip            { background: #DDE7F2; color: var(--royal); }
.sel-chip.model-chip           { background: #D9EDE3; color: var(--forest); }
.sel-chip.variant-chip         { background: #ffe8d4; color: var(--terra-dark); }
.sel-chip.variant-chip:hover   { box-shadow: none; transform: translate(1px,1px); }
.sel-chip.year-chip            { background: #E8EEF5; color: var(--slate); }
.sel-chip.year-chip:hover      { box-shadow: none; transform: translate(1px,1px); }

/* ═══════════════════════════════════════
   NO RESULTS / ERRORS
═══════════════════════════════════════ */
.no-results {
  padding: 9px 11px;
  color: #991B1B;
  font-size: 0.76rem;
  font-style: italic;
  display: none;
  border-left: 3px solid #991B1B;
  background: #FEF2F2;
  margin-top: 5px;
}
.no-results.show { display: block; }

.inline-error {
  font-size: 0.73rem;
  color: #991B1B;
  margin-top: 5px;
  display: none;
  font-style: italic;
  border-left: 2px solid #991B1B;
  padding-left: 7px;
}
.inline-error.show { display: block; }

/* ═══════════════════════════════════════
   MONEY INPUT
═══════════════════════════════════════ */
.money-wrap {
  display: flex; align-items: stretch;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.money-wrap:focus-within {
  border-color: var(--royal);
  box-shadow: 3px 3px 0px 0px var(--royal);
}

@keyframes kms-attention {
  0%   { border-color: var(--ink);        box-shadow: var(--shadow-sm); }
  20%  { border-color: var(--terracotta); box-shadow: 3px 3px 0px 0px var(--terracotta); transform: translateX(-2px); }
  40%  { border-color: var(--terracotta); box-shadow: 3px 3px 0px 0px var(--terracotta); transform: translateX(2px); }
  60%  { border-color: var(--terracotta); box-shadow: 3px 3px 0px 0px var(--terracotta); transform: translateX(-1px); }
  80%  { border-color: var(--terracotta); box-shadow: 3px 3px 0px 0px var(--terracotta); transform: translateX(1px); }
  100% { border-color: var(--terracotta); box-shadow: 3px 3px 0px 0px var(--terracotta); transform: translateX(0); }
}
.money-wrap.kms-pulse {
  animation: kms-attention 0.5s ease-out forwards;
  border-color: var(--terracotta);
  box-shadow: 3px 3px 0px 0px var(--terracotta);
}
.money-prefix {
  padding: 9px 13px;
  font-weight: 700;
  color: var(--royal);
  background: var(--cream-dark);
  border-right: 1px solid var(--ink);
  display: flex; align-items: center;
  flex-shrink: 0;
}
.money-input {
  flex: 1; min-width: 0;
  background: var(--cream);
  border: none; outline: none;
  color: var(--ink);
  padding: 9px 13px;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
}
.money-input::placeholder { color: var(--ink-muted); font-style: italic; }

/* ═══════════════════════════════════════
   EXP PRESET PILLS
═══════════════════════════════════════ */
.exp-preset {
  background: var(--cream);
  border: 1px solid var(--ink);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s, box-shadow .1s;
  border-radius: 0;
}
.exp-preset:hover {
  background: var(--royal);
  color: var(--cream);
  border-color: var(--royal);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.exp-preset.selected {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ═══════════════════════════════════════
   ACCIDENT PRESET PILLS
═══════════════════════════════════════ */
.acc-preset {
  background: var(--cream);
  border: 1px solid var(--ink);
  color: var(--ink-muted);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s, box-shadow .1s;
  border-radius: 0;
}
.acc-preset:hover {
  background: var(--terracotta);
  color: var(--cream);
  border-color: var(--terracotta);
  box-shadow: 1px 1px 0 0 var(--ink);
}
.acc-preset.selected {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn-primary {
  background: var(--royal);
  color: var(--cream);
  font-weight: 600;
  padding: 10px 22px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: box-shadow .1s, transform .1s;
}
.btn-primary:hover:not(:disabled) { box-shadow: 2px 2px 0 0 var(--ink); transform: translate(2px,2px); }
.btn-primary:disabled { opacity: 0.38; cursor: not-allowed; transform: none; }

.btn-ghost {
  background: var(--cream);
  color: var(--ink);
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid var(--ink);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: box-shadow .1s, transform .1s;
}
.btn-ghost:hover { box-shadow: none; transform: translate(2px,2px); }

.btn-emerald {
  background: var(--forest);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: box-shadow .1s, transform .1s;
}
.btn-emerald:hover { box-shadow: 2px 2px 0 0 var(--ink); transform: translate(2px,2px); }

.btn-amber {
  background: var(--terracotta);
  color: #fff;
  font-weight: 700;
  padding: 10px 18px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  white-space: nowrap;
  transition: box-shadow .1s, transform .1s;
}
.btn-amber:hover { box-shadow: 2px 2px 0 0 var(--ink); transform: translate(2px,2px); }

#btnSavePdf { background: var(--dark-green); }
#btnSavePdf:hover:not(:disabled) { background: var(--dark-green); }

/* ═══════════════════════════════════════
   PREMIUM CARD
═══════════════════════════════════════ */
.premium-card {
  background: var(--royal);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  position: relative;
  overflow: hidden;
}
.premium-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px,
    transparent 1px, transparent 12px
  );
  pointer-events: none;
}
.premium-card .grid-lines { display: none; }

.premium-amount {
  font-family: 'Raleway', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1.05;
}

.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(253,251,247,0.08);
  border: 1px solid rgba(253,251,247,0.25);
  color: #A7F3D0;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .14em;
  padding: 3px 9px;
}
.status-badge::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #A7F3D0;
  animation: pulse-dot 1.8s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%,100% { opacity:1; } 50% { opacity:.25; }
}

.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid rgba(253,251,247,0.08);
  font-size: 0.82rem;
  gap: 12px;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: rgba(253,251,247,0.42); font-size: 0.72rem; flex-shrink: 0; }
.summary-value { color: var(--cream); font-weight: 500; text-align: right; }
.ref-code { font-family: ui-monospace, monospace; font-size: 0.68rem; color: rgba(253,251,247,0.32); letter-spacing:.05em; }

/* ═══════════════════════════════════════
   TICKET CARD (live quote)
═══════════════════════════════════════ */
.ticket-card {
  position: relative;
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(43,45,49,0.025) 0px, rgba(43,45,49,0.025) 1px,
    transparent 1px, transparent 14px
  );
}

.ticket-inner-border {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(43,45,49,0.1);
  pointer-events: none;
  z-index: 0;
}

.ticket-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  position: relative;
  z-index: 1;
}

.ticket-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--ink);
  padding: 3px;
  flex-shrink: 0;
}

.ticket-brand {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--royal);
  line-height: 1.2;
}

.ticket-sub {
  font-size: 0.62rem;
  color: var(--ink-muted);
  letter-spacing: .03em;
  margin-top: 2px;
}

.ticket-rule {
  border: none;
  border-top: 1px solid var(--ink);
  margin: 0 18px;
  position: relative;
  z-index: 1;
}

.ticket-badge {
  display: inline-flex;
  align-items: center;
  margin: 12px 18px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  font-family: 'Inter', monospace;
  letter-spacing: .1em;
  padding: 5px 13px;
  position: relative;
  z-index: 1;
}

.ticket-premium-block {
  background: var(--dark-green);
  margin: 0 18px;
  padding: 14px 16px 12px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.022) 0px, rgba(255,255,255,0.022) 1px,
    transparent 1px, transparent 12px
  );
}

.ticket-premium-label {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(253,251,247,0.5);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ticket-premium-amount {
  font-family: 'Raleway', sans-serif;
  font-size: 2.3rem;
  font-weight: 800;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 4px;
}

.ticket-premium-sub {
  font-size: 0.64rem;
  color: rgba(253,251,247,0.42);
}

.ticket-dashed {
  border-top: 1px dashed rgba(43,45,49,0.18);
  margin: 10px 18px 0;
  position: relative;
  z-index: 1;
}

.ticket-props {
  padding: 2px 18px 0;
  position: relative;
  z-index: 1;
}

.ticket-prop {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid rgba(43,45,49,0.07);
  gap: 12px;
}

.ticket-prop:last-child { border-bottom: none; }

.ticket-prop-label {
  font-size: 0.57rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: rgba(43,45,49,0.38);
  text-transform: uppercase;
  flex-shrink: 0;
}

.ticket-prop-value {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.ticket-barcode {
  margin: 8px 18px 0;
  background: var(--cream-dark);
  border: 1px solid rgba(43,45,49,0.18);
  padding: 6px 8px 4px;
  position: relative;
  z-index: 1;
}

.ticket-barcode-canvas {
  width: 100%;
  height: 28px;
  display: block;
}

.ticket-barcode-ref {
  font-family: ui-monospace, monospace;
  font-size: 0.55rem;
  color: rgba(43,45,49,0.32);
  text-align: center;
  margin-top: 3px;
  letter-spacing: .06em;
}

.ticket-accent-bar {
  height: 5px;
  background: var(--terracotta);
  margin: 10px 18px 16px;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   ACTION CENTER — inside step 3
═══════════════════════════════════════ */
.action-center { display: none; }
.action-center.visible {
  display: block;
  animation: fadeInUp .35s ease forwards;
}
@keyframes fadeInUp {
  from { opacity:0; transform:translateY(10px); }
  to   { opacity:1; transform:translateY(0); }
}

.action-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 0 var(--ink);
  padding: 18px 20px;
}
.action-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-muted);
}
.action-buttons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* ═══════════════════════════════════════
   PROVINCE / CITY SELECTS
═══════════════════════════════════════ */
.select-wrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.styled-select {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 9px 36px 9px 13px;
  font-size: 0.85rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  box-shadow: var(--shadow-sm);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  border-radius: 0;
  transition: border-color .15s, box-shadow .15s;
}
.styled-select:focus {
  border-color: var(--royal);
  box-shadow: 3px 3px 0 0 var(--royal);
}
.styled-select:disabled {
  background: var(--cream-dark);
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.select-arrow {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  color: var(--ink-muted);
  pointer-events: none;
}

.city-status-msg {
  font-size: 0.71rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.city-status-loading {
  color: var(--royal);
  font-style: italic;
}
.city-status-error {
  color: #991B1B;
  border-left: 2px solid #991B1B;
  padding-left: 7px;
}

/* City search autocomplete dropdown */
.city-dropdown {
  width: 100%;
  max-height: 150px;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--ink);
  border-top: none;
  box-shadow: 3px 3px 0 0 var(--ink);
  scrollbar-width: thin;
  scrollbar-color: var(--slate) var(--cream-dark);
}
.city-dropdown::-webkit-scrollbar { width: 3px; }
.city-dropdown::-webkit-scrollbar-thumb { background: var(--slate); }
.city-dd-item {
  padding: 7px 12px;
  font-size: 0.84rem;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--ink);
  transition: background .1s;
}
.city-dd-item:last-child { border-bottom: none; }
.city-dd-item:hover { background: #F0EBE1; }
.city-dd-empty {
  padding: 8px 12px;
  font-size: 0.76rem;
  color: var(--ink-muted);
  font-style: italic;
}
.city-dropdown mark {
  background: rgba(255,120,40,0.2);
  color: var(--terra-dark);
  font-weight: 600;
  font-style: normal;
}

/* ═══════════════════════════════════════
   QUOTE LOADER OVERLAY
═══════════════════════════════════════ */
.quote-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: qlFadeIn .25s ease both;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(43,45,49,0.025) 0px, rgba(43,45,49,0.025) 1px,
    transparent 1px, transparent 12px
  );
}

@keyframes qlFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.ql-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 360px;
  padding: 0 28px;
}

.ql-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  margin-bottom: 16px;
  border: 2px solid var(--ink);
  background: #fff;
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.ql-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--royal);
  text-align: center;
  margin-bottom: 20px;
}

.ql-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--cream-dark);
  border: 1px solid rgba(43,45,49,0.15);
  margin-bottom: 26px;
  overflow: hidden;
}

.ql-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--terracotta);
  transition: width 10s linear;
}

.ql-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ql-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 1.5px solid rgba(43,45,49,0.12);
  background: var(--cream);
  transition: border-color .35s, background .35s, box-shadow .35s;
}

.ql-step.ql-step-active {
  border-color: var(--royal);
  box-shadow: 3px 3px 0 0 var(--royal);
  background: #EFF3FA;
}

.ql-step.ql-step-done {
  border-color: var(--forest);
  box-shadow: 3px 3px 0 0 var(--forest);
  background: #EDF5F0;
}

.ql-step-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.88rem;
}

.ql-step.ql-step-pending .ql-step-icon { color: var(--ink-muted); }
.ql-step.ql-step-active  .ql-step-icon { color: var(--royal); }
.ql-step.ql-step-done    .ql-step-icon { color: var(--forest); }

.ql-icon-dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid currentColor;
}

.ql-step-label {
  font-size: 0.81rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color .35s, font-weight .2s;
  line-height: 1.3;
}

.ql-step.ql-step-active .ql-step-label {
  color: var(--royal);
  font-weight: 600;
}

.ql-step.ql-step-done .ql-step-label {
  color: var(--forest);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   GENDER CARDS
═══════════════════════════════════════ */
.gender-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.gender-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px 13px;
  background: var(--cream);
  border: 1.5px solid rgba(43,45,49,0.22);
  cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .12s, transform .12s;
  user-select: none;
  text-align: center;
}
.gender-card:hover {
  border-color: var(--royal);
  background: #F0F4FA;
  box-shadow: 3px 3px 0 0 var(--royal);
  transform: translate(-1px,-1px);
}
.gender-card.selected {
  background: #DDE7F2;
  border: 2px solid var(--royal);
  box-shadow: var(--shadow-sm);
}

/* FA icon */
.gender-icon {
  font-size: 1.75rem;
  color: var(--ink-muted);
  transition: color .15s, transform .15s;
  line-height: 1;
}
.gender-card:hover   .gender-icon { color: var(--royal); }
.gender-card.selected .gender-icon {
  color: var(--royal);
  transform: scale(1.08);
}

/* Label */
.gender-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  line-height: 1.25;
  transition: color .15s;
}
.gender-card:hover    .gender-label { color: var(--royal); }
.gender-card.selected .gender-label { color: var(--royal); }

/* Selection check badge — top-right corner */
.gender-check {
  position: absolute;
  top: 5px; right: 6px;
  width: 17px; height: 17px;
  background: var(--forest);
  border: 1.5px solid var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  color: #fff;
  opacity: 0;
  transform: scale(0.4);
  transition: opacity .18s, transform .22s cubic-bezier(.34,1.56,.64,1);
}
.gender-card.selected .gender-check {
  opacity: 1;
  transform: scale(1);
}

/* ═══════════════════════════════════════
   DRIVER PROFILE — SECTION DIVIDERS
═══════════════════════════════════════ */
.dp-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 0 14px;
}
.dp-section::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--royal);
  opacity: 0.15;
}
.dp-section-label {
  font-size: 0.63rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--royal);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ── Yes / No two-column grid ── */
.dp-yn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 4px;
}

/* ── 3-column grid override for gender-grid ── */
.dp-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ═══════════════════════════════════════
   STEP 2 VEHICLE CHIPS
═══════════════════════════════════════ */
.vehicle-chip-make {
  background: #DDE7F2; border: 1px solid var(--royal); color: var(--royal);
  font-weight: 700; font-size: 0.68rem; padding: 3px 9px;
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vehicle-chip-variant {
  background: #ffe8d4; border: 1px solid var(--terracotta); color: var(--terra-dark);
  font-weight: 600; font-size: 0.68rem; padding: 3px 9px;
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vehicle-chip-year {
  background: #E8EEF5; border: 1px solid var(--slate); color: var(--slate);
  font-weight: 700; font-size: 0.68rem; padding: 3px 9px;
  display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.vehicle-chip-year:empty { display: none; }

/* Year source badge — shown below checkbox list when selecting year */
#yearFetchMsg {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.45;
  background: rgba(74,107,130,.07);
  border-left: 3px solid var(--slate);
  padding: 9px 11px;
  margin-bottom: 6px;
}

#yearFetchMsg i {
  margin-top: 1px;
  flex-shrink: 0;
}

.year-source-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 9px;
  margin-top: 5px;
  border-left: 3px solid;
  flex-shrink: 0;
}
.year-source-badge.badge-nhtsa {
  background: #D9EDE3;
  border-color: var(--forest);
  color: var(--forest);
}
.year-source-badge.badge-range {
  background: #ffe8d4;
  border-color: var(--terracotta);
  color: var(--terra-dark);
}

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(43,45,49,0.55);
  z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .2s;
  padding: 16px;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  background: var(--cream);
  border: 2px solid var(--ink);
  box-shadow: 8px 8px 0 0 var(--ink);
  padding: 24px;
  width: 100%; max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.97) translateY(6px);
  transition: transform .2s;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay.open .modal-card { transform: scale(1) translateY(0); }
.modal-heading {
  font-family: 'Raleway', sans-serif;
  font-size: 1.2rem; font-weight: 700; color: var(--royal);
}
.modal-close-x {
  background: none;
  border: 1px solid var(--ink);
  color: var(--ink-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  /* Responsive: scales between 28px and 40px */
  width: clamp(28px, 6vw, 40px);
  height: clamp(28px, 6vw, 40px);
  transition: background .15s, color .15s;
}
.modal-close-x:hover {
  background: var(--ink);
  color: var(--cream);
}
.modal-card--wide { max-width: 640px; }

/* ── Privacy Notice body ── */
.privacy-body { font-size: 0.79rem; line-height: 1.68; color: var(--ink); }
.privacy-section { margin-bottom: 20px; }
.privacy-section-title {
  font-family: 'Raleway', sans-serif;
  font-size: 0.88rem; font-weight: 700; color: var(--royal);
  margin-bottom: 7px; padding-bottom: 4px;
  border-bottom: 1px solid rgba(43,45,49,0.1);
}
.privacy-body p  { margin-bottom: 7px; }
.privacy-body ul { padding-left: 18px; margin-bottom: 7px; }
.privacy-body ul li { margin-bottom: 5px; }
.privacy-body a  { color: var(--terracotta); text-decoration: underline; }
.privacy-body a:hover { color: var(--royal); }

/* ── Insurer Quiz Modal ─────────────────────────────────────── */

/* Footer divider + nav inside the card */
.iq-footer-line {
  border: none;
  border-top: 1px solid rgba(43,45,49,0.1);
  margin: 20px 0 16px;
}
.iq-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.iq-back-btn { visibility: hidden; } /* invisible on step 1; keeps layout stable */

/* Progress dots */
.iq-progress {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}
.iq-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43,45,49,0.18);
  flex-shrink: 0;
  transition: background .2s;
}
.iq-dot--active { background: var(--terracotta); }
.iq-dot--done   { background: var(--royal); }
.iq-line {
  flex: 1;
  height: 2px;
  background: rgba(43,45,49,0.12);
  margin: 0 6px;
}

/* Question text */
.iq-question {
  font-family: 'Raleway', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 18px;
  line-height: 1.35;
}

/* Radio option cards */
.iq-options { display: flex; flex-direction: column; gap: 10px; }
.iq-option { display: block; cursor: pointer; }
.iq-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.iq-opt-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1.5px solid rgba(43,45,49,0.16);
  border-radius: 8px;
  padding: 13px 16px;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.iq-option:hover .iq-opt-inner {
  border-color: rgba(43,45,49,0.35);
}
.iq-option input:checked ~ .iq-opt-inner {
  border-color: var(--terracotta);
  background: rgba(255,120,40,0.04);
  box-shadow: 0 0 0 1px var(--terracotta);
}

/* Custom radio circle */
.iq-opt-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(43,45,49,0.22);
  flex-shrink: 0;
  position: relative;
  transition: border-color .15s;
}
.iq-opt-check::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
  transform: translate(-50%,-50%) scale(0);
  transition: transform .15s;
}
.iq-option input:checked ~ .iq-opt-inner .iq-opt-check {
  border-color: var(--terracotta);
}
.iq-option input:checked ~ .iq-opt-inner .iq-opt-check::after {
  transform: translate(-50%,-50%) scale(1);
}

.iq-opt-text {
  font-size: 0.875rem;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.35;
}

/* Next is always disabled but must look like a full blue button */
.iq-next-btn:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-hard);
}

/* Step 2 — Insurance type grid */
.iq-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.iq-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  border: 1.5px solid rgba(43,45,49,0.16);
  border-radius: 10px;
  padding: 14px 12px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.iq-type-card:hover {
  border-color: rgba(43,45,49,0.35);
}
.iq-type-card.selected {
  border-color: var(--terracotta);
  background: rgba(255,120,40,0.04);
  box-shadow: 0 0 0 1px var(--terracotta);
}
.iq-type-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(43,45,49,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--royal);
  flex-shrink: 0;
  transition: background .15s, color .15s;
}
.iq-type-card.selected .iq-type-icon {
  background: rgba(255,120,40,0.12);
  color: var(--terracotta);
}
.iq-type-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}
.iq-type-desc {
  font-size: 0.7rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* Two-card row (step 2 Yes/No) — always side-by-side */
.iq-two-col { grid-template-columns: 1fr 1fr; }

/* Step 2-Yes form fields */
.iq-field-group { margin-bottom: 16px; }
.iq-field-group:last-child { margin-bottom: 0; }
.iq-select-wrap {
  position: relative;
  display: block;
}
.iq-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px !important;
  cursor: pointer;
}
.iq-select-arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.72rem;
  color: var(--ink-muted);
  pointer-events: none;
}
.iq-select--error {
  border-color: var(--terracotta) !important;
  box-shadow: 0 0 0 2px rgba(255,120,40,0.18) !important;
  animation: iq-shake 0.35s ease;
}
@keyframes iq-shake {
  0%,100% { transform: translateX(0); }
  25%      { transform: translateX(-5px); }
  75%      { transform: translateX(5px); }
}

/* Yes/No icon accent colours */
.iq-icon--yes { background: rgba(40,167,69,0.1); color: #28a745; }
.iq-icon--no  { background: rgba(255,120,40,0.1); color: var(--terracotta); }
.iq-type-card.selected .iq-icon--yes { background: rgba(40,167,69,0.18); }
.iq-type-card.selected .iq-icon--no  { background: rgba(255,120,40,0.18); }

@media (max-width: 480px) {
  .iq-type-grid { grid-template-columns: 1fr; }
  .iq-two-col   { grid-template-columns: 1fr 1fr; }
}

/* ── Thank-You step ─────────────────────────────────────────── */
.iq-thanks {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px 0 4px;
  gap: 14px;
}
.iq-thanks-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(40,167,69,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #28a745;
}
.iq-thanks-title {
  font-family: 'Raleway', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--royal);
  margin: 0;
}
.iq-thanks-body {
  font-size: 0.875rem;
  color: var(--ink);
  line-height: 1.55;
  max-width: 300px;
  margin: 0;
}
.iq-thanks-cta {
  width: 100%;
  justify-content: center;
  font-size: 0.875rem;
  padding: 12px 24px;
}
.iq-thanks-hint {
  font-size: 0.72rem;
  color: var(--ink-muted);
  line-height: 1.5;
  font-style: italic;
  margin: 0;
}

/* ── Preloader overlay ──────────────────────────────────────── */
#iqPreloader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iq-preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.iq-preloader-logo {
  font-size: 2.2rem;
  color: var(--royal);
  opacity: 0.25;
}
.iq-spinner-ring {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(43,45,49,0.12);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: iq-spin 0.75s linear infinite;
}
@keyframes iq-spin { to { transform: rotate(360deg); } }
.iq-preloader-label {
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════
   CONTACT METHOD ICON BUTTONS
═══════════════════════════════════════ */
.contact-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 110px;
  padding: 22px 16px;
  background: var(--cream);
  border: 2px solid var(--ink);
  color: var(--ink-muted);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background .15s, color .15s, box-shadow .12s, border-color .15s;
  border-radius: 0;
}
.contact-method-btn .fa {
  font-size: 1.9rem;
  line-height: 1;
}
.contact-method-btn span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact-method-btn:hover {
  background: var(--royal);
  color: var(--cream);
  border-color: var(--royal);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.contact-method-btn.selected {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
  box-shadow: none;
}

/* ═══════════════════════════════════════
   SA PHONE PREFIX (+27)
═══════════════════════════════════════ */
.phone-wrap {
  display: flex;
  align-items: stretch;
}
.phone-prefix {
  background: var(--ink);
  color: var(--cream);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: .03em;
  padding: 0 11px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  border-right: none;
  user-select: none;
}
.phone-input {
  flex: 1;
  border-radius: 0 !important;
  min-width: 0;
}

/* ═══════════════════════════════════════
   TOAST
═══════════════════════════════════════ */
.toast {
  position: fixed; bottom: 20px; right: 16px;
  background: var(--royal);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  color: var(--cream);
  padding: 10px 16px;
  font-size: 0.82rem; font-weight: 600;
  z-index: 9999;
  opacity: 0; transform: translateY(8px);
  transition: opacity .25s, transform .25s;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════
   SPINNER
═══════════════════════════════════════ */
.spinner {
  width: 13px; height: 13px;
  border: 2px solid var(--cream-dark);
  border-top-color: var(--royal);
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block; flex-shrink: 0;
}
@keyframes spin { to { transform:rotate(360deg); } }

.field-selected {
  font-size: 0.8rem; color: var(--royal); font-weight: 600;
  min-height: 16px;
}

/* ═══════════════════════════════════════
   CONTACT MODAL
═══════════════════════════════════════ */
.contact-modal-card {
  max-width: 480px;
  width: 100%;
}
.contact-email-band {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
  margin-bottom: 22px;
  font-size: 1.1rem;
  color: var(--royal);
  flex-shrink: 0;
}
.contact-email-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}
.contact-email-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--royal);
  text-decoration: none;
  word-break: break-all;
}
.contact-email-val:hover { text-decoration: underline; }
.contact-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.contact-field { display: flex; flex-direction: column; gap: 5px; }
.contact-textarea {
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  line-height: 1.5;
}
.contact-form-msg {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 9px 12px;
  border: 2px solid;
  margin-top: 10px;
}
.contact-form-msg--ok {
  color: #1a6a3a;
  border-color: #1a6a3a;
  background: #f0faf4;
}
.contact-form-msg--err {
  color: var(--terracotta);
  border-color: var(--terracotta);
  background: #fff4ee;
}

/* ═══════════════════════════════════════
   ABOUT US MODAL
═══════════════════════════════════════ */
.about-card {
  max-width: 540px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.about-eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 4px;
}
.about-hero-band {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--lime);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-hard);
  padding: 16px 20px;
  margin-bottom: 20px;
}
.about-hero-icon {
  font-size: 2rem;
  flex-shrink: 0;
  opacity: 0.7;
}
.about-hero-text {
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}
.about-own-model {
  border: 2px solid var(--terracotta);
  box-shadow: 4px 4px 0 0 var(--terracotta);
  padding: 14px 16px;
  margin-bottom: 20px;
  background: #fff4ee;
}
.about-own-model-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--terracotta);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.about-own-model-body {
  font-size: 0.8rem;
  color: var(--ink);
  line-height: 1.6;
  margin: 0;
}
.about-blocks {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 20px;
}
.about-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 2px solid var(--ink);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}
.about-block-icon {
  width: 36px;
  height: 36px;
  background: var(--cream);
  border: 2px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--royal);
  flex-shrink: 0;
}
.about-block-title {
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  margin-bottom: 5px;
}
.about-block-body {
  font-size: 0.8rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0;
}
.about-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.about-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--royal);
  border: 2px solid var(--royal);
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ── About modal: slideshow ── */
.about-progress {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.about-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(43,45,49,0.18);
  flex-shrink: 0;
  cursor: pointer;
  transition: background .2s;
}
.about-dot--active { background: var(--terracotta); }
.about-dot--done   { background: var(--royal); }
.about-line {
  flex: 1;
  height: 2px;
  background: rgba(43,45,49,0.12);
  margin: 0 6px;
}
.about-slides {
  position: relative;
  margin-bottom: 20px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.about-slide {
  display: none;
  animation: about-slide-in .25s ease;
}
.about-slide--active { display: block; }
@keyframes about-slide-in {
  from { opacity: 0; transform: translateX(10px); }
  to   { opacity: 1; transform: translateX(0); }
}
.about-slide .about-own-model,
.about-slide .about-block { margin-bottom: 0; }
.about-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.about-nav-back {
  display: none;
  flex: 1;
  justify-content: center;
}
.about-nav-next { flex: 1; justify-content: center; }

/* ═══════════════════════════════════════
   RESPONSIVE BREAKPOINTS
═══════════════════════════════════════ */

/* ── Tablet & below (≤ 768px) ── */
@media (max-width: 768px) {
  /* ── Header: collapse the inline nav into a hamburger dropdown ── */
  .site-header { position: relative; }
  .site-nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-bottom: 2px solid var(--ink);
    box-shadow: var(--shadow-sm);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: max-height .25s ease, opacity .2s ease;
    z-index: 500;
  }
  .site-nav.open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }
  .site-nav-link {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-bottom: 1.5px solid rgba(43,45,49,0.12);
  }
  .site-nav-link:hover,
  .site-nav-link:focus-visible {
    background: rgba(43,45,49,0.04);
    border-bottom-color: rgba(43,45,49,0.12);
  }

  /* ── Switch from fixed-viewport to natural-scroll on mobile.
     When the keyboard opens, height:100% + overflow:hidden hides content
     behind it. Let the page scroll instead. ── */
  html {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }
  body {
    height: auto;
    min-height: 100svh;   /* svh = stable — doesn't jump with browser chrome */
    overflow-x: hidden;
    overflow-y: auto;
  }

  /* Landing — mobile: natural height, footer always visible */
  .landing-section {
    height: auto;
    min-height: 0;
    overflow: visible;
    overflow-x: hidden;
  }
  .landing-inner      { grid-template-columns: 1fr; gap: 0; padding: 32px 24px 20px; flex: unset; overflow: visible; min-height: 0; }
  .landing-left       { justify-content: flex-start; }

  /* Hide right column and car on mobile */
  .landing-right      { display: none; }
  .landing-car-img    { display: none; }

  /* Hide desktop heading, show mobile heading */
  .lh-desktop         { display: none; }
  .lh-mobile          { display: block; }

  /* Hide benefit cards on mobile */
  .landing-benefit-cards { display: none; }

  /* Show mobile CTA button */
  .landing-cta--mobile {
    display: flex;
    margin-top: 24px;
    margin-bottom: 0;
  }

  /* Hide insurer logos strip on mobile */
  .landing-insurers   { display: none; }

  /* Contact strip on mobile */
  .landing-contact-strip {
    width: calc(100% - 48px);
    margin: 20px 24px 16px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .landing-contact-btn {
    width: 100%;
    justify-content: center;
  }
  .lcs-sub { display: none; }

  .landing-footnote   { padding: 0 24px 20px; }

  .landing-trust-row  { margin-top: 20px; gap: 14px; }
  .landing-trust-item { font-size: 0.78rem; }
  .landing-sub        { font-size: 0.88rem; margin-bottom: 0; }
  .landing-heading    { font-size: clamp(2.2rem, 8vw, 3rem); margin-bottom: 12px; }

  /* Remove overflow clipping from the layout chain.
     Also switch flex containers to block so children grow to content height. */
  .page-body    { overflow: visible; flex: unset; min-height: 0; display: block; }
  .wizard-outer { overflow: visible; flex: unset; min-height: 0; display: block; }
  .wizard-card  { overflow: visible; flex: unset; display: block; }

  .wizard-step.active {
    flex: unset;
    overflow: visible;
    display: block;   /* stop it from being a flex container that clamps children */
  }

  /* step-body: natural height, page scroll handles the rest */
  .step-body {
    flex: unset;
    overflow: visible;
    min-height: 0;
    max-height: none;
  }

  /* Step 1: field-group no longer needs to fill vertical space */
  #step1 .step-body  { flex: unset; }
  #step1 .field-group { flex: unset; min-height: 0; }

  /* Give the results list enough room to show without fighting for space */
  .checkbox-list,
  #step1 .checkbox-list {
    max-height: 220px;
    overflow-y: auto;
  }

  .step-header     { padding: 16px 18px 0; }
  .step-body       { padding: 12px 18px; }
  .step-nav        { padding: 10px 18px 12px; }
  .action-buttons-grid { grid-template-columns: repeat(3,1fr); gap: 6px; }
  .btn-primary, .btn-ghost, .btn-emerald, .btn-amber {
    padding: 9px 14px;
    font-size: 0.78rem;
  }
}

/* ── Mobile (≤ 480px) ── */
@media (max-width: 480px) {
  .site-header     { padding: 8px 14px; }
  .brand-sub       { display: none; }
  .site-nav-cta-label { display: none; }

  .landing-benefit-cards { gap: 7px; }
  .landing-benefit-card  { padding: 10px 7px; }
  .landing-insurer-logos { gap: 14px; }
  .insurer-logo          { font-size: 0.75rem; }
  .lqc-row               { gap: 7px; }

  .progress-wrap   { padding: 10px 14px 8px; }
  .step-names      { display: none; }
  .step-dot        { width: 26px; height: 26px; font-size: 0.7rem; }

  .wizard-outer    { padding: 0 12px 12px; }
  .step-header     { padding: 14px 15px 0; }
  .step-body       { padding: 10px 15px; }
  .step-nav        { padding: 9px 15px 12px; }
  .step-heading    { font-size: 1.15rem; }
  .step-sub        { font-size: 0.72rem; }

  .field-group     { padding: 11px; }
  .checkbox-list   { max-height: 200px; }

  .action-buttons-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .btn-primary, .btn-ghost, .btn-emerald, .btn-amber {
    width: 100%;
    justify-content: center;
    padding: 10px 14px;
  }
  .step-nav        { flex-wrap: wrap; gap: 8px; }
  .step-nav .btn-ghost { order: 2; }
  .step-nav .btn-primary { order: 1; flex: 1; justify-content: center; }

  .premium-amount  { font-size: 1.9rem; }
  .action-card     { padding: 14px 15px; }

  /* Driver profile — collapse 3-col grids to 2-col on narrow screens */
  .dp-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ── Analysis Card ─────────────────────────────────────────────────────────── */

#analysisCard .action-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

#analysisBadge {
  display: inline-block;
  border-radius: 3px;
  text-transform: uppercase;
}

#analysisCoverage {
  max-width: 60%;
  line-height: 1.3;
}

.af-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--ink);
  line-height: 1.4;
}

.af-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}

.af-text {
  flex: 1;
}

.af-impact {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 1px 7px;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}

.af-impact-up {
  background: rgba(255,120,40,.12);
  color: var(--terracotta);
  border: 1px solid rgba(255,120,40,.3);
}

.af-impact-down {
  background: rgba(45,106,79,.12);
  color: var(--forest);
  border: 1px solid rgba(45,106,79,.3);
}

.af-addon {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 3px;
  background: rgba(27,42,74,.07);
  color: var(--royal);
  border: 1px solid rgba(27,42,74,.15);
}

/* ── Very small (≤ 360px) ── */
@media (max-width: 360px) {
  .step-heading    { font-size: 1rem; }
  .premium-amount  { font-size: 1.6rem; }
  .wizard-outer    { padding: 0 8px 10px; }
}
