/* Survey-Style Quiz Styles */
/* Gut Healing Academy Quiz 3.0 - Citrus Energy Theme */

:root {
  /* Background Colors */
  --bg-warm-white: #FFFDF7;
  --bg-cream: #FBF9F3;
  --bg-sage-subtle: #F7FAF7;
  --card-background: #FFFFFF;

  /* Text Colors */
  --text-forest: #1B3329;
  --text-olive: #3D5245;
  --text-muted: #6B7D6E;
  --text-light: #8A9A8E;

  /* Primary - Citrus Accent */
  --citrus: #F9C74F;
  --citrus-bright: #FFDA6A;
  --citrus-light: #FFF3CD;
  --citrus-pale: #FFFBEB;

  /* Secondary - Greens */
  --forest: #1B3329;
  --forest-light: #2A4A3A;
  --leaf: #4A7C59;
  --spring: #7FB069;
  --sage: #A8C5A8;

  /* Utility Colors */
  --success: #52B788;
  --success-light: #E8F5EE;
  --divider: #E8EBE8;
  --divider-dark: #D4DAD5;
  --warning-yellow: #F59E0B;
  --error: #DC6B4D;

  /* Legacy aliases for backwards compatibility */
  --primary-green: var(--forest);
  --primary-green-hover: var(--forest-light);
  --background-cream: var(--bg-warm-white);
  --text-dark: var(--text-forest);
  --accent-gold: var(--citrus);
  --border-light: var(--divider);
  --bg-primary: var(--bg-warm-white);
  --bg-card: var(--card-background);
  --text-primary: var(--text-forest);
  --text-secondary: var(--text-muted);
  --accent: var(--forest);
  --accent-light: var(--citrus-pale);
  --border: var(--divider);
  --border-hover: var(--citrus);
}

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

body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-warm-white);
  color: var(--text-olive);
  line-height: 1.6;
  min-height: 100vh;
}

/* Main Container */
.quiz-container {
  max-width: 540px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ==================== */
/* WELCOME SCREEN */
/* ==================== */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 40px);
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.4s ease;
}

.welcome-content {
  max-width: 480px;
}

.welcome-logo {
  width: 180px;
  height: auto;
  margin-bottom: 32px;
}

.welcome-screen h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 16px;
  line-height: 1.12;
}

.welcome-description {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.6;
}

.welcome-points {
  text-align: left;
  background: var(--card-background);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.welcome-points p {
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.welcome-points ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.welcome-points li {
  padding: 8px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-muted);
}

.welcome-points li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--forest);
  background: var(--citrus);
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 600;
  font-size: 12px;
}

.btn-large {
  padding: 18px 48px;
  font-size: 17px;
  width: 100%;
  max-width: 320px;
}

.privacy-note {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 24px;
}

.lock-icon {
  margin-right: 6px;
}

/* ==================== */
/* SECTION INTRO SCREEN */
/* ==================== */
.section-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 0;
  animation: fadeIn 0.3s ease;
}

.section-intro-content {
  max-width: 480px;
}

.section-intro h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin: 24px 0 16px;
  color: var(--text-forest);
  line-height: 1.3;
}

.section-intro p {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.section-intro .reassurance {
  font-size: 14px;
  color: var(--primary-green);
  margin-bottom: 32px;
  font-weight: 500;
}

/* ==================== */
/* QUIZ UI WRAPPER */
/* ==================== */
.quiz-ui {
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Header with back button and section label */
.quiz-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 8px 0;
  margin-bottom: 4px;
}

.back-button {
  position: absolute;
  left: 0;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.back-button:hover {
  color: var(--text-dark);
}

.back-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.section-label {
  display: inline-block;
  background: var(--citrus);
  color: var(--forest);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ==================== */
/* PROGRESS BAR - Gradual Fill */
/* ==================== */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
  gap: 0;
}

.progress-segment {
  height: 4px;
  width: 36px; /* Adjusted for 7 phases in quiz-4 update */
  background: var(--border-light);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.segment-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--citrus);
  border-radius: 4px;
  transition: width 0.4s ease;
}

.progress-segment.completed .segment-fill {
  width: 100%;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--divider);
  margin: 0 2px;
  transition: background 0.3s ease, transform 0.3s ease;
  flex-shrink: 0;
}

.progress-dot.active {
  background: var(--citrus);
}

/* Pulse animation for current section's next dot */
.progress-segment.current + .progress-dot {
  animation: dotPulse 1.5s ease-in-out infinite;
}

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ==================== */
/* QUESTION CONTAINER */
/* ==================== */
.question-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.question-text {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  margin: 16px 0 24px 0;
  color: var(--text-forest);
  letter-spacing: -0.01em;
}

.question-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: -16px 0 24px 0;
  line-height: 1.5;
}

/* Info Screen */
.info-screen {
  text-align: center;
}

.info-body {
  font-size: 1rem;
  color: var(--text-olive);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* Comparison Cards */
.comparison-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.comparison-card {
  padding: 20px;
  border-radius: 16px;
  text-align: left;
}

.comparison-card.problem {
  background: rgba(220, 107, 77, 0.1);
  border: 1px solid rgba(220, 107, 77, 0.3);
}

.comparison-card.solution {
  background: var(--success-light);
  border: 1px solid var(--success);
}

.comparison-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 8px;
  color: var(--text-forest);
}

.comparison-text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-olive);
}

/* Stat Box */
.stat-box {
  background: var(--citrus-pale);
  border: 2px solid var(--citrus);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--forest);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--text-olive);
  line-height: 1.5;
}

/* Options Container */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* Option Buttons */
.option-button {
  width: 100%;
  padding: 20px 24px;
  background: var(--card-background);
  border: 2px solid var(--divider);
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-olive);
  min-height: 56px;
}

.option-button:hover {
  border-color: var(--sage);
  background: var(--bg-sage-subtle);
}

.option-button.selected {
  border-color: var(--citrus);
  background: var(--citrus-pale);
  color: var(--text-forest);
}

/* Multi-select styling */
.option-button.multi-select {
  position: relative;
}

.option-button.multi-select.selected::before {
  content: '\2713  ';
  font-weight: bold;
}

/* Continue Button */
.continue-button,
.btn-primary {
  width: 100%;
  padding: 18px 36px;
  margin-top: 24px;
  background: var(--forest);
  border: none;
  border-radius: 100px;
  font-size: 1.05rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  min-height: 56px;
  box-shadow: 0 4px 20px rgba(27, 51, 41, 0.2);
}

.continue-button:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  background: var(--citrus);
  color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 199, 79, 0.4);
}

.continue-button:disabled {
  background: var(--divider);
  cursor: not-allowed;
  color: var(--text-muted);
  box-shadow: none;
}

