.quiz-shell { padding: 48px 0; }
.quiz-card { max-width: 760px; margin: 0 auto; padding: 28px; }
.quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.progress-text { font-weight: 800; color: var(--muted); font-size: 14px; }
.progress { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; margin-bottom: 26px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--accent), var(--primary)); width: 0%; transition: width .25s ease; }
.question-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 10px; }
.question-help { color: var(--muted); margin-bottom: 20px; }
.options { display: grid; gap: 12px; }
.option-btn { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 16px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer; color: var(--text); font-weight: 800; transition: border .16s ease, background .16s ease, transform .16s ease; }
.option-btn:hover { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.option-key { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: #eff6ff; color: var(--primary); font-weight: 900; flex: 0 0 32px; }
.quiz-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 24px; }
.quiz-back { background: transparent; color: var(--muted); border: 0; cursor: pointer; font-weight: 800; }
.quiz-back[disabled] { opacity: .35; cursor: not-allowed; }
.loading-box { text-align: center; padding: 34px 14px; }
.spinner { width: 54px; height: 54px; border: 5px solid #dbeafe; border-top-color: var(--primary); border-radius: 50%; margin: 0 auto 18px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.result-card { display: none; max-width: 820px; margin: 0 auto; padding: 32px; }
.result-badge { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--accent-soft); color: #166534; font-weight: 900; margin-bottom: 14px; }
.result-grid { display: grid; grid-template-columns: 1fr .85fr; gap: 18px; align-items: start; }
.result-panel { background: #f8fafc; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.email-box { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; }
.email-box input { flex: 1; min-width: 210px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); }
.faq { display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.faq summary { cursor: pointer; font-weight: 900; color: var(--dark); }
.faq p { margin-bottom: 0; color: var(--muted); }
@media (max-width: 760px) {
  .quiz-card, .result-card { padding: 20px; }
  .result-grid { grid-template-columns: 1fr; }
  .quiz-actions { align-items: stretch; flex-direction: column-reverse; }
  .quiz-actions .btn { width: 100%; }
}
