/* Quiz · Is Boli right for me? */

.quiz-hero {
  padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3.5rem, 7vw, 6rem);
  background: linear-gradient(180deg, #f9f5ec 0%, #f3eedc 100%);
}

.quiz-hero-grid { max-width: 800px; margin: 0 auto; text-align: center; }
.quiz-hero .eyebrow { display: inline-flex; }
.quiz-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5.4vw, 3.8rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 14px 0 18px;
  color: var(--ink);
}
.quiz-hero h1 em { font-style: italic; color: var(--brand-green); font-weight: 400; }
.quiz-hero-lede {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-soft, #3a4a42);
  max-width: 62ch;
  margin: 0 auto 2.2rem;
}
.quiz-hero-trust {
  list-style: none;
  padding: 0;
  margin: 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.6rem;
  justify-content: center;
  font-size: 0.92rem;
  color: var(--ink-soft, #3a4a42);
}
.quiz-hero-trust li { position: relative; padding-left: 1.3rem; }
.quiz-hero-trust li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #d9c089; font-weight: 700;
}

.quiz-shell {
  padding: 2.5rem 0 4rem;
  background: #fbf9f3;
}

.quiz-form {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: 0 14px 40px rgba(20, 36, 28, 0.08);
  border: 1px solid rgba(31, 58, 46, 0.06);
  max-width: 760px;
  margin: 0 auto;
}

.quiz-progress {
  font-family: var(--font-body);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 600;
  margin: 0 0 1.2rem;
}

.quiz-step {
  border: 0; padding: 0; margin: 0;
  display: none;
}
.quiz-step.is-active { display: block; }

.quiz-step legend {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  letter-spacing: var(--tr-snug);
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
  width: 100%;
}
.quiz-step legend em { font-style: italic; color: var(--brand-green); font-weight: 400; }

.quiz-help {
  font-size: 0.88rem;
  color: var(--ink-soft, #3a4a42);
  font-style: italic;
  margin: -0.4rem 0 1rem;
}

.quiz-options {
  display: grid;
  gap: 0.5rem;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border: 1.5px solid rgba(31, 58, 46, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 120ms ease;
  background: #fdfbf5;
}

.quiz-option:hover {
  border-color: rgba(31, 58, 46, 0.32);
  background: #fbf6e8;
}

.quiz-option input {
  appearance: none;
  -webkit-appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1.5px solid rgba(31, 58, 46, 0.32);
  border-radius: 50%;
  margin-top: 0.18em;
  position: relative;
  cursor: pointer;
  background: #ffffff;
}

.quiz-option input:checked {
  border-color: #1f3a2e;
  background: radial-gradient(circle at center, #1f3a2e 0 6px, #ffffff 7px);
}

.quiz-option:has(input:checked) {
  border-color: #1f3a2e;
  background: rgba(217, 192, 137, 0.15);
}

.quiz-option span {
  font-size: 0.97rem;
  line-height: 1.45;
  color: #19251f;
}

.quiz-option strong { font-weight: 600; }

.quiz-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.quiz-controls .btn-soft { background: rgba(31, 58, 46, 0.06); color: #1f3a2e; border: 0; }
.quiz-controls .btn-soft:hover { background: rgba(31, 58, 46, 0.12); }

.quiz-result {
  background: linear-gradient(180deg, #1f3a2e 0%, #14241c 100%);
  color: #f5f0e1;
  padding: clamp(2.4rem, 5vw, 4rem);
  border-radius: 20px;
  margin: 2.4rem auto 0;
  max-width: 820px;
  box-shadow: 0 28px 70px rgba(20, 36, 28, 0.22);
  border: 1px solid rgba(217, 192, 137, 0.14);
}

/* ─── Verdict badge ─── */
.quiz-verdict {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 1.1rem 0.6rem 0.7rem;
  border-radius: 999px;
  font-family: 'Afacad', 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.25;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 1.4rem;
  margin: 0 0 1.6rem;
  border: 1.5px solid transparent;
  max-width: 100%;
}
.quiz-verdict-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.quiz-verdict-icon svg { width: 18px; height: 18px; }
.quiz-verdict-text { padding-right: 0.2rem; }

.quiz-verdict[data-tone="yes"] {
  background: rgba(217, 192, 137, 0.18);
  border-color: rgba(217, 192, 137, 0.55);
  color: #f5f0e1;
}
.quiz-verdict[data-tone="yes"] .quiz-verdict-icon {
  background: #d9c089;
  color: #19251f;
}

.quiz-verdict[data-tone="partial"] {
  background: rgba(217, 192, 137, 0.1);
  border-color: rgba(217, 192, 137, 0.32);
  color: rgba(245, 240, 225, 0.92);
}
.quiz-verdict[data-tone="partial"] .quiz-verdict-icon {
  background: rgba(217, 192, 137, 0.7);
  color: #19251f;
}

.quiz-verdict[data-tone="no"] {
  background: rgba(245, 240, 225, 0.06);
  border-color: rgba(245, 240, 225, 0.22);
  color: rgba(245, 240, 225, 0.88);
}
.quiz-verdict[data-tone="no"] .quiz-verdict-icon {
  background: rgba(245, 240, 225, 0.16);
  color: #f5f0e1;
}

.quiz-verdict[data-tone="info"] {
  background: rgba(245, 240, 225, 0.08);
  border-color: rgba(245, 240, 225, 0.2);
  color: rgba(245, 240, 225, 0.9);
}
.quiz-verdict[data-tone="info"] .quiz-verdict-icon {
  background: rgba(245, 240, 225, 0.18);
  color: #f5f0e1;
}

.quiz-result-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #d9c089;
  margin: 0 0 1.2rem;
}

.quiz-result-title {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.2vw, 2.8rem);
  font-weight: 500;
  letter-spacing: var(--tr-tight);
  margin: 0 0 1.4rem;
  line-height: 1.1;
  color: #f5f0e1;
}

.quiz-result-title em { color: var(--gold-soft); font-style: italic; font-weight: 400; }

.quiz-result-lede {
  font-size: 1.08rem;
  line-height: 1.7;
  color: rgba(245, 240, 225, 0.92);
  margin: 0 0 1.8rem;
  max-width: 62ch;
}

.quiz-result-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.7rem;
}
.quiz-result-checklist li {
  position: relative;
  padding-left: 1.8rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(245, 240, 225, 0.92);
}
.quiz-result-checklist li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: #d9c089; font-weight: 700; font-size: 1.1rem;
}

.quiz-result-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 1.8rem;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(245, 240, 225, 0.1);
}

