/* Best5AutoInsurance – Auto Insurance quiz v2 (new engaging design, same steps as v30) */
:root {
  --navy: #183b5f;      /* logo navy */
  --blue: #1b4b96;      /* Best5 CTA blue */
  --blue-dark: #143a75;
  --gold: #c49a4c;      /* logo gold */
  --gold-dark: #9c7632;
  --gold-soft: #f4e8cf;
  --sky: #eef4fa;       /* cool page background – sky / road feel */
  --sky-deep: #dce8f5;
  --ink: #1d2733;
  --muted: #56626f;
  --line: #dbe3ec;
  --white: #fff;
  --error: #c62828;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(24, 59, 95, .10);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

button, input, select { font: inherit; }
[hidden] { display: none !important; }

/* Highlight used only in the main headline */
.hero__title .hl {
  color: var(--navy);
  background: linear-gradient(transparent 62%, var(--gold-soft) 62%);
  padding: 0 2px;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px max(16px, calc((100% - 960px) / 2 + 16px));
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header__logo { display: block; width: 112px; height: auto; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--sky);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Hero + quiz card ---------- */
/* Clean white quiz area, no card around it (Alex – "clean" like NerdWallet) */
.hero {
  padding: 18px 16px 40px;
  background: var(--white);
}
.quiz {
  max-width: 680px;
  margin: 0 auto;
}

.quiz-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.quiz-back {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}
.quiz-back:hover { border-color: var(--blue); color: var(--blue); }
body[data-step="1"] .quiz-back { display: none; }
.quiz-progress__track { position: relative; flex: 1; height: 10px; border-radius: 99px; background: #e3eaf2; }
.quiz-progress__fill {
  position: relative;
  height: 100%;
  width: 8%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-soft), var(--gold));
  transition: width .4s ease;
}
.quiz-progress__car {
  position: absolute;
  top: 50%;
  right: -14px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 2px 8px rgba(24, 59, 95, .2);
  transform: translateY(-50%);
}
.quiz-progress__pct { min-width: 38px; text-align: right; font-size: 14px; font-weight: 700; color: var(--navy); }
/* No "0%" on the first screen */
body[data-step="1"] .quiz-progress__pct { visibility: hidden; }

.step { display: none; }
.step.is-active { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-dark);
}
.hero__title {
  margin: 0 0 18px;
  font-size: 27px;
  line-height: 1.22;
  font-weight: 700;
  color: var(--navy);
  text-wrap: balance;
}
.step__title {
  display: block;
  margin: 0 0 18px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
  text-wrap: balance;
}