.btn-secondary {
  width: 100%;
  padding: 16px 32px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
  min-height: 56px;
}

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

/* Text Input */
.text-input-container {
  margin-top: 16px;
}

.text-input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

.text-input:focus {
  outline: none;
  border-color: var(--primary-green);
}

.text-input::placeholder {
  color: var(--text-muted);
}

/* Input Container */
.input-container {
  margin-top: 8px;
  margin-bottom: 16px;
}

.email-input {
  width: 100%;
  padding: 18px 24px;
  border: 2px solid var(--border-light);
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.2s ease;
}

.email-input:focus {
  outline: none;
  border-color: var(--forest);
}

.email-input::placeholder {
  color: var(--text-muted);
}

.textarea-input {
  width: 100%;
  padding: 18px 20px;
  border: 2px solid var(--border-light);
  border-radius: 16px;
  font-size: 16px;
  font-family: inherit;
  resize: none;
  min-height: 120px;
  transition: border-color 0.2s ease;
}

.textarea-input:focus {
  outline: none;
  border-color: var(--forest);
}

.textarea-input::placeholder {
  color: var(--text-muted);
}

.input-error {
  color: var(--error);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

.input-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
  line-height: 1.5;
}

/* Skip button */
.btn-skip {
  width: 100%;
  padding: 14px 24px;
  margin-top: 12px;
  background: transparent;
  border: 1px solid var(--divider);
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--text-muted);
}

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

.char-count {
  text-align: right;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Skip button styling */
.skip-button {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
}

.skip-button:hover {
  background: var(--accent-light);
  border-color: var(--primary-green);
  color: var(--text-dark);
}

/* ==================== */
/* EMAIL & NAME CAPTURE */
/* ==================== */
.capture-container {
  text-align: center;
  animation: fadeIn 0.3s ease;
}

.capture-label {
  display: inline-block;
  background: var(--citrus);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.capture-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-forest);
  line-height: 1.3;
}

.capture-input {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid var(--border-light);
  border-radius: 50px;
  font-size: 16px;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.2s ease;
}

.capture-input:focus {
  outline: none;
  border-color: var(--primary-green);
}

.capture-input::placeholder {
  color: var(--text-muted);
}

/* Name Input - Simple single-line */
.name-input {
  width: 100%;
  padding: 16px 20px;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card-background);
  transition: border-color 0.2s ease;
}

.name-input:focus {
  outline: none;
  border-color: var(--forest);
}

.name-input::placeholder {
  color: var(--text-muted);
}

.privacy-text {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

/* ==================== */
/* PRACTITIONER INTRO */
/* ==================== */
.practitioner-intro {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.practitioner-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid var(--citrus);
  object-fit: cover;
  margin-bottom: 24px;
}

.practitioner-intro h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 20px;
  line-height: 1.3;
}

.practitioner-intro p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.practitioner-credentials {
  display: inline-block;
  font-size: 0.85rem;
  color: var(--forest);
  background: var(--citrus-light);
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 32px;
}

/* ==================== */
/* WARNING SCREEN */
/* ==================== */
.warning-screen {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.warning-icon {
  font-size: 48px;
  color: var(--warning-yellow);
  margin-bottom: 24px;
}

.warning-screen h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.warning-screen p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.warning-practitioner-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 16px;
  text-align: left;
  align-items: flex-start;
}

.warning-practitioner-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  object-fit: cover;
  flex-shrink: 0;
}

.warning-practitioner-card p {
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
  font-style: italic;
}

.warning-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

/* ==================== */
/* PROTOCOL PREVIEW */
/* ==================== */
.protocol-preview {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.protocol-preview .check-icon {
  width: 48px;
  height: 48px;
  background: var(--citrus);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--forest);
  font-size: 24px;
}

.protocol-preview h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.4;
}

.protocol-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 24px;
  border: 2px solid var(--citrus);
  box-shadow: 0 8px 32px rgba(249, 199, 79, 0.15);
  margin-bottom: 24px;
}

.protocol-card .protocol-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 8px;
}

.protocol-card .protocol-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.protocol-card .gut-brain-badge {
  display: inline-block;
  background: var(--citrus-light);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.protocol-preview .explanation {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* ==================== */
/* VALIDATION SCREEN */
/* ==================== */
.validation-screen {
  text-align: left;
  padding: 32px 20px;
  animation: fadeIn 0.3s ease;
}

.validation-screen h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 24px;
  text-align: center;
}

.validation-section {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--text-dark);
  line-height: 1.7;
}

.validation-section strong {
  color: var(--text-dark);
  font-weight: 600;
}

.practitioner-mini-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 20px;
  margin: 32px 0 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.practitioner-mini-card img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  object-fit: cover;
  flex-shrink: 0;
}

.practitioner-mini-card .practitioner-info {
  flex: 1;
}

.practitioner-mini-card .practitioner-name {
  font-weight: 600;
  color: var(--text-dark);
  font-size: 15px;
}

.practitioner-mini-card .practitioner-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.practitioner-mini-card .practitioner-quote {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ==================== */
/* INTRO VALIDATION SCREEN (Quiz-3 specific) */
/* ==================== */
.intro-validation-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.intro-validation-screen .validation-icon {
  width: 64px;
  height: 64px;
  background: var(--citrus);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 32px;
  color: var(--forest);
  animation: scaleIn 0.5s ease;
}

.intro-validation-screen h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 16px;
  line-height: 1.3;
}

.intro-validation-screen .validation-subtext {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 400px;
  margin-bottom: 32px;
}

@media (max-width: 600px) {
  .intro-validation-screen h2 {
    font-size: 22px;
  }

  .intro-validation-screen .validation-subtext {
    font-size: 15px;
  }
}

/* ==================== */
/* TESTIMONIAL CARD */
/* ==================== */
.testimonial-container {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.testimonial-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.testimonial-context {
  font-size: 16px;
  color: var(--text-dark);
  margin-bottom: 24px;
  line-height: 1.6;
}

.testimonial-card {
  background: var(--card-background);
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.testimonial-card .testimonial-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--citrus-light);
  object-fit: cover;
  margin-bottom: 20px;
}

.testimonial-card .testimonial-quote {
  font-size: 16px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 16px;
}

.testimonial-card .testimonial-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.testimonial-card .star-rating {
  color: var(--accent-gold);
  font-size: 18px;
  letter-spacing: 2px;
}

.testimonial-disclaimer {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 16px;
}

/* Compact testimonial for results page */
.testimonial-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-background);
  border-radius: 12px;
  padding: 16px;
  margin: 24px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.testimonial-compact img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid var(--primary-green);
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-compact .testimonial-text {
  flex: 1;
}

.testimonial-compact .testimonial-quote {
  font-size: 14px;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 4px;
}

.testimonial-compact .star-rating {
  color: var(--accent-gold);
  font-size: 14px;
}

