.quote-page {
  --page: #faf7fd;
  --card-line: #e4dcee;
  background: var(--page);
  color: var(--text);
}

/* ---- Header with progress line ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-top: 6px solid var(--violet-900);
  text-align: center;
}
.brand { display: inline-block; padding: 8px 0 6px; }
.brand img { display: block; width: 104px; height: auto; }
.progress { height: 3px; background: var(--lavender-100); }
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--violet-600);
  transition: width 0.35s ease;
}

main { padding: 0 16px; }

/* ---- Hero ------------------------------------------------------------------------ */

.hero { max-width: 640px; margin: 0 auto; padding: 28px 0 20px; text-align: center; }
.hero h1, .result h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 6.4vw, 42px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.underline {
  text-decoration: underline;
  text-decoration-color: var(--coral);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}
.lede { margin: 12px auto 0; max-width: 52ch; color: var(--muted); font-size: 15px; }

/* ---- Question card ------------------------------------------------------------------ */

.card {
  max-width: 600px;
  margin: 0 auto;
  padding: 28px 20px 18px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  text-align: center;
}
.step { animation: step-in 0.2s ease; }
@keyframes step-in { from { opacity: 0; } to { opacity: 1; } }

.kicker { margin: 0 0 6px; color: var(--violet-600); font-size: 13px; font-weight: 600; }
.step h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
}
.step .sub { margin: -12px 0 18px; color: var(--muted); font-size: 14px; }
.step .label { display: block; margin: 0 0 8px; color: var(--ink); font-size: 14px; font-weight: 500; }

.stack { max-width: 460px; margin: 0 auto; display: grid; gap: 12px; }

/* Answer buttons: square-ish outlined tiles, centred text. */
.choices { display: grid; gap: 10px; max-width: 460px; margin: 0 auto; }
.choices.cols-2 { grid-template-columns: repeat(2, 1fr); }
.choices.cols-3 { grid-template-columns: repeat(3, 1fr); }
.choice {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid #cfc6da;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.choice:hover { border-color: var(--violet-600); background: var(--lavender-100); }
.choices.insurers .choice { min-height: 60px; display: grid; place-items: center; }
.insurer-logo { display: block; max-width: 100%; max-height: 40px; width: auto; height: 24px; object-fit: contain; }
.insurer-name { font-weight: 600; }
.choice[aria-pressed='true'] { border-color: var(--violet-600); background: var(--lavender-200); font-weight: 600; }

.input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #cfc6da;
  border-radius: 3px;
  background: var(--white);
  color: var(--ink);
  font-size: 16px;
  text-align: center;
}
.input.left { text-align: left; }
.input::placeholder { color: #9a93a8; }
.input:focus { outline: none; border-color: var(--violet-600); box-shadow: 0 0 0 3px rgba(138, 43, 209, 0.16); }
.input[aria-invalid='true'] { border-color: var(--danger); }

.btn-block { width: 100%; }
.btn .arrow { font-size: 18px; line-height: 1; }

.error { margin: 10px 0 0; color: var(--danger); font-size: 14px; font-weight: 500; }
.error:empty { display: none; }

.fineprint { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.fineprint .lock { vertical-align: -2px; margin-right: 4px; }

.back-link {
  display: block;
  margin: 14px auto 0;
  padding: 6px 10px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.back-link:hover { color: var(--violet-600); text-decoration: underline; }
.back-link[hidden] { display: none; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- Below the card ---------------------------------------------------------------------- */

.panel-strip {
  max-width: 600px;
  margin: 18px auto 0;
  padding: 12px 16px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  color: #7c7590;
  font-size: 13px;
  font-weight: 600;
}
.panel-strip li { display: flex; align-items: center; }
.panel-strip .insurer-logo { max-height: 32px; max-width: 110px; }

.how { max-width: 640px; margin: 36px auto 0; text-align: center; }
.how h2 { margin: 0 0 22px; color: var(--ink); font-size: 18px; font-weight: 700; }
.how .accent { color: var(--violet-600); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.how-steps li { display: grid; justify-items: center; align-content: start; gap: 4px; }
.how-art {
  width: 84px;
  height: 84px;
  margin-bottom: 8px;
  display: grid;
  place-items: center;
  border-radius: var(--leaf);
  background: var(--lavender-200);
  color: var(--violet-700);
}
.how-steps strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.how-steps span:last-child { color: var(--muted); font-size: 12px; }

.faq {
  max-width: 640px;
  margin: 36px auto 0;
  padding-top: 8px;
  border-top: 1px solid var(--card-line);
}
.faq h2 { margin: 28px 0 8px; color: var(--ink); font-size: 20px; font-weight: 700; }
.faq p { margin: 0 0 12px; font-size: 14px; line-height: 1.65; }
.faq a { color: var(--violet-700); font-weight: 600; }

/* ---- Result view (after the contact step) ------------------------------------------------- */

.result { max-width: 640px; margin: 0 auto; padding: 32px 0 8px; text-align: center; }
.result h1 { font-size: clamp(24px, 5.4vw, 32px); }
.next-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 24px 0 18px;
  padding: 0;
  list-style: none;
}
.next-steps li {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 4px;
  padding: 16px 10px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 6px;
}
.next-steps .num {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--lavender-200);
  color: var(--violet-700);
  font-size: 13px;
  font-weight: 600;
}
.next-steps strong { color: var(--ink); font-size: 14px; line-height: 1.3; }
.next-steps em { font-style: normal; color: var(--coral); }
.next-steps li > span:last-child { color: var(--muted); font-size: 12px; }

.measure-box {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--card-line);
  border-radius: 6px;
  text-align: left;
}
.measure-box h2 { margin: 0; color: var(--ink); font-size: 15px; font-weight: 600; }
.measure-box p { margin: 2px 0 14px; color: var(--muted); font-size: 13px; }
.measure-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.measure-box .input { text-align: left; }
.saved {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid #b9e4cf;
  border-radius: 6px;
  background: #ecf8f2;
  color: var(--success);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
}
.back-home { display: inline-block; margin-top: 18px; color: var(--muted); font-size: 13px; }

/* ---- Footer ------------------------------------------------------------------------------- */

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 18px;
  max-width: 640px;
  margin: 32px auto 0;
  padding: 18px 16px 32px;
  color: #9a93a8;
  font-size: 12px;
}
.site-footer a { color: inherit; }

/* ---- Small screens --------------------------------------------------------------------------- */

@media (max-width: 479px) {
  .choices.cols-3.wrap-2 { grid-template-columns: repeat(2, 1fr); }
  .how-steps, .next-steps { grid-template-columns: 1fr; }
  .next-steps li { grid-template-columns: auto 1fr; justify-items: start; text-align: left; column-gap: 12px; }
  .next-steps .num { grid-row: span 2; margin: 0; }
}

@media (min-width: 640px) {
  .card { padding: 32px 40px 20px; }
  .brand img { width: 120px; }
}
