/* ============================================================
   Brasileiros nos EUA — Texas
   Paleta: #0B1E3A (navy) · #00A859 (verde CTA) · #FFC72C (ouro) · #F7F8FA (neutro)
   Mobile-first — tráfego 85%+ mobile (Instagram / WhatsApp)
   ============================================================ */

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

:root {
  --navy:      #0B1E3A;
  --navy2:     #152d50;
  --green:     #00A859;
  --green2:    #008F4A;
  --gold:      #FFC72C;
  --state-red: #BF0A30;   /* vermelho bandeira do Texas / EUA */
  --state-red2:#99071F;
  --light:     #F7F8FA;
  --white:     #FFFFFF;
  --text:      #1A2B3C;
  --muted:     #5A7090;
  --border:    #E0E8F0;
  --shadow:    0 4px 24px rgba(11,30,58,.10);
  --radius:    16px;
  --radius-sm: 12px;
}

/* Faixa da Bandeira do Texas no topo (azul | branco | vermelho) */
body::before {
  content: '';
  display: block;
  height: 12px;
  background: linear-gradient(to right,
    var(--navy) 0%, var(--navy) 33.3%,
    var(--white) 33.3%, var(--white) 66.6%,
    var(--state-red) 66.6%, var(--state-red) 100%
  );
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
body { padding-top: 12px; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

/* TYPOGRAPHY */
h1, h2, h3 {
  font-family: 'Poppins', system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 800;
}
h1 { font-size: clamp(2rem, 6vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.15rem; font-weight: 700; }

/* BUTTONS */
.btn-primary, .btn-secondary, .btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s, background .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,168,89,.3);
}
.btn-primary:hover, .btn-primary:focus { background: var(--green2); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,168,89,.35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}
.btn-secondary:hover { background: rgba(0,168,89,.06); }

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  font-size: 1.1rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn-whatsapp:hover { background: #1fba5a; transform: translateY(-2px); }

.btn-full { width: 100%; }

/* ========================
   HERO
   ======================== */
.hero {
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 80% 50%, rgba(0,168,89,.08) 0%, transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%);
  color: var(--white);
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}

/* Estrela solitária do Texas — decorativa, branca */
.hero::before {
  content: '★';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 320px;
  color: rgba(255,255,255,.06);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}


/* Imagem hero (quando disponível) */
.hero.has-image {
  background-size: cover;
  background-position: center;
}
.hero.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(11,30,58,.90) 50%, rgba(11,30,58,.60));
  pointer-events: none;
}
.hero.has-image .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(191,10,48,.15);
  border: 1px solid rgba(191,10,48,.35);
  color: #ff6b80;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: .02em;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

.hero h1 span { color: var(--green); }
.hero h1 .texas { color: var(--state-red); }   /* "Texas" em vermelho */

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.80);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.hero-social {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.55);
  font-size: .85rem;
  margin-top: 8px;
}
.hero-social a {
  color: rgba(255,255,255,.80);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ========================
   COMO FUNCIONA
   ======================== */
.como-funciona {
  background: var(--light);
  padding: 64px 0;
}

.section-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.como-funciona h2, .para-quem h2, .credibilidade h2,
.prova-social h2, .faq h2 { margin-bottom: 40px; }

.passos {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}
.passos::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 48px;
  width: 2px;
  height: calc(100% - 96px);
  background: var(--border);
}

.passo {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
}
.passo-num {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.2rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.passo-num.active { background: var(--green); }

.passo-texto h3 { margin-bottom: 4px; font-size: 1.05rem; }
.passo-texto p { color: var(--muted); font-size: .95rem; }

/* ========================
   PARA QUEM É
   ======================== */
.para-quem {
  background: var(--white);
  padding: 64px 0;
}

.perfis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.perfil-card {
  background: var(--light);
  border-radius: var(--radius);
  padding: 20px 16px;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s;
}
.perfil-card:hover { border-color: var(--green); transform: translateY(-2px); }

.perfil-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  line-height: 1;
}
.perfil-card h3 { font-size: .95rem; color: var(--navy); margin-bottom: 4px; }
.perfil-card p  { font-size: .82rem; color: var(--muted); line-height: 1.4; }