/* ==================== */
/* LOADING / CALCULATING */
/* ==================== */
.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  animation: fadeIn 0.3s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--divider);
  border-top-color: var(--citrus);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 24px;
}

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

.loading-text {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  transition: opacity 0.3s ease;
}

/* ==================== */
/* RESULTS SCREEN */
/* ==================== */
.results-screen {
  text-align: center;
  padding: 32px 20px;
  animation: fadeIn 0.3s ease;
}

.results-screen .check-icon {
  width: 80px;
  height: 80px;
  background: var(--citrus);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--forest);
  font-size: 40px;
  animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.results-screen h1 {
  font-family: 'DM Serif Display', serif;
  font-size: 2rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 24px;
  line-height: 1.12;
}

.results-protocol-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 28px;
  border: 2px solid var(--citrus);
  box-shadow: 0 8px 32px rgba(249, 199, 79, 0.15);
  margin-bottom: 24px;
}

.results-protocol-card .protocol-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 8px;
}

.results-protocol-card .gut-brain-badge {
  display: inline-block;
  background: var(--citrus-light);
  color: var(--forest);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.results-protocol-card .protocol-tagline {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

.personalization-factors {
  text-align: left;
  background: var(--card-background);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.personalization-factors h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.personalization-factors ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.personalization-factors li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.personalization-factors li::before {
  content: '•';
  color: var(--primary-green);
  font-weight: bold;
}

.personalization-factors strong {
  color: var(--text-dark);
}

.whats-included {
  text-align: left;
  margin-bottom: 24px;
}

.whats-included .included-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  font-size: 15px;
  color: var(--text-dark);
}

.whats-included .check-mark {
  color: var(--primary-green);
  font-size: 18px;
  flex-shrink: 0;
}

.results-cta-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 12px;
}

/* ==================== */
/* ERROR STATE */
/* ==================== */
.error-message {
  color: var(--error);
  font-size: 14px;
  margin-top: 8px;
  text-align: center;
}

/* Hidden state */
.hidden {
  display: none !important;
}

/* ==================== */
/* MOBILE RESPONSIVE */
/* ==================== */
@media (max-width: 600px) {
  .quiz-container {
    padding: 16px;
  }

  .welcome-screen {
    padding: 24px 0;
  }

  .welcome-screen h1 {
    font-size: 24px;
  }

  .welcome-description {
    font-size: 15px;
    margin-bottom: 24px;
  }

  .welcome-points {
    padding: 16px 20px;
    margin-bottom: 24px;
  }

  .btn-large {
    padding: 16px 32px;
    font-size: 16px;
  }

  .question-text {
    font-size: 1.15rem;
    margin: 12px 0 16px 0;
    font-weight: 600;
  }

  .option-button {
    padding: 16px 20px;
    font-size: 15px;
  }

  /* Sticky continue button for mobile */
  .section-intro .btn-primary,
  .intro-validation-screen .btn-primary,
  .practitioner-intro .btn-primary,
  .validation-screen .btn-primary,
  .protocol-preview .btn-primary,
  .testimonial-container .btn-primary {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: calc(100% - 32px);
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  /* Add padding to content area to prevent button overlap */
  .section-intro,
  .intro-validation-screen,
  .practitioner-intro,
  .validation-screen,
  .protocol-preview,
  .testimonial-container {
    padding-bottom: 90px;
  }

  .progress-segment {
    width: 32px; /* Adjusted for 6 sections on mobile in quiz-3 */
  }

  /* Prevent iOS zoom on input focus */
  input, textarea {
    font-size: 16px;
  }

  .capture-input {
    padding: 16px 20px;
  }

  .continue-button,
  .btn-primary {
    padding: 16px 20px;
  }

  .text-input {
    min-height: 100px;
  }

  .section-intro h2 {
    font-size: 20px;
  }

  .practitioner-intro h2,
  .validation-screen h2 {
    font-size: 20px;
  }

  .results-screen h1 {
    font-size: 24px;
  }

  .results-protocol-card .protocol-name {
    font-size: 20px;
  }

  .warning-practitioner-card,
  .practitioner-mini-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .warning-practitioner-card p {
    text-align: center;
  }
}

/* Tablet and up */
@media (min-width: 768px) {
  .quiz-container {
    padding: 40px 20px;
  }

  .question-text {
    font-size: 1.5rem;
  }

  .progress-segment {
    width: 44px; /* Adjusted for 7 sections on tablet in quiz-4 */
  }

  .welcome-screen h1 {
    font-size: 32px;
  }
}

/* ==================== */
/* QUIZ-4 SPECIFIC STYLES */
/* ==================== */

/* Adjust progress bar for 6 blocks */
.progress-segment {
  width: 44px; /* Adjusted for 6 sections in quiz-4 */
}

@media (max-width: 600px) {
  .progress-segment {
    width: 32px; /* Adjusted for 6 sections on mobile in quiz-4 */
  }
}

/* ==================== */
/* SLIDER QUESTIONS */
/* ==================== */
.slider-container {
  padding: 24px 0;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.slider-label {
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 120px;
  line-height: 1.4;
}

.slider-label:first-child {
  text-align: left;
}

.slider-label:last-child {
  text-align: right;
}

.slider-track-container {
  position: relative;
  padding: 16px 0;
}

.slider-track {
  width: 100%;
  height: 8px;
  background: var(--divider);
  border-radius: 100px;
  position: relative;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--citrus));
  border-radius: 100px;
  transition: width 0.1s ease;
}

.slider-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
  margin: 0;
  z-index: 10;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: var(--citrus);
  border: 3px solid var(--card-background);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  pointer-events: none;
  transition: transform 0.1s ease;
}

.slider-input:active + .slider-track .slider-thumb {
  transform: translate(-50%, -50%) scale(1.15);
}

.slider-points {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.slider-point {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.slider-point:hover {
  background: var(--bg-sage-subtle);
  color: var(--text-forest);
}

.slider-point.active {
  background: var(--citrus);
  color: var(--forest);
  border-color: var(--citrus);
}

/* ==================== */
/* KNOWLEDGE QUIZ FEEDBACK */
/* ==================== */
.feedback-screen {
  animation: fadeIn 0.3s ease;
}

.feedback-card {
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 24px;
}

.feedback-card.correct {
  background: var(--success-light);
  border: 2px solid var(--success);
}

.feedback-card.incorrect {
  background: var(--citrus-light);
  border: 2px solid var(--citrus);
}

.feedback-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.feedback-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text-forest);
  margin-bottom: 16px;
}

.feedback-text {
  color: var(--text-olive);
  line-height: 1.7;
  font-size: 15px;
}

.feedback-tip {
  background: var(--card-background);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  text-align: left;
}

