/* =============================================
   BULL&ACOSTA — Quiz Stylesheet
   Extends theme.css — does not redefine variables
   ============================================= */

/* ---- Quiz Header ---- */
.quiz-header {
  padding: 8rem 3rem 3rem;
  border-bottom: 1px solid var(--border-strong);
  text-align: center;
}

.quiz-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0.75rem 0 1rem;
}

.quiz-subtitle {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ---- Quiz Body ---- */
.quiz-body {
  max-width: 680px;
  margin: 0 auto;
  padding: 3rem 2rem 6rem;
}

/* ---- Progress ---- */
.quiz-progress {
  margin-bottom: 3rem;
}

.quiz-progress-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.quiz-progress-track {
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-bar {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.4s ease;
}

/* ---- Steps ---- */
.quiz-step {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-step--active {
  opacity: 1;
  transform: none;
}

/* ---- Question Text ---- */
.quiz-question-text {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 2rem;
  line-height: 1.2;
}

/* ---- Options Grid ---- */
.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.quiz-option {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.quiz-option:hover {
  border-color: var(--accent);
}

.quiz-option--selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}

.quiz-option-label {
  font-size: 0.95rem;
  color: var(--fg);
  line-height: 1.3;
}

/* ---- Nav / Buttons ---- */
.quiz-nav {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
}

.quiz-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border: none;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: opacity 0.2s;
}

.quiz-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.quiz-btn:not(:disabled):hover {
  opacity: 0.85;
}

/* ---- Results Header ---- */
.quiz-results-header {
  padding: 8rem 3rem 3rem;
  border-bottom: 1px solid var(--border-strong);
  text-align: center;
}

.quiz-results-header h1 {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--fg);
  margin: 0.75rem 0 1rem;
}

.quiz-results-sub {
  color: var(--fg-muted);
  font-size: 1.05rem;
}

/* ---- Results Grid ---- */
.quiz-results-grid {
  padding: 3rem 0;
}

/* Quiz result cards: not links, use div — override anchor-style cursor */
.quiz-result-card {
  cursor: default;
  display: flex;
  flex-direction: column;
}

.quiz-result-card .product-price-row {
  margin-bottom: 0.75rem;
}

/* ---- Fit Reason ---- */
.quiz-fit-reason {
  font-style: italic;
  color: var(--accent-warm);
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

/* ---- Add to Cart button inside result card ---- */
.quiz-add-btn {
  width: 100%;
  margin-top: auto;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
}

/* ---- Results Actions ---- */
.quiz-results-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 3rem 6rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .quiz-header,
  .quiz-results-header {
    padding: 6rem 1.5rem 2rem;
  }

  .quiz-title,
  .quiz-results-header h1 {
    font-size: 2rem;
  }

  .quiz-body {
    padding: 2rem 1.25rem 4rem;
  }

  .quiz-options {
    grid-template-columns: 1fr;
  }

  .quiz-results-actions {
    padding: 0 1.5rem 4rem;
    flex-direction: column;
    align-items: stretch;
  }

  .quiz-results-actions .btn-secondary,
  .quiz-results-actions .btn-primary {
    text-align: center;
  }
}
