/* =============== RESET & BASE =============== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  width: 100%;
  overflow-x: hidden; /* Previne scroll orizontal */
}
h1, h2, h3, h4 {
  font-family: 'Figtree', sans-serif;
  color: #1a1a1a;
}
h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}
h1 span {
  color: #e0e7ff;
}
h2 {
  font-size: 1.9rem;
  margin-bottom: 32px;
  text-align: center;
}
p {
  font-size: 1rem;
  color: #555;
}
.subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 32px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =============== HERO SECTION – Gradient echilibrat, fără overflow =============== */
.hero {
  background: linear-gradient(135deg, #5a67d8 0%, #667eea 30%, #eef2ff 80%, #f8f9ff 100%);
  color: white;
  text-align: center;
  padding: 120px 20px 100px;
  position: relative;
  overflow: hidden;
}

/* Curbura de jos – fără scroll orizontal */
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 140%; /* Redus de la 150% ca să nu creeze overflow */
  max-width: 1600px; /* Limitare sigură */
  height: 100px;
  background: #f8f9ff;
  border-radius: 50% 50% 0 0;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
}

.hero .btn-primary {
  background: white;
  color: #5a67d8;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.hero .btn-primary:hover {
  background: #f0f4ff;
  color: #4c51bf;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* =============== SOCIAL PROOF =============== */
.social-proof {
  background: #f0fdf4;
  padding: 16px 0;
  text-align: center;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
.social-proof p {
  font-size: 1rem;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
}

/* =============== HOW IT WORKS =============== */
.how-section {
  padding: 80px 20px;
  background: #fff;
}
.how-section .container {
  max-width: 1000px;
}
.steps {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.step {
  flex: 1;
  min-width: 280px;
  max-width: 320px;
  text-align: center;
  padding: 16px;
}
.step-number {
  background: #5a67d8;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-weight: 600;
  font-size: 1.1rem;
}
.step h4 {
  margin-bottom: 12px;
  font-size: 1.15rem;
}
.step p {
  font-size: 0.95rem;
  color: #555;
}

/* =============== WHY IT WORKS =============== */
.why-section {
  padding: 80px 20px;
  background: #f9fafb;
}
.why-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 28px 24px;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.card i {
  font-size: 2rem;
  color: #5a67d8;
  margin-bottom: 16px;
}
.card h5 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.card p {
  font-size: 0.95rem;
  color: #555;
}

/* =============== SCIENCE INSIGHT =============== */
.insight-section {
  padding: 60px 20px;
  background: #fff;
  text-align: left;
}
.insight-box {
  background: #f8faff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.insight-box i {
  font-size: 2rem;
  color: #5a67d8;
  flex-shrink: 0;
}
.insight-box h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: #1a1a1a;
}
.insight-box p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* =============== FAQ =============== */
.faq-section {
  padding: 80px 20px;
  background: #f9fafb;
}
.faq-item {
  max-width: 700px;
  margin: 0 auto 32px;
  text-align: left;
}
.faq-item h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #222;
}
.faq-item p {
  color: #555;
  font-size: 0.95rem;
}

/* =============== FINAL CTA =============== */
.final-cta {
  padding: 80px 20px;
  text-align: center;
  background: #fff;
}
.final-cta h2 {
  margin-bottom: 16px;
}
.final-cta p {
  max-width: 650px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  color: #555;
}
.final-cta .btn-primary {
  background: #5a67d8;
  color: white;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.25);
}
.final-cta .btn-primary:hover {
  background: #4c51bf;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 103, 216, 0.35);
}

/* =============== DISCLAIMER =============== */
.disclaimer {
  background: #fff8f8;
  border-left: 4px solid #d9534f;
  padding: 16px;
  margin: 40px auto;
  max-width: 800px;
  font-size: 0.9rem;
  color: #555;
  text-align: center;
  border-radius: 6px;
}

/* =============== FOOTER =============== */
.footer {
  text-align: center;
  padding: 2rem 0;
  color: #777;
  font-size: 0.9rem;
  background: #f9fafb;
  border-top: 1px solid #eee;
}
.footer-links a {
  color: #555;
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* =============== MOBILE-FIRST RESPONSIVE =============== */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
    margin-bottom: 12px;
  }
  h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
  }
  .subtitle {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }
  .hero {
    padding: 100px 20px 80px;
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 30%, #eef2ff 75%, #f8f9ff 100%);
  }
  .hero::after {
    bottom: -50px;
    height: 80px;
    width: 130%; /* Evită overflow-ul */
    max-width: 1200px;
  }

  .how-section,
  .why-section,
  .insight-section,
  .faq-section,
  .final-cta {
    padding: 60px 20px;
  }

  .steps, .why-grid {
    flex-direction: column;
    align-items: center;
  }
  .step, .card {
    max-width: 100%;
    padding: 20px;
  }

  .insight-box {
    flex-direction: column;
    text-align: center;
  }
  .insight-box i {
    margin-bottom: 12px;
  }

  .disclaimer {
    margin: 30px 20px;
    padding: 14px;
    font-size: 0.85rem;
  }

  .footer {
    padding: 1.5rem 0;
    font-size: 0.85rem;
  }
}