.feedback-tip-title {
  font-weight: 600;
  color: var(--text-forest);
  font-size: 0.85rem;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.gut-response-list {
  list-style: none;
  font-size: 0.9rem;
}

.gut-response-list li {
  padding: 6px 0;
}

.gut-response-list .green { color: var(--success); }
.gut-response-list .yellow { color: var(--warning-yellow); }
.gut-response-list .red { color: var(--error); }

/* ==================== */
/* GOAL REMINDER */
/* ==================== */
.goal-reminder {
  background: linear-gradient(135deg, var(--citrus-pale), var(--bg-sage-subtle));
  border: 2px solid var(--citrus);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  margin: 24px 0;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(249, 199, 79, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(249, 199, 79, 0);
  }
}

.goal-reminder-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.goal-reminder-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.3rem;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.goal-reminder-text {
  color: var(--text-olive);
  line-height: 1.7;
}

.goal-reminder-text strong {
  color: var(--text-forest);
}

/* ==================== */
/* VALIDATION CARD (inline) */
/* ==================== */
.validation-card {
  background: var(--bg-sage-subtle);
  border: 1px solid var(--sage);
  border-radius: 16px;
  padding: 20px;
  margin-top: 24px;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.validation-card .validation-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--text-forest);
  margin-bottom: 8px;
}

.validation-card .validation-text {
  color: var(--text-olive);
  line-height: 1.7;
  font-size: 15px;
}

.validation-card .validation-text strong {
  color: var(--text-forest);
}

/* ==================== */
/* TIMELINE GRAPHIC */
/* ==================== */
.timeline-graphic {
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
}

.timeline-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 16px;
}

.timeline-segment {
  flex: 1;
  height: 8px;
  border-radius: 100px;
}

.timeline-segment:nth-child(1) {
  background: var(--sage);
}

.timeline-segment:nth-child(2) {
  background: var(--citrus);
}

.timeline-segment:nth-child(3) {
  background: var(--success);
}

.timeline-labels {
  display: flex;
  justify-content: space-between;
}

.timeline-label {
  text-align: center;
  flex: 1;
}

.timeline-label-week {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-label-text {
  font-size: 0.8rem;
  color: var(--text-olive);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==================== */
/* LOADING SCREEN (Quiz-4 specific) */
/* ==================== */
.loading-progress-screen {
  text-align: center;
  padding: 40px 20px;
  animation: fadeIn 0.3s ease;
}

.loading-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.4rem;
  color: var(--text-forest);
  margin-bottom: 32px;
}

.loading-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.loading-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.loading-item-text {
  width: 200px;
  flex-shrink: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.loading-item.active .loading-item-text {
  color: var(--text-forest);
}

.loading-item.completed .loading-item-text {
  color: var(--success);
}

.loading-bar {
  flex: 1;
  height: 6px;
  background: var(--divider);
  border-radius: 100px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--citrus), var(--success));
  border-radius: 100px;
  width: 0%;
  transition: width 0.2s ease;
}

.loading-item-check {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2ECC71;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  flex-shrink: 0;
  transform: scale(0.8);
}

.loading-item.completed .loading-item-check {
  opacity: 1;
  transform: scale(1);
  animation: checkmarkPop 0.3s ease;
}

@keyframes checkmarkPop {
  0% { transform: scale(0.5); }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); }
}

/* Loading Pop-up Question */
.loading-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--card-background);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 32px 24px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
  animation: slideUpPopup 0.3s ease;
  z-index: 200;
}

@keyframes slideUpPopup {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.loading-popup-question {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--text-forest);
  margin-bottom: 20px;
  text-align: center;
}

.loading-popup-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.loading-popup-option {
  padding: 14px 20px;
  background: var(--bg-sage-subtle);
  border: 2px solid var(--divider);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: all 0.2s ease;
  color: var(--text-olive);
}

.loading-popup-option:hover {
  border-color: var(--citrus);
  background: var(--citrus-pale);
}

/* ==================== */
/* RESULTS PAGE (Quiz-4 additions) */
/* ==================== */
.results-greeting {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.results-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  color: var(--text-forest);
  margin-bottom: 24px;
}

.protocol-card-large {
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  color: white;
  border-radius: 20px;
  padding: 28px;
  text-align: center;
  margin-bottom: 24px;
}

.protocol-card-large .protocol-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
  margin-bottom: 8px;
}

.protocol-card-large .protocol-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.protocol-card-large .protocol-overlay {
  display: inline-block;
  background: var(--citrus);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 100px;
  margin-top: 8px;
}

.protocol-card-large .protocol-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 12px;
  line-height: 1.6;
}

/* Analysis Card */
.analysis-card {
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.analysis-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--text-forest);
  margin-bottom: 16px;
}

.analysis-list {
  list-style: none;
}

.analysis-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  color: var(--text-olive);
  font-size: 0.95rem;
  line-height: 1.5;
}

.analysis-item::before {
  content: '•';
  color: var(--citrus);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1.2;
}

/* Practitioner Quote Card */
.practitioner-quote-card {
  display: flex;
  gap: 16px;
  background: var(--bg-sage-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-top: 20px;
}

.practitioner-quote-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--citrus);
}

.practitioner-quote-card .practitioner-content {
  flex: 1;
}

.practitioner-quote-card .practitioner-text {
  font-style: italic;
  color: var(--text-olive);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.practitioner-quote-card .practitioner-name {
  font-weight: 600;
  color: var(--text-forest);
  font-size: 0.9rem;
}

.practitioner-quote-card .practitioner-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Difference Section */
.difference-section {
  margin-bottom: 24px;
  text-align: left;
}

.difference-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  color: var(--text-forest);
  margin-bottom: 16px;
}

.difference-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.difference-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border-radius: 12px;
}

.difference-item.before {
  background: rgba(220, 107, 77, 0.1);
}

.difference-item.after {
  background: var(--success-light);
}

.difference-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.difference-text {
  flex: 1;
  color: var(--text-olive);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Features List */
.features-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 12px;
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

.feature-content {
  flex: 1;
}

.feature-title {
  font-weight: 600;
  color: var(--text-forest);
  font-size: 0.9rem;
}

.feature-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Timeline Section */
.timeline-section {
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  text-align: left;
}

.timeline-header {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  color: var(--text-forest);
  margin-bottom: 8px;
}

.timeline-expectation {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-step {
  display: flex;
  gap: 16px;
}

.timeline-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timeline-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--citrus);
  flex-shrink: 0;
}

.timeline-step-line {
  width: 2px;
  flex: 1;
  background: var(--sage);
  margin-top: 4px;
  min-height: 20px;
}

.timeline-step:last-child .timeline-step-line {
  display: none;
}

.timeline-step-content {
  flex: 1;
  padding-bottom: 20px;
}

