/* ============================================
   VITALITY GENESIS - Quiz Funnel Styles
   Dark theme, orange accents, mobile-first
   ============================================ */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #111111;
  color: #ffffff;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Container */
.quiz-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Brand Mark */
.brand-mark {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555555;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 30px;
}

/* Quiz Steps */
.quiz-step {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

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

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

/* Hero Section (Step 1 only) */
.hero-section {
  text-align: center;
  margin-bottom: 50px;
}

.headline {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.highlight {
  color: #e8650a;
}

.subheadline {
  font-size: 1.05rem;
  color: #b0b0b0;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  line-height: 1.7;
}

/* Question Section */
.question-section {
  text-align: center;
}

.progress {
  color: #e8650a;
  font-size: 0.85rem;
  margin-bottom: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.question {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 30px;
  line-height: 1.3;
}

/* Option Buttons */
.options {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 35px;
}

.option-btn {
  background: #1e1e1e;
  border: 2px solid #2a2a2a;
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  padding: 18px 24px;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-family: inherit;
}

.option-btn:hover {
  border-color: #e8650a;
  box-shadow: 0 0 20px rgba(232, 101, 10, 0.25), 0 0 40px rgba(232, 101, 10, 0.1);
  transform: translateY(-1px);
}

.option-btn:active {
  transform: translateY(0);
}

.arrow {
  color: #e8650a;
  font-size: 1.3rem;
  font-weight: 700;
  margin-left: 16px;
  flex-shrink: 0;
}

/* Testimonial Cards (In-Quiz) */
.testimonial-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  margin-top: 10px;
}

.testimonial-avatar img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
}

.testimonial-text p {
  font-size: 0.95rem;
  color: #cccccc;
  font-style: italic;
  margin-bottom: 6px;
  line-height: 1.5;
}

.testimonial-name {
  font-size: 0.82rem;
  color: #777777;
}

/* ============================================
   RESULTS PAGE
   ============================================ */

.results-section {
  text-align: center;
  padding-bottom: 120px;
}

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

.results-headline {
  font-family: 'Poppins', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 20px;
}

.results-subtext {
  font-size: 1rem;
  color: #b0b0b0;
  font-style: italic;
  max-width: 580px;
  margin: 0 auto 16px;
  line-height: 1.7;
}

.results-bold {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

/* Results Testimonials */
.results-testimonials {
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.2rem;
  margin-bottom: 24px;
  color: #ffffff;
}

.testimonial-result-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 22px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  text-align: left;
}

.testimonial-result-card .testimonial-avatar img {
  width: 56px;
  height: 56px;
}

.testimonial-result-card .testimonial-text p {
  font-size: 0.95rem;
  color: #cccccc;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 8px;
}

.testimonial-result-card .testimonial-name {
  font-size: 0.82rem;
  color: #777777;
}

/* CTA Section */
.cta-section {
  margin: 40px 0;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(232, 101, 10, 0.08) 0%, rgba(232, 101, 10, 0.02) 100%);
  border: 1px solid rgba(232, 101, 10, 0.2);
  border-radius: 20px;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #e8650a 0%, #ff8534 100%);
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 20px 40px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(232, 101, 10, 0.4);
  letter-spacing: 0.3px;
  line-height: 1.4;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(232, 101, 10, 0.6);
  background: linear-gradient(135deg, #ff7520 0%, #ff9a50 100%);
}

.cta-subtext {
  font-size: 0.85rem;
  color: #777777;
  margin-top: 16px;
  font-style: italic;
}

/* Motivation Section */
.motivation-section {
  margin: 30px 0;
}

.motivation-card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 35px 30px;
  text-align: center;
}

.motivation-card p {
  font-size: 1.05rem;
  color: #999999;
  margin-bottom: 10px;
  line-height: 1.6;
}

.motivation-bold {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1.15rem !important;
}

/* ============================================
   STICKY CTA
   ============================================ */

.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(180deg, transparent 0%, #111111 15%, #111111 100%);
  padding: 20px 16px 24px;
  text-align: center;
  z-index: 999;
}

.sticky-cta.visible {
  display: block;
}

.sticky-cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #e8650a 0%, #ff8534 100%);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 32px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 25px rgba(232, 101, 10, 0.5);
  width: 100%;
  max-width: 600px;
}

.sticky-cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 35px rgba(232, 101, 10, 0.7);
}

.sticky-cta-sub {
  font-size: 0.78rem;
  color: #888888;
  margin-top: 8px;
  font-style: italic;
}

/* ============================================
   LOADING ANIMATION (between Q4 and Results)
   ============================================ */

.loading-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #111111;
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.loading-overlay.active {
  display: flex;
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid #2a2a2a;
  border-top-color: #e8650a;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 24px;
}

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

.loading-text {
  font-size: 1.1rem;
  color: #b0b0b0;
}

.loading-text span {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
  .quiz-container {
    padding: 30px 16px;
  }

  .headline {
    font-size: 1.75rem;
  }

  .subheadline {
    font-size: 0.95rem;
  }

  .question {
    font-size: 1.35rem;
  }

  .option-btn {
    font-size: 0.92rem;
    padding: 16px 18px;
  }

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

  .cta-button {
    font-size: 1rem;
    padding: 18px 28px;
  }

  .testimonial-card {
    flex-direction: column;
    text-align: center;
  }

  .testimonial-result-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .motivation-card {
    padding: 25px 20px;
  }

  .motivation-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .headline {
    font-size: 1.5rem;
  }

  .question {
    font-size: 1.2rem;
  }

  .cta-button {
    font-size: 0.92rem;
    padding: 16px 22px;
  }
}
