/* ============================================================
   Savings quiz — dark "motherboard" theme.

   The marketing site is dark (body.site). Everything here is scoped to
   `body.site` so it matches the glassy-panel language used by .card and
   .form-card in styles.css: rgba(255,255,255,.05) fill, rgba(127,220,171,.22)
   border. styles.css:115 also forces every heading white, so any heading we
   want in a non-white color must ALSO be scoped to body.site to win.
   ============================================================ */

.quiz-wrap { max-width: 720px; margin: 0 auto; }

.quiz-card {
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(127, 220, 171, .22);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .28);
  padding: 32px;
  backdrop-filter: blur(2px);
}

/* --- progress --- */
.quiz-progress { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.quiz-pip {
  height: 4px; flex: 1;
  background: rgba(255, 255, 255, .12);
  border-radius: var(--radius-pill);
  transition: background .25s, box-shadow .25s;
}
.quiz-pip.on { background: #58c98a; box-shadow: 0 0 10px rgba(88, 201, 138, .5); }
.quiz-step-label {
  font-size: .74rem; color: #a6c2b2;
  letter-spacing: .04em; white-space: nowrap; margin-left: 6px;
}

/* --- questions --- */
body.site .quiz-q { font-size: 1.3rem; margin: 0 0 6px; color: #ffffff; }
.quiz-hint { font-size: .88rem; color: #a6c2b2; margin: 0 0 18px; }

.quiz-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.quiz-opts-multi { grid-template-columns: repeat(2, 1fr); }

.quiz-opt {
  font: inherit; font-size: .93rem; font-weight: 500;
  text-align: left;
  padding: 14px 16px;
  background: rgba(255, 255, 255, .04);
  color: #dceee4;
  border: 1.5px solid rgba(127, 220, 171, .2);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .16s, background .16s, transform .1s, color .16s;
}
.quiz-opt:hover {
  border-color: rgba(127, 220, 171, .55);
  background: rgba(127, 220, 171, .09);
  color: #ffffff;
}
.quiz-opt:active { transform: translateY(1px); }
.quiz-opt.on {
  border-color: #7fdcab;
  background: rgba(127, 220, 171, .16);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(127, 220, 171, .35), 0 0 16px rgba(88, 201, 138, .18);
}

/* --- nav --- */
.quiz-nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 26px;
}
.quiz-back {
  font: inherit; font-size: .9rem;
  background: none; border: none; cursor: pointer;
  color: #a6c2b2; padding: 8px 4px;
}
.quiz-back:hover { color: #ffffff; text-decoration: underline; }
.quiz-nav .btn[disabled] { opacity: .4; cursor: not-allowed; }

/* --- result --- */
.quiz-result-head { text-align: center; padding-bottom: 8px; }
.quiz-big {
  font-size: clamp(2.4rem, 7vw, 3.4rem);
  font-weight: 800; color: #ffffff;
  line-height: 1.05; letter-spacing: -.02em;
  margin: 6px 0 4px;
  text-shadow: 0 0 30px rgba(88, 201, 138, .25);
}
.quiz-big span { font-size: .38em; font-weight: 600; color: #a6c2b2; }
.quiz-big-sub { font-size: .95rem; color: #cfe3d7; margin: 0 0 10px; }
.quiz-big-sub strong { color: #ffffff; }

/* The disambiguator. Without this line people read the big number as a quote. */
.quiz-big-note {
  display: inline-block;
  font-size: .8rem; color: #7fdcab; font-weight: 600;
  letter-spacing: .02em;
  background: rgba(127, 220, 171, .12);
  border: 1px solid rgba(127, 220, 171, .3);
  border-radius: var(--radius-pill);
  padding: 5px 14px;
  margin: 0 0 24px;
}
.quiz-big-note strong { color: #ffffff; }

.quiz-lines-head {
  font-size: .8rem; color: #8fae9e; text-transform: uppercase;
  letter-spacing: .07em; font-weight: 600; margin: 0 0 2px;
}
.quiz-lines { list-style: none; margin: 0 0 20px; padding: 0; }
.quiz-line-top strong em { font-size: .72em; font-style: normal; font-weight: 600; opacity: .75; }
.quiz-lines li { padding: 13px 0; border-top: 1px solid rgba(127, 220, 171, .14); }
.quiz-line-top {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 14px; font-size: .95rem; color: #ffffff; font-weight: 500;
}
.quiz-line-top strong { font-weight: 700; white-space: nowrap; color: #7fdcab; }
.quiz-line-detail {
  display: block; margin-top: 3px;
  font-size: .78rem; color: #8fae9e; line-height: 1.45;
}

/* --- assumption sliders --- */
.quiz-adjust {
  border: 1px solid rgba(127, 220, 171, .18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  margin-bottom: 24px;
}
.quiz-adjust summary {
  cursor: pointer; list-style: none;
  padding: 13px 16px;
  font-size: .89rem; font-weight: 600; color: #7fdcab;
}
.quiz-adjust summary::-webkit-details-marker { display: none; }
.quiz-adjust summary::after { content: " \25BE"; }
.quiz-adjust[open] summary::after { content: " \25B4"; }
.quiz-adjust-body { padding: 4px 16px 18px; }

.quiz-slider { display: block; margin-bottom: 16px; }
.quiz-slider-top {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .84rem; color: #cfe3d7; margin-bottom: 6px; gap: 12px;
}
.quiz-slider-top strong { color: #7fdcab; white-space: nowrap; }
.quiz-slider input[type="range"] { width: 100%; accent-color: #58c98a; }
.quiz-src { font-size: .76rem; color: #8fae9e; line-height: 1.5; margin: 14px 0 0; }
body.site .quiz-src a { color: #7fdcab; }

/* --- email gate --- */
.quiz-gate {
  background: rgba(127, 220, 171, .1);
  border: 1px solid rgba(127, 220, 171, .4);
  border-radius: var(--radius-sm);
  padding: 24px;
}
body.site .quiz-gate h4 { margin: 0 0 6px; font-size: 1.12rem; color: #ffffff; }
.quiz-gate > p { font-size: .92rem; color: #cfe3d7; margin: 0 0 16px; }
.quiz-gate-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quiz-gate-form input[type="text"],
.quiz-gate-form input[type="email"] {
  width: 100%; font: inherit; font-size: .95rem;
  padding: 11px 13px; margin-bottom: 10px;
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(127, 220, 171, .28);
  border-radius: var(--radius-sm);
  color: #eafff3;
}
.quiz-gate-form input::placeholder { color: #7f9d8d; }
.quiz-gate-row input { margin-bottom: 0 !important; }
.quiz-gate-form input:focus {
  outline: none; border-color: #7fdcab;
  box-shadow: 0 0 0 3px rgba(127, 220, 171, .18);
}
.quiz-gate-form .btn { width: 100%; margin-top: 4px; }
.quiz-gate-note { font-size: .78rem; color: #a6c2b2; text-align: center; margin: 10px 0 0; }
.quiz-gate-err { font-size: .82rem; color: #ff9b93; min-height: 1.1em; }

/* Honeypot: off-screen, never focusable, invisible to humans. */
.quiz-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; opacity: 0;
}

/* --- revealed price --- */
.quiz-price {
  border: 1.5px solid rgba(127, 220, 171, .45);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: rgba(127, 220, 171, .07);
}
.quiz-price.below { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .04); }
body.site .quiz-price h4 { margin: 0 0 14px; font-size: 1.15rem; color: #ffffff; }
.quiz-price > p { font-size: .93rem; color: #cfe3d7; line-height: 1.6; }
body.site .quiz-price a:not(.btn) { color: #7fdcab; font-weight: 600; }

.quiz-price-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 14px; margin-bottom: 14px;
}
.quiz-price-grid > div {
  background: rgba(0, 0, 0, .22);
  border: 1px solid rgba(127, 220, 171, .18);
  border-radius: var(--radius-sm);
  padding: 14px;
  text-align: center;
}
.quiz-price-grid span {
  display: block; font-size: .76rem;
  color: #a6c2b2; letter-spacing: .03em;
}
.quiz-price-grid strong {
  display: block; font-size: 1.5rem; font-weight: 800;
  color: #ffffff; margin: 3px 0 1px;
}
.quiz-price-grid em { font-size: .72rem; color: #8fae9e; font-style: normal; }
.quiz-price-net {
  background: rgba(127, 220, 171, .16) !important;
  border-color: #7fdcab !important;
}
.quiz-price-net strong { color: #7fdcab; }

/* The save-vs-cost sentence. This is the comparison the whole page builds to. */
.quiz-price-math {
  font-size: .95rem; color: #cfe3d7; line-height: 1.7;
  background: rgba(0, 0, 0, .22);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 0 0 14px;
}
.quiz-price-math strong { color: #7fdcab; font-weight: 700; }

.quiz-price-incl { font-size: .89rem; color: #7fdcab; font-weight: 600; margin: 0 0 10px; }
.quiz-price-caveat {
  font-size: .87rem; color: #cfe3d7;
  background: rgba(0, 0, 0, .2);
  border-left: 3px solid rgba(127, 220, 171, .5);
  padding: 11px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 0 0 12px;
}
.quiz-price-year { font-size: .84rem; color: #a6c2b2; margin: 0 0 18px; }
.quiz-price-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-price-cta .btn { flex: 1; min-width: 190px; }
.quiz-price-terms { font-size: .76rem; color: #8fae9e; text-align: center; margin: 12px 0 0; }

.quiz-restart-wrap { text-align: center; margin-top: 20px; }
.quiz-restart {
  font: inherit; font-size: .84rem; background: none; border: none;
  color: #8fae9e; cursor: pointer; text-decoration: underline;
}
.quiz-restart:hover { color: #cfe3d7; }

/* --- sources (sits directly on the dark background, not on a card) --- */
.quiz-sources {
  max-width: 720px; margin: 26px auto 0;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(127, 220, 171, .16);
  border-radius: var(--radius-sm);
  padding: 4px 18px;
}
.quiz-sources summary {
  cursor: pointer; list-style: none; font-size: .85rem;
  color: #bcd6c6; text-align: center; padding: 12px 0; font-weight: 600;
}
.quiz-sources summary::-webkit-details-marker { display: none; }
.quiz-sources summary::after { content: " \25BE"; }
.quiz-sources[open] summary::after { content: " \25B4"; }
.quiz-sources ul { margin: 6px 0 16px; padding-left: 20px; }
.quiz-sources li { font-size: .82rem; color: #a6c2b2; line-height: 1.65; margin-bottom: 10px; }
.quiz-sources li strong { color: #d8e8dd; }
body.site .quiz-sources a { color: #7fdcab; }

/* --- estimate section intro + contact direct line --- */
.estimate-example {
  max-width: 640px; margin: -18px auto 34px; text-align: center;
  font-size: .95rem; line-height: 1.65; color: #cfe3d7;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(127, 220, 171, .22);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
}
.estimate-example strong { color: #ffffff; }

.contact-direct { font-size: .95rem; color: #a6c2b2; margin: 0 0 10px; }
body.site .contact-direct a { color: #7fdcab; font-weight: 600; }

/* Failed-submit state: a warning, not a success. */
.form-success.failed {
  background: rgba(180, 40, 30, .22);
  border-color: rgba(255, 120, 110, .5);
  color: #ffc9c4;
}
body.site .form-success.failed a { color: #ffd7d3; font-weight: 700; text-decoration: underline; }

@media (max-width: 640px) {
  .quiz-card { padding: 22px 18px; }
  .quiz-opts, .quiz-opts-multi { grid-template-columns: 1fr 1fr; }
  .quiz-gate-row { grid-template-columns: 1fr; gap: 0; }
  .quiz-gate-row input { margin-bottom: 10px !important; }
  .quiz-price-grid { grid-template-columns: 1fr; }
  .quiz-price-cta .btn { min-width: 0; }
}