.timeline-step:last-child .timeline-step-content {
  padding-bottom: 0;
}

.timeline-step-week {
  font-weight: 600;
  color: var(--text-forest);
  font-size: 0.9rem;
}

.timeline-step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  text-align: center;
  background: var(--card-background);
  border: 2px solid var(--citrus);
  border-radius: 20px;
  padding: 28px;
  margin-bottom: 24px;
}

.cta-message {
  font-size: 1rem;
  color: var(--text-olive);
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-coral {
  background: #E07A5F;
  color: white;
  width: 100%;
  padding: 18px 36px;
  border: none;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(224, 122, 95, 0.3);
}

.btn-coral:hover {
  background: #C9694F;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(224, 122, 95, 0.4);
}

.cta-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.member-count {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 12px;
}

.member-count-dot {
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: blink 2s ease infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ==================== */
/* RED FLAG RESULTS */
/* ==================== */
.red-flag-screen {
  text-align: center;
  padding: 32px 20px;
  animation: fadeIn 0.3s ease;
}

.red-flag-photo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 24px;
  border: 3px solid var(--warning-yellow);
}

.red-flag-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  color: var(--text-forest);
  margin-bottom: 20px;
}

.red-flag-message {
  color: var(--text-olive);
  line-height: 1.7;
  margin-bottom: 24px;
  font-size: 15px;
}

.red-flag-list {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid var(--warning-yellow);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  margin-bottom: 24px;
}

.red-flag-list-title {
  font-weight: 600;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.red-flag-list ul {
  margin-left: 20px;
  color: var(--text-olive);
}

.red-flag-list li {
  padding: 6px 0;
}

.red-flag-followup {
  background: var(--bg-sage-subtle);
  border-radius: 16px;
  padding: 24px;
  margin-top: 24px;
}

.red-flag-followup-title {
  font-weight: 600;
  color: var(--text-forest);
  margin-bottom: 12px;
}

/* Mobile adjustments for Quiz-4 */
@media (max-width: 600px) {
  .slider-labels {
    flex-direction: row;
  }

  .slider-label {
    max-width: 100px;
    font-size: 0.8rem;
  }

  .loading-item {
    flex-wrap: wrap;
  }

  .loading-item-text {
    width: 100%;
    margin-bottom: 8px;
  }

  .loading-popup {
    padding: 24px 20px;
  }

  .loading-popup-options {
    flex-direction: column;
  }

  .loading-popup-option {
    width: 100%;
    text-align: center;
  }

  .practitioner-quote-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-labels {
    flex-direction: column;
    gap: 12px;
  }

  .timeline-label {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
  }
}

/* ==================== */
/* VALIDATION MODAL */
/* ==================== */
.validation-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.validation-modal-overlay.active {
  opacity: 1;
}

.validation-modal {
  background: var(--card-background);
  border-radius: 20px;
  padding: 32px 24px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.2s ease;
}

.validation-modal-overlay.active .validation-modal {
  transform: translateY(0);
}

.validation-modal-content {
  margin-bottom: 24px;
}

.validation-modal .validation-text {
  color: var(--text-olive);
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 12px;
}

.validation-modal .validation-text.reinforcement {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ==================== */
/* JOURNEY MAP */
/* ==================== */
.journey-map-screen {
  text-align: center;
}

.journey-goal-statement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--citrus-pale);
  border: 2px solid var(--citrus);
  border-radius: 100px;
  padding: 12px 24px;
  margin: 0 auto 28px;
  font-weight: 600;
  color: var(--text-forest);
  max-width: fit-content;
}

.journey-goal-icon {
  font-size: 1.2rem;
}

.journey-timeline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.journey-phase {
  background: var(--card-background);
  border-radius: 16px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--divider);
}

.journey-phase.past {
  border-left: 4px solid var(--text-muted);
}

.journey-phase.now {
  border-left: 4px solid var(--citrus);
  background: var(--citrus-pale);
}

.journey-phase.future {
  border-left: 4px solid var(--success);
  background: var(--success-light);
}

.journey-phase-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.journey-phase.now .journey-phase-label {
  color: var(--forest);
}

.journey-phase.future .journey-phase-label {
  color: var(--success);
}

.journey-tried-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.journey-tried-item {
  background: var(--bg-cream);
  border: 1px solid var(--divider);
  border-radius: 100px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: var(--text-olive);
}

.journey-tried-more {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 6px 0;
}

.journey-phase-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.journey-missing-piece {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 8px;
}

.journey-piece-icon {
  font-size: 1.2rem;
}

.journey-goal-destination {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--forest);
}

.journey-goal-icon-large {
  font-size: 1.4rem;
}

.journey-arrow {
  text-align: center;
  font-size: 1.5rem;
  color: var(--text-muted);
  transform: rotate(90deg);
}

/* ==================== */
/* INFO SCREEN IMAGE */
/* ==================== */
.info-image-container {
  margin: 0 auto 24px;
  max-width: 280px;
}

.info-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Mobile adjustments for journey map */
@media (max-width: 600px) {
  .journey-goal-statement {
    padding: 10px 16px;
    font-size: 0.9rem;
  }

  .journey-phase {
    padding: 16px;
  }

  .journey-tried-item {
    font-size: 0.8rem;
    padding: 5px 10px;
  }
}

/* ==================== */
/* COMPARISON POPUP */
/* ==================== */
.comparison-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.comparison-popup {
  background: var(--card-background);
  border-radius: 24px;
  padding: 32px 28px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

.comparison-popup-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-forest);
  text-align: center;
  margin-bottom: 8px;
}

.comparison-popup-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 28px;
}

.comparison-progress-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comparison-item {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.comparison-item.active,
.comparison-item.completed {
  opacity: 1;
}

.comparison-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.comparison-item-text {
  font-size: 0.9rem;
  color: var(--text-olive);
  transition: color 0.3s ease;
}

.comparison-item.active .comparison-item-text {
  color: var(--text-forest);
  font-weight: 500;
}

.comparison-item.completed .comparison-item-text {
  color: #2ECC71;
}

.comparison-item-percent {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  min-width: 42px;
  text-align: right;
  transition: color 0.3s ease;
}

.comparison-item.active .comparison-item-percent {
  color: var(--citrus);
}

.comparison-item.completed .comparison-item-percent {
  color: #2ECC71;
}

.comparison-bar {
  height: 8px;
  background: var(--divider);
  border-radius: 100px;
  overflow: hidden;
}

.comparison-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--citrus), #2ECC71);
  border-radius: 100px;
  width: 0%;
  transition: width 0.1s ease;
}

.comparison-complete {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(46, 204, 113, 0.1);
  color: #2ECC71;
  padding: 16px;
  border-radius: 12px;
  margin-top: 24px;
  font-weight: 600;
  font-size: 0.95rem;
  animation: slideUp 0.3s ease;
}