/* ---------- ZIP box ---------- */
.zip-box { padding: 0; }
.zip-box__label { display: block; margin-bottom: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.zip-box__row { display: grid; gap: 10px; }
.zip-box .cta { margin-top: 0; width: 100%; }

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
}
.badges li { display: inline-flex; align-items: center; gap: 6px; }
.badges svg { width: 16px; height: 16px; fill: none; stroke: var(--gold-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Answer buttons (bigger – Alex) ---------- */
.options { display: grid; gap: 12px; }
.options--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--years { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.options--months { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.options--days { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; }
.options--pair { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.opt {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 62px;
  padding: 10px 12px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: border-color .15s, background-color .15s, transform .15s, box-shadow .15s;
}
.opt:hover { border-color: var(--blue); background: #f5f9fd; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(27, 75, 150, .14); }
.opt:active { transform: none; }
.opt:focus-visible { outline: 3px solid rgba(27, 75, 150, .3); outline-offset: 2px; }
.options--two .opt { font-size: 15px; }
.options--days .opt { min-height: 52px; padding: 6px 2px; border-radius: 10px; }

/* Make buttons with the car maker logo above the name */
.opt--make { flex-direction: column; gap: 6px; min-height: 80px; padding: 10px 8px; }
.opt__logo { display: block; width: auto; height: 28px; max-width: 80px; object-fit: contain; }
/* Thin logos (Chrysler wings, Dodge) get more width so they don't look tiny */
.opt__logo--wide { width: 120px; max-width: 100%; height: 28px; }

/* Big answer cards with an icon (yes/no, gender, own/rent) */
.opt--card { flex-direction: column; gap: 12px; min-height: 150px; font-size: 18px; border-radius: var(--radius); }
.opt--solo { grid-column: 1 / -1; min-height: 64px; flex-direction: row; }
.opt--solo .opt__icon { display: none; }
.opt__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--sky) no-repeat center / 28px;
  transition: background-color .15s;
}
.opt--card:hover .opt__icon { background-color: var(--gold-soft); }
.opt__icon--yes { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opt__icon--no { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E"); }
.opt__icon--male { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='14' r='5.5'/%3E%3Cpath d='M14 10l6-6M15 4h5v5'/%3E%3C/svg%3E"); }
.opt__icon--female { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='9' r='5.5'/%3E%3Cpath d='M12 14.5V22M8.5 18.5h7'/%3E%3C/svg%3E"); }
.opt__icon--own { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 11l8-7 8 7'/%3E%3Cpath d='M6 9.5V20h12V9.5'/%3E%3Cpath d='M10 20v-5h4v5'/%3E%3C/svg%3E"); }
.opt__icon--rent { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23183b5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='8' cy='15' r='4'/%3E%3Cpath d='M11 12l8-8M16 7l2.5 2.5M14 9l2 2'/%3E%3C/svg%3E"); }

.opt--loading {
  pointer-events: none;
  border-color: transparent;
  background: linear-gradient(90deg, #f1f5f9 25%, #e3eaf2 50%, #f1f5f9 75%) 0 0 / 200% 100%;
  animation: shimmer 1.2s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.load-error { grid-column: 1 / -1; margin: 0; color: var(--error); }

/* ---------- Vehicle list (step 5) ---------- */
.vehicles { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.vehicles__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--sky);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.vehicles__remove { flex: none; padding: 2px; border: 0; background: none; color: var(--gold-dark); cursor: pointer; }

/* ---------- Fields ---------- */
.field__label { display: block; margin: 0 0 6px; font-size: 15px; font-weight: 600; color: var(--ink); }
.input {
  display: block;
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--navy);
  font-size: 18px;
  font-weight: 600;
}
.input::placeholder { color: #a3a9b1; font-weight: 500; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(196, 154, 76, .2); }

/* Birth Year field as wide as the Continue button (Alex) */
#dobYearForm .field--year,
#dobYearForm .cta { width: 100%; max-width: 340px; }
.input--year { text-align: center; font-size: 24px; letter-spacing: .1em; }

.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  font-size: 16px;
  cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23183b5f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
}
.field--select { margin-top: 14px; }

.field__error { display: none; margin: 6px 0 0; font-size: 13px; font-weight: 600; color: var(--error); }
.field.has-error .input { border-color: var(--error); background: #fff7f7; }
.field.has-error .field__error { display: block; }

.fields-grid { display: grid; gap: 14px; }

/* ---------- CTA ---------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 20px;
  padding: 0 30px;
  border: 0;
  border-radius: 99px;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(27, 75, 150, .28);
  transition: background-color .15s, transform .15s;
}
.cta:hover { background: var(--blue-dark); transform: translateY(-1px); }
.cta:focus-visible { outline: 3px solid rgba(27, 75, 150, .35); outline-offset: 2px; }
.cta__arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Last step ---------- */
.last-step { margin-bottom: 18px; padding: 16px; border-radius: var(--radius); background: var(--sky); font-size: 14px; color: var(--muted); }
.last-step p { margin: 0 0 6px; }
.last-step__title { font-size: 22px; font-weight: 700; color: var(--navy); }
.last-step__secure { display: flex; align-items: center; gap: 6px; margin: 0 !important; font-weight: 700; color: var(--navy); }

.demo-note { margin: 12px 0 0; padding: 10px 12px; border: 1px dashed var(--gold); border-radius: 12px; font-size: 14px; text-align: center; }

.tcpa { margin-top: 16px; font-size: 11px; line-height: 1.55; color: var(--muted); }
.tcpa p { margin: 0; }
.tcpa a { color: var(--blue); }

/* ---------- Sections below the quiz ---------- */
.section { padding: 44px 16px; }
/* Extra 150px above the footer (Alex) */
.section--last { padding-bottom: 194px; }
/* Insurer logos only on the ZIP and Vehicle Year screens (Alex) */
body:not([data-step="1"]):not([data-step="2"]) .providers-section { display: none; }
.section--white { background: var(--white); }
.container { max-width: 960px; margin: 0 auto; }
.container--narrow { max-width: 680px; }
.section__title {
  margin: 0 0 24px;
  font-size: 25px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  text-wrap: balance;
}

.providers { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0; padding: 0; list-style: none; }
.providers { align-items: center; gap: 12px 28px; }
.providers li { display: flex; align-items: center; justify-content: center; min-height: 58px; }
.provider-logo { display: block; max-width: 100%; height: auto; }

.how { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.how__item {
  display: flex;
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.how__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--navy);
}
.how__num svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.how__step { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark); }
.how__title { margin: 0 0 2px; font-size: 17px; font-weight: 700; color: var(--navy); }
.how__item p { margin: 0; color: var(--muted); font-size: 15px; }

/* "Free, private and no obligation" card (same idea as the pet insurance quiz) */
.promise {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 26px 20px;
  border-radius: 24px;
  background: var(--sky-deep);
  text-align: center;
}
.promise__icon {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 6px 0 rgba(24, 59, 95, .08);
}
.promise__title { margin: 0 0 8px; font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--navy); text-wrap: balance; }
.promise__text { margin: 0; color: var(--muted); }
.promise__tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.promise__tags li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.promise__tags svg { width: 14px; height: 14px; fill: none; stroke: var(--gold-dark); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

.closing__sub { max-width: 34ch; margin: 10px auto 0; color: var(--muted); text-wrap: balance; }

.faq { display: grid; gap: 10px; }
.faq__item { border-radius: 12px; background: var(--white); box-shadow: 0 2px 10px rgba(24, 59, 95, .06); }
.faq__item summary {
  position: relative;
  padding: 16px 48px 16px 18px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-dark);
  transform: translateY(-50%);
}
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { margin: 0; padding: 0 18px 16px; color: var(--muted); }

.closing { display: grid; gap: 22px; align-items: center; }
.closing__img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.closing__text { text-align: center; }
.closing__text .section__title { margin-bottom: 0; }
.closing__text .cta { width: auto; }

/* ---------- Footer ---------- */
.legal {
  padding: 14px 16px 18px;
  background: #666;
  color: var(--white);
  font-family: Helvetica, Arial, sans-serif;
  font-size: 11px;
  text-align: center;
}
.legal__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 0 0 6px; padding: 0; list-style: none; }
.legal a { color: var(--white); text-decoration: none; }
.legal a:hover { text-decoration: underline; }
.legal__copy { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 480px) {
  .zip-box__row { grid-template-columns: 1fr auto; align-items: start; }
  .zip-box .cta { width: auto; min-height: 58px; }
  .options--years { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .options--months { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .options--days { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .cta { width: auto; }
  .cta--wide { width: 100%; }
}

@media (min-width: 768px) {
  .site-header { padding-top: 12px; padding-bottom: 12px; }
  .site-header__logo { width: 146px; }
  .hero { padding: 40px 16px 64px; }
  .hero__title { font-size: 38px; }
  .badges { gap: 8px 20px; font-size: 14px; }
  .badges svg { width: 18px; height: 18px; }
  .step__title { font-size: 28px; }
  .input { height: 64px; font-size: 20px; }
  .options--years { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .options--months { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .options--days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .opt { min-height: 66px; }
  .options--two .opt { font-size: 15px; }
  /* 10 makes = 2 tidy rows of 5 on desktop */
  #makeButtons { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .opt--make { min-height: 92px; }
  .opt--card { min-height: 170px; }
  .fields-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .field--full { grid-column: 1 / -1; }
  .cta--wide { width: auto; }
  .section { padding: 64px 24px; }
  .section--last { padding-bottom: 214px; }
  .section__title { font-size: 32px; }
  .how { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .how__item { flex-direction: column; }
  .providers { gap: 12px 44px; }
  .closing { grid-template-columns: 1fr 1fr; gap: 40px; }
  .closing__text { text-align: left; }
  .closing__text .section__title { text-align: left; margin-bottom: 0; }
  .closing__sub { margin-left: 0; }
  .promise { grid-template-columns: auto 1fr; justify-items: start; gap: 32px; padding: 36px 44px; text-align: left; }
  .promise__icon { width: 112px; height: 112px; }
  .promise__icon svg { width: 46px; height: 46px; }
  .promise__title { font-size: 30px; }
  .promise__tags { justify-content: flex-start; }
}
