/* quiz.css : interactive quiz components. Reads brand.css variables. */

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

/* Progress */
.progress {
  height: 6px;
  background: var(--color-track, rgba(0,0,0,0.08));
  border-radius: 999px;
  overflow: hidden;
  margin: 0 0 1.75rem;
}
.progress__bar {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  transition: width 0.25s ease;
}
.progress__label {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin: 0 0 0.5rem;
  letter-spacing: 0.02em;
}

/* Question */
.question h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-bottom: 1.25rem;
}
.options { list-style: none; padding: 0; margin: 0; }
.option {
  display: block;
  border: 2px solid rgba(0,0,0,0.14);
  border-radius: var(--radius-surface);
  padding: 1rem 1.1rem;
  margin: 0 0 0.7rem;
  cursor: pointer;
  transition: border-color 0.12s ease, background 0.12s ease;
  font-size: 1.02rem;
  line-height: 1.45;
  background: var(--color-surface);
}
.option:hover { border-color: var(--color-accent); }
.option:focus-within { box-shadow: var(--focus-ring); }
.option input { position: absolute; opacity: 0; width: 0; height: 0; }
.option.is-selected {
  border-color: var(--color-primary);
  background: var(--color-selected-bg, #f0f2f7);
}

/* Nav */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.5rem;
}
.link-btn {
  background: none;
  border: none;
  color: var(--color-muted);
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.4rem 0.2rem;
  font-family: var(--font-body);
}
.link-btn:disabled { opacity: 0.35; cursor: default; }

/* Result */
.result-type {
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  margin-bottom: 1.25rem;
}
.result-body p { font-size: 1.08rem; line-height: 1.65; }
.result-body .caps {
  font-weight: 900;
  background: var(--color-highlight, transparent);
  padding: 0 0.2em;
  border-radius: 3px;
}

.is-hidden { display: none !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .progress__bar { transition: none; }
  .option { transition: none; }
}