.comparison-complete-icon {
  width: 28px;
  height: 28px;
  background: #2ECC71;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

@media (max-width: 600px) {
  .comparison-popup {
    padding: 24px 20px;
    border-radius: 20px;
  }

  .comparison-popup-title {
    font-size: 1.15rem;
  }

  .comparison-item-text {
    font-size: 0.85rem;
  }
}

/* ==================== */
/* ANIMATION KEYFRAMES */
/* ==================== */
@keyframes animatePhase {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes animateWeek {
  from {
    opacity: 0;
    transform: scaleX(0);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.animate-phase {
  animation: animatePhase 0.5s ease forwards;
  opacity: 0;
}

.animate-week {
  animation: animateWeek 0.6s ease forwards;
  opacity: 0;
  transform-origin: left center;
}

/* ==================== */
/* CYCLE COMPARISON (Visual) */
/* ==================== */
.cycle-comparison-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0;
}

.cycle-card {
  border-radius: 16px;
  padding: 20px;
  text-align: left;
}

.cycle-card.cycle-stuck {
  background: rgba(220, 107, 77, 0.08);
  border: 2px solid rgba(220, 107, 77, 0.3);
}

.cycle-card.cycle-escape {
  background: rgba(46, 204, 113, 0.08);
  border: 2px solid rgba(46, 204, 113, 0.3);
}

.cycle-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.cycle-header.stuck {
  color: #DC6B4D;
}

.cycle-header.escape {
  color: #2ECC71;
}

.cycle-icon {
  font-size: 1.4rem;
}

.cycle-title {
  font-weight: 700;
  font-size: 0.95rem;
}

.cycle-flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: 12px;
}

.cycle-flow.stuck {
  background: rgba(220, 107, 77, 0.1);
}

.cycle-flow.escape {
  background: rgba(46, 204, 113, 0.1);
}

.cycle-step {
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--card-background);
  color: var(--text-olive);
  border: 1px solid var(--divider);
}

.cycle-arrow {
  color: var(--text-muted);
  font-size: 1rem;
}

.cycle-loop {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #DC6B4D;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 14px;
  background: rgba(220, 107, 77, 0.15);
  border-radius: 100px;
}

.cycle-result {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2ECC71;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 16px;
  background: rgba(46, 204, 113, 0.15);
  border-radius: 100px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .cycle-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .cycle-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }

  .cycle-loop {
    margin-top: 8px;
  }
}

/* ==================== */
/* ACHIEVEMENT DIAGRAM */
/* ==================== */
.goal-reminder-v2 {
  text-align: center;
}

.goal-reminder-v2 .question-text {
  margin-bottom: 32px;
}

.goal-reminder-subtext {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 24px;
  line-height: 1.6;
}

.achievement-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0 auto 24px;
  max-width: 360px;
}

.achievement-step {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 14px;
}

.achievement-step.challenge {
  border-left: 4px solid #DC6B4D;
}

.achievement-step.effort {
  border-left: 4px solid var(--citrus);
}

.achievement-step.piece {
  border-left: 4px solid var(--forest);
}

.achievement-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.achievement-content {
  flex: 1;
  text-align: left;
}

.achievement-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.achievement-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-forest);
}

.achievement-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--bg-cream);
  border-radius: 50%;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.achievement-goal {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--success-light), rgba(46, 204, 113, 0.15));
  border: 2px solid var(--success);
  border-radius: 14px;
  margin-top: 4px;
}

.achievement-goal .achievement-icon {
  font-size: 1.8rem;
}

.achievement-goal .achievement-label {
  color: var(--success);
}

.achievement-goal .achievement-value {
  font-size: 1.05rem;
}

/* ==================== */
/* CENTERED LOADING POPUP */
/* ==================== */
.loading-popup-center {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
  animation: fadeIn 0.3s ease;
}

.loading-popup-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 400px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.3s ease;
}

.loading-popup-card .loading-popup-question {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-forest);
  margin-bottom: 24px;
  text-align: center;
  line-height: 1.4;
}

.loading-popup-card .loading-popup-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.loading-popup-card .loading-popup-option {
  width: 100%;
  text-align: center;
}

/* ==================== */
/* LARGE COMPARISON POPUP */
/* ==================== */
.comparison-popup-large {
  max-width: 480px;
}

.comparison-popup-title-large {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-forest);
  text-align: center;
  margin-bottom: 8px;
  line-height: 1.3;
}