/* ========================
   FORMULÁRIO MULTI-STEP
   ======================== */
.formulario {
  background: var(--navy);
  padding: 64px 0;
}

.formulario > .container > h2 {
  color: var(--white);
  text-align: center;
  margin-bottom: 8px;
}
.formulario > .container > .section-label { text-align: center; }
.form-intro {
  color: rgba(255,255,255,.70);
  text-align: center;
  margin-bottom: 32px;
  font-size: .95rem;
}

.form-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 48px rgba(0,0,0,.25);
}

/* Progresso */
.progress-header {
  padding: 20px 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.progress-label {
  font-size: .82rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}
.progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  flex: 1;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), #00c96a);
  border-radius: 100px;
  transition: width .4s ease;
}

/* Steps */
.form-step {
  padding: 24px 24px 28px;
  display: none;
}
.form-step.active { display: block; }

.step-title { font-size: 1.2rem; color: var(--navy); margin-bottom: 4px; }
.step-subtitle { color: var(--muted); font-size: .88rem; margin-bottom: 24px; }

/* Form fields */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.field label .req { color: var(--green); margin-left: 2px; }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .2s;
  outline: none;
  font-family: inherit;
}
.field input:focus { border-color: var(--green); }
.field input.error { border-color: #E53935; }
.field .field-error { color: #E53935; font-size: .78rem; margin-top: 4px; display: none; }
.field input.error + .field-error { display: block; }

/* Phone combo — seletor de país + número */
.phone-combo {
  display: flex;
  gap: 0;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color .2s;
}
.phone-combo:focus-within { border-color: var(--green); }
.phone-combo.error { border-color: #E53935; }
.select-pais {
  flex-shrink: 0;
  height: 48px;
  padding: 0 10px;
  border: none;
  border-right: 2px solid var(--border);
  background: var(--light);
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A7090' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 26px;
}
.phone-combo input[type="tel"] {
  flex: 1;
  height: 48px;
  padding: 0 14px;
  border: none;
  font-size: .95rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  font-family: inherit;
  min-width: 0;
}
.phone-combo + .field-error { display: none; }
.phone-combo.error + .field-error { display: block; }

/* Radio situação */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.radio-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .2s, background .2s;
  font-size: .92rem;
}
.radio-option:hover { border-color: var(--green); background: rgba(0,168,89,.04); }
.radio-option input[type="radio"] { accent-color: var(--green); width: 18px; height: 18px; flex-shrink: 0; }
.radio-option.selected { border-color: var(--green); background: rgba(0,168,89,.06); font-weight: 600; }

/* Chips */
.chips-label {
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.chips-counter {
  font-weight: 700;
  color: var(--green);
}

.chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.chip {
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chip:hover { border-color: var(--green); color: var(--green); }
.chip.selected {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}
.chip.selected::before { content: '✓ '; font-size: .75rem; }
.chip.disabled { opacity: .45; cursor: not-allowed; }

.outro-field {
  margin-top: 8px;
  display: none;
}
.outro-field.show { display: block; }
.outro-field input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--green);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
}

.step-skip {
  text-align: center;
  margin-top: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.step-skip button {
  background: none;
  border: none;
  color: var(--green);
  font-size: .82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-family: inherit;
}

.oferta-descricao { margin-top: 14px; }
.oferta-descricao label { font-size: .82rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 6px; }
.oferta-descricao input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.oferta-descricao input:focus { border-color: var(--green); }

/* Consentimento */
.consent-block {
  background: var(--light);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 20px;
}
.consent-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.consent-check input[type="checkbox"] {
  accent-color: var(--green);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.consent-text {
  font-size: .85rem;
  color: var(--text);
  line-height: 1.5;
}

.submit-note {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  margin-top: 12px;
}
.submit-note a { color: var(--muted); text-decoration: underline; }

/* Nav botões dos steps */
.step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-back {
  background: none;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-size: .9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  min-height: 48px;
  transition: border-color .2s, color .2s;
}
.btn-back:hover { border-color: var(--navy); color: var(--navy); }

.btn-next, .btn-submit {
  background: var(--green);
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 28px;
  font-size: 1rem;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 700;
  color: var(--white);
  cursor: pointer;
  min-height: 52px;
  flex: 1;
  max-width: 280px;
  transition: background .2s, transform .15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-next:hover, .btn-submit:hover { background: var(--green2); transform: translateY(-1px); }
.btn-submit.loading { opacity: .8; pointer-events: none; }

.form-global-error {
  background: #FFF3F3;
  border: 1px solid #FFB3B3;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: .85rem;
  color: #C62828;
  margin-bottom: 16px;
  display: none;
}
.form-global-error.show { display: block; }

/* ========================
   CREDIBILIDADE (Quem está por trás)
   ======================== */
.credibilidade {
  background: var(--light);
  padding: 64px 0;
}

.credibilidade-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.anfitriao-foto {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--green);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--white);
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 800;
  flex-shrink: 0;
}
.anfitriao-foto img { width: 100%; height: 100%; object-fit: cover; }

.anfitriao-info h3 { font-size: 1.2rem; margin-bottom: 4px; }
.anfitriao-info .anfitriao-titulo {
  color: var(--green);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.anfitriao-info p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

.anfitriao-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
  flex-wrap: wrap;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 2px solid var(--border);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  transition: border-color .2s, color .2s;
}
.social-link:hover { border-color: var(--navy); color: var(--navy); }
.social-link .ig-icon { font-size: .95rem; }

/* ========================
   PROVA SOCIAL
   ======================== */
.prova-social {
  background: var(--navy);
  padding: 48px 0;
}

.prova-social h2 { color: var(--white); text-align: center; margin-bottom: 32px; }

.contadores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contador-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
}
.contador-num {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 4px;
}
.contador-label { color: rgba(255,255,255,.70); font-size: .85rem; }

/* ========================
   FAQ
   ======================== */
.faq {
  background: var(--white);
  padding: 64px 0;
}

.faq h2 { margin-bottom: 32px; }

.faq-list { display: flex; flex-direction: column; gap: 8px; }

.faq-item {
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  gap: 12px;
  -webkit-tap-highlight-color: transparent;
}
.faq-question:hover { color: var(--green); }
.faq-arrow {
  font-size: 1.2rem;
  transition: transform .25s;
  flex-shrink: 0;
  color: var(--green);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-item.open .faq-answer { max-height: 200px; }
.faq-answer p {
  padding: 0 20px 16px;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.65;
}

/* ========================
   FOOTER
   ======================== */
footer {
  background: var(--navy2);
  color: rgba(255,255,255,.60);
  padding: 40px 0;
  font-size: .82rem;
  text-align: center;
}
.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}
.footer-links a { color: rgba(255,255,255,.60); transition: color .2s; }
.footer-links a:hover { color: var(--green); }

.footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 20px;
}
.footer-socials a {
  color: rgba(255,255,255,.60);
  font-size: .82rem;
  border: 1px solid rgba(255,255,255,.15);
  padding: 4px 12px;
  border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.footer-socials a:hover { border-color: var(--green); color: var(--green); }

.footer-star {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 8px;
  display: block;
}

/* ========================
   STICKY CTA mobile (abaixo da dobra)
   ======================== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--navy);
  padding: 12px 20px;
  z-index: 100;
  border-top: 2px solid rgba(0,168,89,.3);
  display: none;
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
}
.sticky-cta.visible { display: block; }

/* ========================
   RESPONSIVO DESKTOP
   ======================== */
@media (min-width: 640px) {
  .hero-cta-group { flex-direction: row; align-items: center; }
  .credibilidade-card { flex-direction: row; text-align: left; align-items: flex-start; }
  .anfitriao-socials { justify-content: flex-start; }
  .passos::before { left: 27px; }
}

@media (min-width: 480px) {
  .perfis-grid { grid-template-columns: 1fr 1fr; }
}

/* Micro estado de loading */
@keyframes spin { to { transform: rotate(360deg); } }
.loading-icon {
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
