/* ============================================================
   SPAW Society — Quiz page styles.
   ADDITIVE ONLY. Inherits every token from styles.css / site.css.
   Never re-declares :root tokens. (See free-tool-builder PATTERNS.)
   ============================================================ */

.quiz-shell {
  background: var(--surface-app);
  min-height: 70vh;
}
.quiz-wrap {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 56px 24px 88px;
}

/* ---- Intro / eyebrow ---- */
.quiz-head { text-align: center; margin-bottom: 30px; }
.quiz-head h1 {
  font-family: var(--font-sans);
  font-weight: 900;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.08;
  color: var(--text-strong);
  margin: 14px 0 10px;
}
.quiz-head h1 .accent { color: var(--brand-primary); }
.quiz-head p { font-size: 16px; color: var(--text-body); font-weight: 500; margin: 0; }

/* ---- Progress ---- */
.quiz-progress { margin: 0 auto 26px; max-width: 460px; }
.quiz-progress__meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 12.5px; font-weight: 700; color: var(--text-muted); margin-bottom: 8px;
}
.quiz-progress__bar {
  height: 10px; background: var(--spaw-crema-deep);
  border-radius: var(--radius-pill); overflow: hidden;
}
.quiz-progress__fill {
  height: 100%; background: var(--brand-primary);
  border-radius: var(--radius-pill); transition: width 320ms cubic-bezier(.22,1,.36,1);
}

/* ---- Card that holds each step ---- */
.quiz-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md, 0 18px 40px rgba(43,38,34,0.10));
  padding: 34px 30px 30px;
}
.quiz-step { animation: quiz-enter 260ms cubic-bezier(.22,1,.36,1); }
@keyframes quiz-enter {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .quiz-step { animation: none; }
  .quiz-progress__fill { transition: none; }
}

.quiz-q { text-align: center; margin-bottom: 22px; }
.quiz-q__emoji { font-size: 34px; display: block; margin-bottom: 6px; }
.quiz-q__title {
  font-family: var(--font-sans); font-weight: 800; font-size: 23px;
  color: var(--text-strong); margin: 0; line-height: 1.2;
}
.quiz-q__hint { font-size: 14px; color: var(--text-muted); font-weight: 500; margin: 8px 0 0; }

/* ---- Option grid ---- */
.quiz-options { display: grid; gap: 12px; }
.quiz-options.cols-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .quiz-options.cols-2 { grid-template-columns: 1fr; } }

.quiz-opt {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left;
  background: var(--surface-card);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 18px; cursor: pointer;
  font-family: var(--font-sans);
  transition: transform 120ms, border-color 120ms, background 120ms;
}
.quiz-opt:hover { transform: translateY(-2px); border-color: var(--brand-primary); }
.quiz-opt:active { transform: scale(0.98); }
.quiz-opt[aria-pressed="true"] {
  border-color: var(--brand-primary);
  background: var(--spaw-fucsia-100);
}
.quiz-opt__ic { font-size: 26px; line-height: 1; flex: none; }
.quiz-opt__txt { display: flex; flex-direction: column; gap: 2px; }
.quiz-opt__label { font-weight: 800; font-size: 16px; color: var(--text-strong); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.quiz-opt__sub { font-size: 12.5px; font-weight: 600; color: var(--text-muted); }

/* Multi-select service options (checkbox affordance) */
.quiz-opt--multi .quiz-opt__check {
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  border: 2px solid var(--border-strong); background: var(--surface-card);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 900; color: var(--text-on-brand); line-height: 1;
  transition: background 120ms, border-color 120ms;
}
.quiz-opt--multi[aria-pressed="true"] .quiz-opt__check {
  background: var(--brand-primary); border-color: var(--brand-primary);
}
.field-hint-inline { font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: 0; }

/* ---- Per-pet grouped selectors ---- */
.quiz-group { margin-bottom: 20px; }
.quiz-group:last-of-type { margin-bottom: 4px; }
.quiz-group .chip-row { gap: 8px; }
.quiz-group .quiz-options { gap: 10px; }
.quiz-size-note {
  margin: 0; padding: 12px 16px; font-size: 13.5px; font-weight: 600;
  color: var(--text-on-cream); background: var(--spaw-verde-100);
  border-radius: var(--radius-md);
}

/* ---- Footer nav inside card ---- */
.quiz-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; flex-wrap: wrap; }
.quiz-nav__spacer { flex: 1; }
.quiz-running { font-size: 13px; font-weight: 600; color: var(--text-body); }
.quiz-running strong { color: var(--text-strong); }

/* ---- Email gate ---- */
.quiz-gate { text-align: center; }
.quiz-gate .field { text-align: left; max-width: 380px; margin: 18px auto 0; }
.quiz-consent {
  font-size: 12px; color: var(--text-muted); font-weight: 500;
  max-width: 380px; margin: 14px auto 0; line-height: 1.45;
}
.quiz-error { color: var(--status-danger); font-size: 13px; font-weight: 700; margin-top: 10px; min-height: 18px; }

/* ---- Result ---- */
.quiz-result { text-align: center; }
.quiz-result__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand-primary); margin-bottom: 6px;
}
.quiz-result__total {
  font-family: var(--font-sans); font-weight: 900;
  font-size: clamp(48px, 12vw, 76px); line-height: 1;
  color: var(--text-strong); margin: 6px 0 4px;
}
.quiz-result__total .cur { color: var(--brand-primary); font-size: 0.55em; vertical-align: super; }
.quiz-result__sub { font-size: 15px; color: var(--text-body); font-weight: 600; margin: 0 0 22px; }

.quiz-breakdown {
  text-align: left; max-width: 420px; margin: 0 auto 8px;
  background: var(--spaw-crema-50, var(--surface-app));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg); padding: 6px 18px;
}
.quiz-breakdown__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--border-subtle);
  font-size: 14.5px;
}
.quiz-breakdown__row:last-child { border-bottom: none; }
.quiz-breakdown__row .k { color: var(--text-body); font-weight: 700; }
.quiz-breakdown__row .k small { font-weight: 500; color: var(--text-muted); }
.quiz-breakdown__row .v { color: var(--text-strong); font-weight: 800; white-space: nowrap; }
.quiz-breakdown__row.is-pet { align-items: flex-start; }
.svc-list { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; }
.svc-line { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); }
.quiz-breakdown__row.is-total .k,
.quiz-breakdown__row.is-total .v { font-size: 16px; color: var(--text-strong); }

.quiz-note {
  font-size: 12.5px; color: var(--text-muted); font-weight: 500;
  max-width: 420px; margin: 14px auto 0; line-height: 1.45;
}
.quiz-result__cta { display: flex; flex-direction: column; gap: 12px; align-items: center; margin-top: 26px; }
.quiz-result__cta .btn { min-width: 240px; justify-content: center; }
.quiz-restart {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-sans); font-weight: 700; font-size: 14px;
  color: var(--text-muted); text-decoration: underline; text-underline-offset: 3px;
}
.quiz-restart:hover { color: var(--brand-primary); }

.quiz-saving { font-size: 13px; color: var(--text-muted); font-weight: 600; }