/* =============== EXTRA SMALL (iPhone SE) =============== */
@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  .hero {
    padding: 90px 16px 70px;
  }
  .hero::after {
    bottom: -45px;
    height: 70px;
    width: 120%;
    max-width: 1000px;
  }
  .hero .btn-primary {
    padding: 12px 28px;
    font-size: 1.02rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .container {
    padding: 0 16px;
  }
}
/* =============== LOADER =============== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #555;
}
.loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e7ff;
  border-top: 4px solid #5a67d8;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader p {
  font-size: 1rem;
  color: #666;
}

/* =============== BACKGROUND GENERAL =============== */
body {
  background: #fafafa;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #1a1a1a;
}

/* =============== PROGRESS BAR =============== */
.progress-bar-container {
  max-width: 800px;
  margin: 40px auto 24px;
  text-align: center;
}
.progress-bar {
  height: 6px;
  background: #e0e7ff;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}
.progress-fill {
  height: 100%;
  background: #5a67d8;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-text {
  font-size: 0.95rem;
  color: #666;
}

/* =============== SCALE LABEL =============== */
.scale-label-top {
  max-width: 800px;
  margin: 0 auto 24px;
  padding: 0 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* =============== SCALE GUIDE =============== */
.scale-guide {
  display: flex;
  justify-content: center;
  gap: 20px;
  max-width: 800px;
  margin: 0 auto 40px;
  padding: 0 20px;
}
.guide-item {
  text-align: center;
  position: relative;
}
.guide-label {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  color: #555;
  white-space: nowrap;
  font-weight: 500;
}

/* =============== RADIO BUTTONS (simplu) =============== */
.radio-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid;
  background: #fff;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  color: white;
  font-weight: bold;
}

/* Culori fundal radio */
.color-1 { border-color: #4cd964; }
.color-2 { border-color: #5ac8fa; }
.color-3 { border-color: #007aff; }
.color-4 { border-color: #34aadc; }
.color-5 { border-color: #5856d6; }

/* La selectare: umplem cu culoarea pastel și arătăm bifa */
.radio-btn.checked.color-1 { background: #4cd964; }
.radio-btn.checked.color-2 { background: #5ac8fa; }
.radio-btn.checked.color-3 { background: #007aff; }
.radio-btn.checked.color-4 { background: #34aadc; }
.radio-btn.checked.color-5 { background: #5856d6; }

/* =============== BUTON PREVIOUS =============== */
.prev-button-container {
  max-width: 800px;
  margin: 0 auto 16px;
  padding: 0 20px;
  text-align: right;
}
.prev-btn {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.prev-btn:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  transform: translateY(-1px);
}

/* =============== QUESTIONS CONTAINER =============== */
#questions-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.question-item {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* =============== ÎNTREBĂRI =============== */
.question-item h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1.6;
  margin: 0 0 16px;
}

/* =============== QUESTION RADIO BUTTONS =============== */
.question-radios {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

/* =============== NEXT BUTTON =============== */
.test-navigation {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
  text-align: center;
}
#next-btn {
  display: inline-block;
  background: #5a67d8;
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(90, 103, 216, 0.25);
}
#next-btn:hover:not(:disabled) {
  background: #4c51bf;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(90, 103, 216, 0.35);
}
#next-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* =============== MOBILE =============== */
@media (max-width: 480px) {
  .scale-guide, .question-radios {
    gap: 12px;
  }
  .guide-label {
    font-size: 0.85rem;
    top: -24px;
  }
  .prev-button-container {
    padding: 0 16px;
  }
  .prev-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
  }
}

/* =============== DISCLAIMER (sus) =============== */
.disclaimer-top {
  text-align: center;
  padding: 16px 20px;
  background: #f0f3ff;
  color: #555;
  font-size: 0.9rem;
  border-bottom: 1px solid #e5e7eb;
}
.disclaimer-top strong {
  color: #1a1a1a;
}

/* =============== LOADER =============== */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  color: #555;
}
.loader .spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e0e7ff;
  border-top: 4px solid #5a67d8;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loader p {
  font-size: 1rem;
  color: #666;
}

/* =============== RESULTS CONTAINER =============== */
.results-container {
  max-width: 700px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f8faff;
}

/* =============== INTRO SECTION =============== */
.intro-section h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.8rem;
  color: #1a1a1a;
  margin: 0 0 16px;
  font-weight: 600;
}
.intro-section p {
  font-size: 1.1rem;
  color: #555;
  margin: 16px 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.intro-section p strong {
  color: #5a67d8;
}

/* =============== BOXES (unul sub altul) =============== */
.box {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  text-align: left;
}
.box h3 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.4rem;
  color: #1a1a1a;
  margin: 0 0 16px;
  font-weight: 600;
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
}
.box p {
  font-size: 1.05rem;
  color: #555;
  margin: 8px 0;
}

/* =============== RESULT HIGHLIGHT =============== */
.result-highlight {
  background: #f0f3ff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
  text-align: center;
}
.result-highlight strong {
  font-size: 1.2rem;
  color: #1a1a1a;
  font-weight: 600;
}

/* =============== REPORT FEATURES =============== */
.report-features {
  margin: 16px 0;
  padding-left: 20px;
}
.report-features li {
  margin-bottom: 8px;
  font-size: 1.05rem;
  color: #555;
}

/* =============== PRICE TEXT =============== */
.price-text {
  font-size: 1.05rem;
  color: #555;
  font-weight: 500;
  margin: 16px 0;
}

/* =============== BUTTONS =============== */
.btn-primary,
.btn-secondary {
  display: block;
  width: fit-content;
  margin: 20px auto 12px;
  background: #7a8bff;
  color: white;
  border: none;
  padding: 14px 36px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(122, 139, 255, 0.2);
  text-decoration: none;
}
.btn-primary:hover,
.btn-secondary:hover {
  background: #5a67d8;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(122, 139, 255, 0.3);
}

.small-text {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
  text-align: center;
}

/* =============== STORY & EVIDENCE =============== */
.story-section,
.evidence-section {
  text-align: left;
  max-width: 650px;
  margin: 0 auto 50px;
}
.story-section h2,
.evidence-section h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.6rem;
  color: #1a1a1a;
  margin: 0 0 16px;
  font-weight: 600;
}
.story-section p,
.evidence-section p {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 16px;
}
.evidence-section ul {
  margin: 16px 0;
  padding-left: 20px;
}
.evidence-section li {
  margin-bottom: 8px;
}

/* =============== FINAL CTA =============== */
.final-cta {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}
.final-cta h2 {
  font-family: 'Figtree', sans-serif;
  font-size: 1.6rem;
  color: #1a1a1a;
  margin: 0 0 16px;
}
.final-cta p {
  font-size: 1.05rem;
  color: #555;
  margin: 0 0 16px;
}

/* =============== FOOTER =============== */
.footer {
  text-align: center;
  padding: 30px 20px;
  border-top: 1px solid #e5e7eb;
  color: #666;
  font-size: 0.95rem;
}
.footer-links {
  margin-top: 12px;
  font-size: 0.9rem;
}
.footer-links a {
  color: #5a67d8;
  text-decoration: none;
  margin: 0 8px;
}
.footer-links a:hover {
  text-decoration: underline;
}

/* ==================== TESTS GRID ==================== */
.tests-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.test-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #ddd;
}

.test-card .icon {
  width: 60px;
  height: 60px;
  background: #f0f4ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #4a6cf7;
  margin-bottom: 16px;
}

.test-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-weight: 600;
}

.test-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.test-card .cta-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #4a6cf7;
  font-weight: 500;
  text-decoration: none;
}

.test-card .cta-link:hover {
  text-decoration: underline;
}

/* ==================== INLINE ICONS ==================== */
.icon-inline {
  width: 20px;
  height: 20px;
  background: #f0f4ff;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #4a6cf7;
  margin-right: 12px;
  vertical-align: middle;
}

/* ==================== TESTS GRID ==================== */
.tests-section {
  padding: 60px 0;
  background: #f9f9f9;
}

.tests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.test-card {
  background: white;
  border-radius: 16px;
  padding: 24px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border: 1px solid #eee;
}

.test-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: #ddd;
}

.test-card h3 {
  font-size: 1.25rem;
  margin: 0 0 12px 0;
  color: #1a1a1a;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.test-card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.5;
  margin: 0 0 16px 0;
}

.test-card .cta-link {
  display: inline-block;
  font-size: 0.9rem;
  color: #4a6cf7;
  font-weight: 500;
  text-decoration: none;
}

.test-card .cta-link:hover {
  text-decoration: underline;
}

/* Final Loader Overlay - apare la Finish */
.final-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  gap: 15px;
  font-family: 'Figtree', sans-serif;
}

.final-loader .spinner {
  width: 60px;
  height: 60px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.final-loader p {
  font-size: 1.3em;
  color: #333;
  margin: 0;
}

#loader-progress {
  font-size: 2.5em;
  font-weight: 600;
  color: #2c7be5;
}