/* === Eterna Femme — Quiz Page === */
/* Dark copper/charcoal treatment matching /klow science aesthetic. */
/* One-screen quiz with six questions, progress bar, and results page. */

:root {
  --q-bg: #140F0A;
  --q-surface: #1E1814;
  --q-surface-alt: #1A1410;
  --q-copper: #B87333;
  --q-copper-light: #C9A96E;
  --q-copper-muted: rgba(184, 115, 51, 0.12);
  --q-text: #FAF7F4;
  --q-text-secondary: rgba(250, 247, 244, 0.60);
  --q-text-tertiary: rgba(250, 247, 244, 0.38);
  --q-border: rgba(184, 115, 51, 0.18);
  --q-border-hover: rgba(184, 115, 51, 0.38);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--q-bg);
  color: var(--q-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Nav (override main.css) ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(20, 15, 10, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184, 115, 51, 0.15);
  padding: 0 clamp(20px, 5vw, 60px);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  color: #FAF7F4;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(250, 247, 244, 0.65);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.nav-links a:hover { color: #D4A574; }

.nav-cta {
  background: var(--q-copper) !important;
  color: #fff !important;
  padding: 9px 18px;
  border-radius: 4px;
  font-weight: 600 !important;
  font-size: 0.80rem !important;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.nav-cta:hover { background: #8B5A2B !important; }

/* ─── Hero ─── */
.quiz-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 80px) var(--section-padding, clamp(60px, 8vw, 100px));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.quiz-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 60%,
    rgba(184, 115, 51, 0.08) 0%,
    rgba(20, 15, 10, 0.0) 60%
  );
  pointer-events: none;
}

.quiz-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.quiz-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  color: #C9A96E;
  margin-bottom: 1.4rem;
}

.quiz-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 400;
  line-height: 1.10;
  color: #FAF7F4;
  margin-bottom: 1.4rem;
  letter-spacing: -0.01em;
}

.quiz-headline em {
  font-style: italic;
  color: #C9A96E;
}

.quiz-subhead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(250, 247, 244, 0.62);
  max-width: 500px;
  margin: 0 auto 2.4rem;
}

/* ─── Quiz Container ─── */
.quiz-container {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px) 80px;
}

/* Progress bar */
.quiz-progress-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}

.quiz-progress-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(184, 115, 51, 0.55);
  white-space: nowrap;
  flex-shrink: 0;
}

.quiz-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(184, 115, 51, 0.12);
  border-radius: 2px;
  overflow: hidden;
}

.quiz-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #B87333, #C9A96E);
  border-radius: 2px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Question screen */
.quiz-question {
  display: none;
}

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

.quiz-step-label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #B87333;
  margin-bottom: 0.8rem;
}

.quiz-question-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 400;
  color: #FAF7F4;
  line-height: 1.25;
  margin-bottom: 2rem;
}

/* Answer options */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: rgba(30, 24, 20, 0.80);
  border: 1.5px solid var(--q-border);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  position: relative;
}

.quiz-option:hover {
  border-color: var(--q-border-hover);
  background: rgba(30, 24, 20, 0.95);
  box-shadow: 0 4px 16px rgba(184, 115, 51, 0.08);
}

.quiz-option.selected {
  border-color: #B87333;
  background: rgba(184, 115, 51, 0.10);
  box-shadow: 0 0 0 1px rgba(184, 115, 51, 0.25);
}

.quiz-option-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(184, 115, 51, 0.40);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.quiz-option.selected .quiz-option-radio {
  border-color: #B87333;
  background: #B87333;
}

.quiz-option.selected .quiz-option-radio::after {
  content: '';
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
}

.quiz-option-text {
  font-size: 0.95rem;
  color: rgba(250, 247, 244, 0.82);
  line-height: 1.4;
  transition: color 0.2s;
}

.quiz-option.selected .quiz-option-text {
  color: #FAF7F4;
  font-weight: 500;
}

/* Hidden radio input for accessibility + form submission */
.quiz-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Navigation buttons */
.quiz-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  gap: 1rem;
}

.quiz-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: background 0.2s, opacity 0.2s;
}

.quiz-nav-btn--back {
  background: transparent;
  border: 1.5px solid rgba(184, 115, 51, 0.25);
  color: rgba(250, 247, 244, 0.60);
}

.quiz-nav-btn--back:hover {
  border-color: rgba(184, 115, 51, 0.50);
  color: rgba(250, 247, 244, 0.80);
}

.quiz-nav-btn--next {
  background: #B87333;
  color: #fff;
  padding: 14px 28px;
}

.quiz-nav-btn--next:hover { background: #8B5A2B; }

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

.quiz-nav-btn--next.hidden { display: none; }

/* ─── Results Page ─── */
.quiz-results {
  display: none;
}

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

.quiz-results-header {
  text-align: center;
  margin-bottom: 3rem;
}

.quiz-results-eyebrow {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #B87333;
  margin-bottom: 0.8rem;
}

.quiz-results-headline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: #FAF7F4;
  line-height: 1.15;
  margin-bottom: 0.6rem;
}

