/* ── Distraction-Free Quiz Funnel: Hide Standard Theme Header & Footer ── */
#announcement-bar,
.site-header,
.newsletter-section,
.site-footer,
.features-bar,
.footer-bottom,
.sub-footer,
#site-navigation,
.site-footer-wrapper {
  display: none !important;
}

body {
  background: #FAFBF7 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  overflow-x: hidden;
}

.routine-quiz-wrapper {
  min-height: 100vh;
  background: #FAFBF7;
  color: #12284B;
  font-family: var(--font-body), -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* ── Seed.com Header (Centered Logo, Left Back Arrow, Right Step Counter) ── */
.quiz-header-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FAFBF7;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.quiz-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.1rem 2rem;
}

.quiz-back-btn {
  background: transparent;
  border: none;
  color: #0071E3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 150ms ease;
}

.quiz-back-btn:hover {
  background: rgba(18, 40, 75, 0.08);
}

.quiz-logo-center {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.quiz-header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Glassmorphism Language Switcher Pill (Matching Screenshot) */
.quiz-lang-toggle {
  display: inline-flex;
  align-items: center;
  background: #EFECE6;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
  user-select: none;
}

.quiz-lang-btn {
  border: none;
  background: transparent;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666666;
  cursor: pointer;
  transition: all 180ms ease;
  line-height: 1.2;
}

.quiz-lang-btn:hover {
  color: #0071E3;
}

.quiz-lang-btn.is-active {
  background: #FFFFFF;
  color: #0071E3;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.quiz-step-counter {
  font-size: 0.85rem;
  font-weight: 500;
  color: #888888;
  letter-spacing: 0.02em;
}

/* Continuous Thin Green Progress Line */
.quiz-progress-line-wrap {
  width: 100%;
  height: 2px;
  background: rgba(0, 0, 0, 0.06);
  position: relative;
}

.quiz-progress-line-fill {
  height: 100%;
  background: #0071E3;
  transition: width 350ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Main Quiz Container & Seed.com Layout Matching ── */
/* ── Main Quiz Container & Seed.com Layout Matching ── */
.quiz-main-container {
  flex: 1;
  max-width: 680px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.quiz-step-screen {
  display: none !important;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 260ms ease, transform 260ms ease;
  width: 100%;
}

.quiz-step-screen.is-active {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  opacity: 1;
  transform: translateY(0);
}

/* ── Typography matching Seed.com ── */
.quiz-title {
  font-family: var(--font-body), sans-serif;
  font-size: clamp(1.8rem, 3.6vw, 2.35rem);
  font-weight: 700 !important;
  line-height: 1.2;
  color: #12284B;
  letter-spacing: -0.025em;
  margin-bottom: 0.35rem;
}

.quiz-subtitle {
  font-size: 0.95rem;
  color: #555555;
  line-height: 1.45;
  margin-bottom: 1.15rem;
  font-weight: 400;
  white-space: pre-line;
}

/* ── Seed.com Option Pills Layout & Styling ── */
.quiz-options-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  width: 100%;
  margin-bottom: 1.25rem;
}

.quiz-option-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 1.35rem;
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  cursor: pointer;
  transition: all 180ms ease;
  user-select: none;
  color: #12284B;
  font-size: 0.95rem;
  font-weight: 400;
  width: max-content;
  max-width: 100%;
}

.quiz-option-pill:hover {
  border-color: #438BC4;
  background: #FFFEF9;
}

/* Selected Pill State (Seed's Light Olive/Sage Green) */
.quiz-option-pill.is-selected {
  background: #D8E4CA !important;
  border-color: #D8E4CA !important;
  color: #12284B !important;
  font-weight: 500;
}

.quiz-option-check {
  display: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: #12284B;
}

.quiz-option-pill.is-selected .quiz-option-check {
  display: inline-block;
}

.quiz-option-text {
  line-height: 1.3;
}

/* ── CTA Button Centered in Middle (Seed.com Exact) ── */
.quiz-cta-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.25rem;
}

.quiz-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 420px;
  padding: 0.95rem 1.25rem;
  background: #0071E3;
  color: #FFFFFF;
  border: none;
  border-radius: 9999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 180ms ease, transform 120ms ease;
  box-shadow: none;
  margin: 0 auto;
}

.quiz-submit-btn:hover {
  background: #438BC4;
  transform: translateY(-1px);
}

.quiz-submit-btn:active {
  transform: scale(0.98);
}

/* ── Interstitial Cards ── */
.quiz-interstitial-card {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 2rem;
  width: 100%;
}

.quiz-badge-seal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #D8E4CA;
  color: #12284B;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.15rem;
}

/* ── Recommendations Stack ── */
.quiz-products-stack {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  margin-bottom: 2.25rem;
}

.quiz-product-card {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 1.1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
}

.quiz-product-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 14px;
}

.quiz-product-title {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #12284B;
}

.quiz-product-price {
  font-size: 0.98rem;
  font-weight: 700;
  color: #12284B;
}

/* ── Account Gate Form ── */
.quiz-gate-form {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 1.85rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  width: 100%;
  margin-bottom: 1.75rem;
}

.quiz-form-group {
  margin-bottom: 1.1rem;
}

.quiz-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: #12284B;
}

.quiz-form-input {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  border-radius: 9999px;
  font-size: 0.94rem;
  outline: none;
}

.quiz-form-input:focus {
  border-color: #438BC4;
}

/* Mobile responsive */
@media (max-width: 600px) {
  .quiz-header-top {
    padding: 0.85rem 1rem;
  }
  .quiz-main-container {
    padding: 1.75rem 1rem 2.5rem;
  }
  .quiz-option-pill {
    width: 100%;
  }
  .quiz-submit-btn {
    max-width: 100%;
  }
}