.quiz-result-actions .btn-primary {
  background: #d9c089;
  color: #19251f;
  border: 0;
  font-weight: 600;
}
.quiz-result-actions .btn-primary:hover {
  background: #e7d4a4;
  color: #19251f;
}
.quiz-result-actions .btn-primary .arrow { stroke: #19251f; }

.quiz-result-actions .btn-soft {
  background: rgba(245, 240, 225, 0.1);
  color: #f5f0e1;
  border: 1px solid rgba(245, 240, 225, 0.18);
}
.quiz-result-actions .btn-soft:hover {
  background: rgba(245, 240, 225, 0.18);
  border-color: rgba(245, 240, 225, 0.32);
}

.quiz-result-actions .btn-ghost {
  background: transparent;
  color: rgba(245, 240, 225, 0.65);
  border: 0;
  text-decoration: underline;
  text-decoration-color: rgba(217, 192, 137, 0.4);
  text-underline-offset: 4px;
  padding-left: 0.4rem;
  padding-right: 0.4rem;
  margin-left: auto;
}
.quiz-result-actions .btn-ghost:hover {
  color: #f5f0e1;
  text-decoration-color: #d9c089;
}

.quiz-result-disclaimer {
  font-size: 0.86rem;
  font-style: italic;
  line-height: 1.6;
  color: rgba(245, 240, 225, 0.55);
  border-top: 1px solid rgba(245, 240, 225, 0.1);
  padding-top: 1.2rem;
  margin: 0;
}

.quiz-result-disclaimer strong { color: rgba(245, 240, 225, 0.85); font-style: normal; }

@media (max-width: 600px) {
  .quiz-result-actions .btn-ghost { margin-left: 0; }
}

.quiz-explainer {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: #ffffff;
  border-top: 1px solid rgba(31, 58, 46, 0.06);
}

.quiz-explainer-head {
  max-width: 760px;
  margin: 0 auto clamp(2.5rem, 4vw, 3.5rem);
  text-align: center;
}
.quiz-explainer-head .eyebrow { display: inline-flex; }
.quiz-explainer-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 14px 0 0;
}
.quiz-explainer-head h2 em { color: var(--brand-green); font-style: italic; font-weight: 400; }

.quiz-explainer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(1.8rem, 3vw, 2.8rem);
}

.quiz-explainer article {
  background: #fbf9f3;
  border: 1px solid rgba(31, 58, 46, 0.06);
  border-radius: 14px;
  padding: clamp(1.6rem, 2.5vw, 2.2rem);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.quiz-explainer h3 {
  font-family: var(--font-serif, 'Lora', Georgia, serif);
  font-size: 1.25rem;
  margin: 0;
  color: #1f3a2e;
  line-height: 1.3;
}

.quiz-explainer p, .quiz-explainer li {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--ink-soft, #3a4a42);
  margin: 0;
}

.quiz-explainer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}
.quiz-explainer li {
  position: relative;
  padding-left: 1.3rem;
}
.quiz-explainer li::before {
  content: "•";
  position: absolute; left: 0;
  color: #d9c089;
  font-weight: 700;
}
.quiz-explainer a { color: #1f3a2e; text-decoration: underline; text-decoration-color: #d9c089; text-underline-offset: 3px; }