.quiz-results-headline em {
  font-style: italic;
  color: #C9A96E;
}

/* Recommendation card */
.quiz-result-card {
  background: rgba(30, 24, 20, 0.90);
  border: 1.5px solid rgba(184, 115, 51, 0.30);
  border-radius: 10px;
  padding: 40px 36px;
  margin-bottom: 2rem;
}

.quiz-result-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.6rem;
  flex-wrap: wrap;
  gap: 12px;
}

.quiz-result-peptide-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #B87333;
  background: rgba(184, 115, 51, 0.10);
  border: 1px solid rgba(184, 115, 51, 0.20);
  padding: 6px 14px;
  border-radius: 20px;
}

.quiz-result-price {
  font-size: 0.80rem;
  font-weight: 600;
  color: rgba(250, 247, 244, 0.50);
}

.quiz-result-card h3 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: #FAF7F4;
  line-height: 1.1;
  margin-bottom: 0.6rem;
}

.quiz-result-peptide {
  font-size: 0.80rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(184, 115, 51, 0.70);
  margin-bottom: 1.6rem;
}

.quiz-result-rationale {
  font-size: 0.92rem;
  line-height: 1.80;
  color: rgba(250, 247, 244, 0.68);
  margin-bottom: 2rem;
}

.quiz-result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz-result-cta-primary {
  display: block;
  text-align: center;
  padding: 16px 28px;
  background: #B87333;
  color: #fff;
  font-weight: 600;
  font-size: 0.90rem;
  letter-spacing: 0.04em;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s;
}

.quiz-result-cta-primary:hover { background: #8B5A2B; color: #fff; }

.quiz-result-cta-secondary {
  display: block;
  text-align: center;
  padding: 13px 28px;
  background: transparent;
  color: rgba(250, 247, 244, 0.60);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  border: 1.5px solid rgba(184, 115, 51, 0.25);
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.2s;
}

.quiz-result-cta-secondary:hover {
  border-color: rgba(184, 115, 51, 0.50);
  color: rgba(250, 247, 244, 0.80);
}

/* Physician note */
.quiz-result-physician-note {
  margin-top: 1.4rem;
  padding: 16px 20px;
  background: rgba(184, 115, 51, 0.05);
  border: 1px solid rgba(184, 115, 51, 0.12);
  border-radius: 4px;
  border-left: 3px solid #B87333;
}

.quiz-result-physician-note p {
  font-size: 0.80rem;
  line-height: 1.65;
  color: rgba(250, 247, 244, 0.52);
  font-style: italic;
}

/* Restart link */
.quiz-restart {
  text-align: center;
  margin-top: 2rem;
}

.quiz-restart a {
  font-size: 0.80rem;
  color: rgba(250, 247, 244, 0.40);
  text-decoration: none;
  transition: color 0.2s;
}

.quiz-restart a:hover { color: rgba(250, 247, 244, 0.65); }

/* ─── Loading state ─── */
.quiz-loading {
  display: none;
  text-align: center;
  padding: 4rem 0;
}

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

.quiz-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(184, 115, 51, 0.15);
  border-top-color: #B87333;
  border-radius: 50%;
  animation: qspin 0.8s linear infinite;
  margin: 0 auto 1.2rem;
}

@keyframes qspin {
  to { transform: rotate(360deg); }
}

.quiz-loading p {
  font-size: 0.85rem;
  color: rgba(250, 247, 244, 0.45);
  font-style: italic;
}

/* ─── Footer ─── */
.quiz-footer {
  text-align: center;
  padding: 2rem clamp(20px, 5vw, 48px);
  border-top: 1px solid rgba(184, 115, 51, 0.08);
  margin-top: 3rem;
}

.quiz-footer p {
  font-size: 0.75rem;
  color: rgba(250, 247, 244, 0.28);
}

.quiz-footer a {
  color: rgba(184, 115, 51, 0.50);
  text-decoration: none;
}

.quiz-footer a:hover { color: rgba(184, 115, 51, 0.80); }

/* === Trusted-vendor strip (quiz footer) === */
.footer-vendor {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem 0.9rem;
  padding: 14px clamp(20px, 5vw, 48px);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-top: 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
}
.footer-vendor-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.66rem;
  color: rgba(255,255,255,0.45);
}
.footer-vendor-link {
  color: #B8DCD8;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(184,220,216,0.35);
  padding-bottom: 1px;
}
.footer-vendor-link:hover {
  color: #D4ECE8;
  border-bottom-color: rgba(212,236,232,0.7);
}
.footer-vendor-note {
  color: rgba(255,255,255,0.4);
  font-size: 0.72rem;
  font-style: normal;
}
@media (max-width: 700px) {
  .footer-vendor { flex-direction: column; align-items: flex-start; gap: 0.3rem; }
}

/* ─── Responsive ─── */
@media (max-width: 600px) {
  .quiz-result-card { padding: 28px 20px; }
  .quiz-nav-btn--next { padding: 13px 20px; }
}