/* Color-coded loading bars */
.comparison-bar-fill.color-amber {
  background: linear-gradient(90deg, #F59E0B, #FBBF24);
}

.comparison-bar-fill.color-green {
  background: linear-gradient(90deg, #10B981, #34D399);
}

.comparison-bar-fill.color-blue {
  background: linear-gradient(90deg, #3B82F6, #60A5FA);
}

.comparison-bar-fill.color-purple {
  background: linear-gradient(90deg, #8B5CF6, #A78BFA);
}

.comparison-bar-fill.color-emerald {
  background: linear-gradient(90deg, #2ECC71, #4ADE80);
}

.comparison-item.completed .comparison-item-text.color-amber {
  color: #F59E0B;
}

.comparison-item.completed .comparison-item-text.color-green {
  color: #10B981;
}

.comparison-item.completed .comparison-item-text.color-blue {
  color: #3B82F6;
}

.comparison-item.completed .comparison-item-text.color-purple {
  color: #8B5CF6;
}

.comparison-item.completed .comparison-item-text.color-emerald {
  color: #2ECC71;
}

.comparison-item.completed .comparison-item-percent.color-amber {
  color: #F59E0B;
}

.comparison-item.completed .comparison-item-percent.color-green {
  color: #10B981;
}

.comparison-item.completed .comparison-item-percent.color-blue {
  color: #3B82F6;
}

.comparison-item.completed .comparison-item-percent.color-purple {
  color: #8B5CF6;
}

.comparison-item.completed .comparison-item-percent.color-emerald {
  color: #2ECC71;
}

@media (max-width: 600px) {
  .comparison-popup-title-large {
    font-size: 1.3rem;
  }

  .loading-popup-card {
    padding: 24px 20px;
  }

  .loading-popup-card .loading-popup-question {
    font-size: 1.1rem;
  }
}

/* ==================== */
/* NEW SCREEN TYPES (v4 Update) */
/* ==================== */

/* Info Icon */
.info-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* Stat Highlight */
.stat-highlight {
  background: var(--citrus-pale);
  border: 2px solid var(--citrus);
  border-radius: 16px;
  padding: 20px;
  margin: 20px auto;
  display: inline-block;
}

.stat-highlight .stat-number {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--forest);
  font-weight: 400;
}

/* ==================== */
/* TESTIMONIAL SCREEN */
/* ==================== */
.testimonial-screen {
  text-align: center;
}

.testimonial-card {
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 20px;
  padding: 28px;
  margin: 24px 0;
  text-align: left;
}

.testimonial-image-container {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid var(--citrus);
}

.testimonial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-quote {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-olive);
  margin: 0 0 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--divider);
  padding-top: 16px;
}

.testimonial-author strong {
  color: var(--text-forest);
  font-weight: 600;
}

.testimonial-detail {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==================== */
/* KNOWLEDGE RESPONSE SCREEN */
/* ==================== */
.knowledge-response {
  text-align: center;
}

.knowledge-quiz {
  border-radius: 16px;
  padding: 8px;
}

.knowledge-options {
  justify-content: center;
}

.knowledge-option {
  text-align: center !important;
}

.feedback-card {
  background: var(--card-background);
  border-radius: 20px;
  padding: 32px 24px;
  margin: 16px 0 24px;
}

.feedback-card.correct {
  border: 2px solid var(--success);
  background: var(--success-light);
}

.feedback-card.incorrect {
  border: 2px solid var(--citrus);
  background: var(--citrus-pale);
}

.feedback-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.feedback-title {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.feedback-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-olive);
}

/* ==================== */
/* WARNING SCREEN (Red Flags) */
/* ==================== */
.warning-screen {
  text-align: center;
}

.warning-icon {
  font-size: 3.5rem;
  margin-bottom: 16px;
}

.warning-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 24px 0;
}

.warning-option {
  width: 100%;
}

.warning-note {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ==================== */
/* EMAIL CAPTURE SCREEN */
/* ==================== */
.email-capture {
  text-align: center;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  text-align: left;
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px 24px;
}

.value-list li {
  padding: 12px 0;
  font-size: 1rem;
  color: var(--text-forest);
  border-bottom: 1px solid var(--divider);
}

.value-list li:last-child {
  border-bottom: none;
}

.input-label {
  display: block;
  font-weight: 600;
  color: var(--text-forest);
  margin-bottom: 8px;
  text-align: left;
}

.input-container {
  margin-bottom: 16px;
}

.email-input,
.name-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid var(--divider);
  border-radius: 12px;
  background: var(--card-background);
  color: var(--text-forest);
  transition: border-color 0.2s ease;
}

.email-input:focus,
.name-input:focus {
  outline: none;
  border-color: var(--citrus);
}

.input-error {
  color: var(--error);
  font-size: 0.9rem;
  margin-top: 8px;
  text-align: left;
}

.input-error.hidden {
  display: none;
}

.privacy-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

/* ==================== */
/* TEXT INPUT OPTIONAL */
/* ==================== */
.text-input-optional {
  text-align: center;
}

.textarea-input {
  width: 100%;
  padding: 16px 20px;
  font-size: 1rem;
  border: 2px solid var(--divider);
  border-radius: 12px;
  background: var(--card-background);
  color: var(--text-forest);
  resize: vertical;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.textarea-input:focus {
  outline: none;
  border-color: var(--citrus);
}

.btn-skip {
  display: block;
  width: 100%;
  padding: 14px;
  margin-top: 12px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.btn-skip:hover {
  color: var(--text-forest);
}

/* ==================== */
/* RESULTS SCREEN - UPDATED */
/* ==================== */
.results-screen {
  text-align: center;
  padding-bottom: 40px;
}

.results-header {
  margin-bottom: 32px;
}

.results-greeting {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gut-type-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 4px solid;
  display: inline-block;
}

.gut-type-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-olive);
  max-width: 400px;
  margin: 0 auto;
}

/* Protocol Card */
.protocol-card {
  background: var(--card-background);
  border: 2px solid;
  border-radius: 20px;
  padding: 28px;
  margin: 24px 0;
  text-align: left;
}

.protocol-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.protocol-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.protocol-overlay {
  display: inline-block;
  background: rgba(139, 92, 246, 0.15);
  color: #7C3AED;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.protocol-includes {
  list-style: none;
  padding: 0;
  margin: 0;
}

.protocol-includes li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-olive);
  border-bottom: 1px solid var(--divider);
}

.protocol-includes li:last-child {
  border-bottom: none;
}

.protocol-includes li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

/* Timeline Prediction */
.timeline-prediction {
  background: var(--citrus-pale);
  border: 2px solid var(--citrus);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.timeline-header {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.timeline-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-olive);
}

.timeline-text strong {
  color: var(--forest);
}

/* Scarcity Message */
.scarcity-message {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 20px;
  margin: 24px 0;
  text-align: center;
}

.scarcity-message p {
  font-size: 1rem;
  color: var(--text-olive);
  margin: 0;
}

.scarcity-message strong {
  color: #3B82F6;
}

.scarcity-subtext {
  font-size: 0.9rem !important;
  color: var(--text-muted) !important;
  margin-top: 8px !important;
}

/* Analysis Card */
.analysis-card {
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.analysis-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.analysis-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  color: var(--text-olive);
}

.analysis-list li:last-child {
  border-bottom: none;
}

.analysis-list strong {
  color: var(--text-forest);
}

/* Practitioner Quote */
.practitioner-quote {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg-cream);
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  text-align: left;
}

.practitioner-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.practitioner-content {
  flex: 1;
}

.practitioner-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-olive);
  margin-bottom: 12px;
  font-style: italic;
}

.practitioner-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-forest);
}

/* CTA Section */
.cta-section {
  background: var(--forest);
  border-radius: 20px;
  padding: 32px 24px;
  margin: 32px 0 0;
  text-align: center;
}

.cta-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem;
  font-weight: 400;
  color: white;
  margin-bottom: 8px;
}

.cta-subtext {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
}

.btn-coral {
  background: #E07A5F !important;
  color: white !important;
  border: none;
  padding: 18px 48px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  width: 100%;
  max-width: 320px;
}

.btn-coral:hover {
  background: #D66B50 !important;
  transform: translateY(-2px);
}

.cta-guarantee {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 16px;
}

/* ==================== */
/* RED FLAG RESULTS SCREEN */
/* ==================== */
.red-flag-screen {
  text-align: center;
  padding: 20px 0;
}

.red-flag-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 3px solid var(--citrus);
}

.red-flag-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 24px;
  line-height: 1.3;
}

.red-flag-message {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-olive);
  margin-bottom: 20px;
}

.red-flag-list {
  background: rgba(220, 107, 77, 0.1);
  border: 1px solid rgba(220, 107, 77, 0.3);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 24px 0;
  text-align: left;
}

.red-flag-list-title {
  font-weight: 700;
  color: #DC6B4D;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.red-flag-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.red-flag-list li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text-olive);
}

.red-flag-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
}

.red-flag-actions {
  margin-top: 32px;
}

