/* Paycheck Audit Quiz */

#quiz-app {
  height: 100%;
  height: 100dvh;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.quiz-body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.quiz-screen {
  display: none;
  flex-direction: column;
  flex: 1;
}

.quiz-screen.active {
  display: flex;
}

/* ── Intro ── */
.quiz-intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
  gap: 0.75rem;
}

.quiz-title {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}

.quiz-subtitle {
  font-size: 1.1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.quiz-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 420px;
}

.quiz-desc-small {
  font-size: 0.82rem;
  margin-top: 0.5rem;
}

.quiz-start-btn {
  margin-top: 1rem;
  max-width: 280px;
}

/* ── Progress ── */
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem 0;
}

.quiz-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 0.3s ease;
  width: 0;
}

.quiz-progress-text {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
}

/* ── Question ── */
.question-text {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.45;
  padding: 1.5rem 1.5rem 1rem;
}

.answer-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0 1.5rem 2rem;
}

.answer-btn {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}

.answer-btn:hover {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.05);
}

.answer-btn.selected {
  border-color: var(--accent);
  background: rgba(233, 69, 96, 0.12);
}

.answer-btn:disabled {
  cursor: default;
}
.answer-btn:disabled:not(.selected) {
  opacity: 0.5;
}

.answer-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  border: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.answer-btn.selected .answer-letter {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.answer-text {
  padding-top: 0.2rem;
}

/* ── Result ── */
.result-content {
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.result-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 0.4em 1em;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(233, 69, 96, 0.15);
  color: var(--accent);
  border: 1px solid rgba(233, 69, 96, 0.3);
}

.result-identity {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.3;
}

.result-section h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.result-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}

.result-section p + p {
  margin-top: 0.75rem;
}

#result-sections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ── CTA ── */
.result-cta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.result-cta h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.result-cta p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.result-cta strong {
  color: var(--text);
}

.result-cta ul {
  padding-left: 1.25em;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.result-cta li {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  margin-top: 0.5rem;
}

.btn-retake {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  align-self: center;
}

.btn-retake:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

@media (max-width: 640px) {
  #quiz-app {
    max-width: 100%;
  }

  .quiz-title {
    font-size: 1.4rem;
  }

  .result-identity {
    font-size: 1.15rem;
  }
}
