/**
 * V5.2-FIXES.CSS
 * Correções pós-review #2:
 * 1. Scroll suave — remover overflow:hidden das seções, otimizar parallax
 * 2. Contraste: seção "Transformação" (section-video) e "Dra. Lari" (section-about)
 * 3. Formulário mobile compacto
 */

/* ============================================================
   1. SCROLL — REMOVER overflow:hidden DAS SEÇÕES
   ============================================================ */

/* O overflow:hidden em .section bloqueia o scroll e cria layout shift.
   Mantemos apenas overflow-x:hidden no body para evitar scroll horizontal. */
.section {
  overflow: visible !important;
}

/* Manter overflow:hidden apenas onde é necessário para efeitos visuais */
.hero,
.section-hero {
  overflow: hidden !important;
}

.transformation-card,
.testimonial-card,
.form-progress {
  overflow: hidden !important;
}

/* Parallax: garantir que não crie contexto de stacking que trava scroll */
.parallax-bg {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Remover position:fixed desnecessário que pode interferir no scroll */
html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  overflow-y: auto !important;
}

/* ============================================================
   2. CONTRASTE — SEÇÃO "A TRANSFORMAÇÃO QUE DEU ORIGEM"
   ============================================================ */

.section-video .section-title,
.section-video .section-text,
.section-video .video-section-header h2,
.section-video .video-section-header p,
.video-section-header .section-title,
.video-section-header p {
  color: #1a1a1a !important;
}

/* ============================================================
   3. CONTRASTE — SEÇÃO "CONHEÇA A DRA. LARI FALCHI REIS"
   ============================================================ */

.section-about .section-title,
.section-about .about-credentials,
.section-about p,
.section-about .about-text p,
.about-text .section-title,
.about-text p,
.about-credentials {
  color: #1a1a1a !important;
}

/* ============================================================
   4. FORMULÁRIO MOBILE — COMPACTO E CABE NA TELA
   ============================================================ */

@media (max-width: 768px) {
  /* Reduzir padding do container do formulário */
  .section-form {
    padding: 2rem 0 !important;
  }

  .form-progressive {
    padding: 1.25rem 1rem !important;
    border-radius: 16px !important;
  }

  /* Título do step menor */
  .form-step-title {
    font-size: 1.1rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.3 !important;
  }

  /* Intro do step menor */
  .form-step-intro {
    font-size: 0.875rem !important;
    margin-bottom: 0.875rem !important;
    line-height: 1.4 !important;
  }

  /* Opções de radio compactas */
  .form-option {
    padding: 0.7rem 1rem !important;
    min-height: 44px !important;
  }

  .form-option-text {
    font-size: 0.9rem !important;
  }

  /* Checkboxes compactos */
  .form-checkbox {
    padding: 0.7rem 1rem !important;
    min-height: 44px !important;
  }

  .form-checkbox-text {
    font-size: 0.9rem !important;
  }

  /* Grid de checkboxes */
  .form-checkboxes {
    gap: 0.5rem !important;
  }

  /* Grid de opções */
  .form-options {
    gap: 0.5rem !important;
  }

  /* Inputs compactos */
  .form-input {
    padding: 0.7rem 1rem !important;
    font-size: 0.95rem !important;
  }

  /* Botões de navegação */
  .form-navigation {
    margin-top: 1rem !important;
    gap: 0.5rem !important;
  }

  #btn-next, #btn-prev {
    padding: 0.8rem 1.25rem !important;
    font-size: 0.95rem !important;
  }

  /* Progress bar */
  .form-progress {
    margin-bottom: 1rem !important;
  }

  /* Steps dots */
  .form-steps-dots {
    margin-bottom: 0.75rem !important;
    gap: 0.35rem !important;
  }

  .step-dot {
    width: 8px !important;
    height: 8px !important;
  }

  /* Contador de steps */
  .form-step-counter {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }

  /* Labels */
  .form-label {
    font-size: 0.875rem !important;
    margin-bottom: 0.35rem !important;
  }

  /* Nota de segurança */
  #form-security-note {
    font-size: 0.8rem !important;
    padding: 0.5rem !important;
  }
}

@media (max-width: 390px) {
  /* Telas muito pequenas (iPhone SE, etc.) */
  .form-progressive {
    padding: 1rem 0.875rem !important;
    margin: 0 0.25rem !important;
  }

  .form-step-title {
    font-size: 1rem !important;
  }

  .form-option,
  .form-checkbox {
    padding: 0.6rem 0.875rem !important;
  }
}

/* ============================================================
   5. FORMULARIO MOBILE — ALTURA MAXIMA E SCROLL INTERNO
   ============================================================ */

/* Garantir que o formulário nunca ultrapasse a viewport */
@media (max-width: 768px) {
  .form-progressive {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Cada step deve caber na tela sem scroll interno */
  .form-step.active {
    display: flex !important;
    flex-direction: column !important;
  }

  /* Reduzir padding da seção para dar mais espaço ao form */
  .section-form .container {
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }

  /* Intro acima do form menor */
  .form-intro {
    margin-bottom: 1rem !important;
  }

  .form-intro .section-title {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
  }

  .form-intro .section-text {
    font-size: 0.875rem !important;
    margin-bottom: 0 !important;
  }

  /* Margem do formulário */
  .form-progressive {
    margin: 0 !important;
  }
}