/* ==================== */
/* UTILITY CLASSES */
/* ==================== */
.hidden {
  display: none !important;
}

.mt-md {
  margin-top: 16px;
}

.mt-xl {
  margin-top: 32px;
}

/* ==================== */
/* RESPONSIVE ADJUSTMENTS */
/* ==================== */
@media (max-width: 600px) {
  .testimonial-card {
    padding: 20px;
  }

  .testimonial-image-container {
    width: 64px;
    height: 64px;
  }

  .gut-type-name {
    font-size: 1.5rem;
  }

  .protocol-card {
    padding: 20px;
  }

  .protocol-name {
    font-size: 1.3rem;
  }

  .practitioner-quote {
    flex-direction: column;
    text-align: center;
  }

  .practitioner-photo {
    margin: 0 auto;
  }

  .cta-headline {
    font-size: 1.5rem;
  }

  .btn-coral {
    padding: 16px 36px;
    font-size: 1rem;
  }
}

/* ==================== */
/* ANIMATED REVEAL SEQUENCE */
/* ==================== */
.animated-reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 40px 20px;
  text-align: center;
  background: linear-gradient(180deg, var(--bg-cream) 0%, #fff 100%);
}

.reveal-step {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  margin-bottom: 24px;
}

.reveal-step.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Step 1: Logo */
.reveal-logo {
  margin-bottom: 40px;
}

.reveal-logo-img {
  width: 180px;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* Step 2: Protocol Ready */
.reveal-ready {
  margin-bottom: 20px;
}

.reveal-icon {
  font-size: 48px;
  margin-bottom: 16px;
  animation: gentlePulse 2s ease-in-out infinite;
}

@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.reveal-headline {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-forest);
  line-height: 1.3;
  max-width: 400px;
  margin: 0 auto;
}

/* Step 3: Goal Connection */
.reveal-goal {
  margin-bottom: 28px;
}

.reveal-goal-text {
  font-size: 1.15rem;
  color: var(--text-olive);
  line-height: 1.6;
}

.reveal-goal-text strong {
  color: var(--text-forest);
  font-weight: 600;
}

/* Step 4: Timeline */
.reveal-timeline {
  margin-bottom: 32px;
  width: 100%;
  max-width: 360px;
}

.reveal-timeline-card {
  background: var(--card-background);
  border: 2px solid var(--citrus);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 20px rgba(249, 199, 79, 0.15);
}

.reveal-timeline-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.reveal-timeline-text {
  font-size: 0.95rem;
  color: var(--text-olive);
  line-height: 1.5;
  text-align: left;
  margin: 0;
}

.reveal-timeline-text strong {
  color: var(--text-forest);
}

/* Step 5: Let's Begin */
.reveal-begin {
  margin-top: 8px;
}

.reveal-begin-text {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.reveal-cta {
  min-width: 220px;
  animation: subtleGlow 2s ease-in-out infinite;
}

@keyframes subtleGlow {
  0%, 100% { box-shadow: 0 4px 15px rgba(107, 144, 128, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(107, 144, 128, 0.5); }
}

/* Mobile adjustments for reveal */
@media (max-width: 600px) {
  .animated-reveal {
    min-height: 85vh;
    padding: 32px 20px;
  }

  .reveal-logo-img {
    width: 140px;
  }

  .reveal-headline {
    font-size: 1.5rem;
  }

  .reveal-goal-text {
    font-size: 1.05rem;
  }

  .reveal-timeline-card {
    padding: 16px 20px;
  }

  .reveal-timeline-text {
    font-size: 0.9rem;
  }
}

/* ==================== */
/* UPDATED RESULTS PAGE */
/* ==================== */
.results-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.gut-type-name {
  font-family: 'DM Serif Display', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text-forest);
  border-bottom: 4px solid var(--citrus);
  padding-bottom: 8px;
  display: inline-block;
  margin-bottom: 24px;
}

/* Protocol Explanation Section */
.protocol-explanation {
  text-align: left;
  margin-bottom: 24px;
  padding: 0 4px;
}

.protocol-explanation-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.protocol-explanation-text {
  font-size: 0.95rem;
  color: var(--text-olive);
  line-height: 1.7;
}

/* Protocol Includes with Check */
.protocol-includes {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  text-align: left;
}

.protocol-includes li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text-olive);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.include-check {
  color: var(--success);
  font-weight: bold;
  flex-shrink: 0;
}

/* What Changes Section */
.what-changes-section {
  margin-bottom: 24px;
}

.what-changes-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 16px;
  text-align: left;
}

.outcome-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--bg-sage-subtle);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.outcome-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}

.outcome-text {
  font-size: 0.95rem;
  color: var(--text-olive);
  line-height: 1.5;
  margin: 0;
}

.outcome-text strong {
  color: var(--text-forest);
}

/* Personalization Summary */
.personalization-summary {
  background: var(--card-background);
  border: 1px solid var(--divider);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.personalization-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-forest);
  margin-bottom: 12px;
}

.personalization-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.personalization-list li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-olive);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pers-bullet {
  color: var(--citrus);
  font-weight: bold;
  flex-shrink: 0;
}

.personalization-list strong {
  color: var(--text-forest);
}

/* Scarcity Message */
.scarcity-message {
  background: linear-gradient(135deg, var(--citrus-pale), rgba(249, 199, 79, 0.15));
  border: 2px solid var(--citrus);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: center;
}

.scarcity-message p {
  font-size: 0.95rem;
  color: var(--text-forest);
  margin: 0;
}

.scarcity-message strong {
  color: var(--forest);
  font-weight: 700;
}

.scarcity-subtext {
  font-size: 0.85rem !important;
  color: var(--text-muted) !important;
  margin-top: 8px !important;
}

/* Practitioner Quote */
.practitioner-quote {
  display: flex;
  gap: 16px;
  background: var(--bg-sage-subtle);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  text-align: left;
}

.practitioner-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--citrus);
}

.practitioner-content {
  flex: 1;
}

.practitioner-text {
  font-style: italic;
  color: var(--text-olive);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0 0 8px;
}

.practitioner-name {
  font-weight: 600;
  color: var(--text-forest);
  font-size: 0.85rem;
  margin: 0;
}

/* CTA Section Updates */
.cta-section {
  text-align: center;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.cta-guarantee {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 12px;
}

/* Mobile adjustments for results */
@media (max-width: 600px) {
  .gut-type-name {
    font-size: 1.5rem;
  }

  .protocol-explanation-title,
  .what-changes-title {
    font-size: 1.05rem;
  }

  .outcome-card {
    padding: 14px;
  }

  .practitioner-quote {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .practitioner-photo {
    margin: 0 auto;
  }

  .personalization-summary {
    padding: 16px;
  }
}
