/* ==========================================================================
   Quiz funnel — centered layout (no sidebar)
   ========================================================================== */

.quiz-page {
  min-height: 100vh;
  background: var(--white);
}

.quiz-wrapper {
  min-height: calc(100vh - 64px);
}

/* Progress bar */
.quiz-progress {
  padding: 1.5rem 0 0;
  background: var(--white);
}

.quiz-page.is-welcome .quiz-progress {
  visibility: hidden;
  height: 0;
  padding: 0;
  overflow: hidden;
}

.quiz-progress__inner {
  max-width: 640px;
}

.quiz-progress .progress-track {
  height: 6px;
  background: #e8edf3;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

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

.quiz-progress .progress-label {
  display: block;
  text-align: center;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-gray);
}

.quiz-main {
  padding: 1.25rem 1.25rem 2.5rem;
}

.quiz-step {
  display: none;
  max-width: 640px;
  margin: 0 auto;
}

.quiz-step.active {
  display: block;
}

/* Welcome */
.quiz-welcome {
  text-align: center;
  padding: 2rem 0 1rem;
  max-width: 560px;
  margin: 0 auto;
}

.quiz-welcome h1 {
  margin-bottom: 0.75rem;
}

.quiz-welcome__stats {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin: 1.25rem 0 1.5rem;
}

.quiz-welcome__bullets {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
}

.quiz-welcome__bullets li {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-mid);
}

.quiz-welcome__bullets li::before {
  content: '✓ ';
  color: var(--blue);
  font-weight: 700;
}

/* Question steps */
.quiz-step[data-step]:not([data-step="0"]) {
  text-align: center;
  padding-top: 0.5rem;
}

.quiz-step[data-step]:not([data-step="0"]) h2 {
  font-size: 1.375rem;
  line-height: 1.35;
  margin-bottom: 0.5rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.q-number {
  display: none;
}

.q-hint {
  color: var(--text-light);
  font-size: 0.875rem;
  margin-bottom: 1.75rem;
}

/* Options grid — 2 columns like reference */
.options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
  text-align: center;
}

.option {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 1rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.option:hover {
  border-color: #b8c9e8;
}

.option.selected {
  border-color: var(--blue);
  background: rgba(54, 117, 248, 0.08);
}

.option-title {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.9375rem;
  line-height: 1.35;
}

.option.selected .option-title {
  color: var(--blue);
}

.option-sub {
  font-size: 0.8125rem;
  color: var(--text-gray);
  margin-top: 0.2rem;
}

.option.selected .option-sub {
  color: rgba(54, 117, 248, 0.75);
}

.option-check {
  display: none;
}

/* Navigation */
.quiz-nav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.btn-back,
.btn-next {
  min-height: var(--tap-min);
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.btn-back {
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border);
}

.btn-next {
  background: var(--gradient-brand);
  color: var(--white);
  margin-left: auto;
  font-family: var(--font-heading);
}

.btn-next:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-start {
  min-height: var(--tap-min);
  padding: 0.875rem 1.75rem;
  background: var(--gradient-brand);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn-start:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 540px) {
  .options-grid,
  .options-grid--two,
  .options-grid--three {
    grid-template-columns: repeat(2, 1fr);
  }

  .quiz-step[data-step]:not([data-step="0"]) h2 {
    font-size: 1.625rem;
  }

  .quiz-main {
    padding: 1.5rem 1.25rem 3rem;
  }
}

@media (min-width: 768px) {
  .quiz-progress {
    padding: 2rem 0 0;
  }

  .quiz-step[data-step]:not([data-step="0"]) h2 {
    font-size: 1.75rem;
  }
}
