/* =========================================================================
   Intercâmbio Austrália — LP Webinário + Página de Obrigado
   Design system alinhado à LP comercial (mesmas cores, tokens e Open Sans),
   com uma linguagem editorial de campanha “ao vivo”.
   ========================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --c-black:   #1d1d1b;
  --c-blue:    #2e2e97;
  --c-lilac:   #760087;
  --c-white:   #ffffff;

  /* Vermelho oficial (da nova identidade — logo vermelho da campanha) */
  --brand-red:    #ff0000;
  --brand-red-90: #d50000;   /* hover / pressionado */
  --brand-red-70: #b80000;   /* estados mais escuros */
  --brand-red-10: #ffecec;   /* fundos suaves */

  --c-black-90: #2a2a28;
  --c-black-70: #4a4a48;
  --c-blue-90:  #26267e;
  --c-blue-70:  #4747b4;
  --c-blue-10:  #eeeefb;
  --c-lilac-90: #5f006e;
  --c-lilac-10: #f6ecf8;
  --c-cream:    #faf7f2;
  --c-line:     #e6e3dd;
  --c-muted:    #6c6a65;
  --c-live:     var(--brand-red);   /* mesmo vermelho da marca */

  --font-primary: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Arial, sans-serif;
  --font-body: var(--font-primary);

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;

  --container: 1180px;
  --container-narrow: 780px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(29,29,27,.06), 0 2px 6px rgba(29,29,27,.05);
  --shadow-md: 0 6px 20px rgba(29,29,27,.08), 0 2px 4px rgba(29,29,27,.06);
  --shadow-lg: 0 20px 60px rgba(29,29,27,.14);

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: 220ms;
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body,
button,
input,
select,
textarea {
  font-family: var(--font-primary);
}
body {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-black);
  overflow-x: hidden;   /* garante que o track do marquee nunca cause scroll horizontal */
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--brand-red);
  outline-offset: 2px;
  border-radius: 4px;
}
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--c-black); color: var(--c-white);
  padding: .75rem 1rem; z-index: 999; border-radius: 0 0 8px 8px;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout base ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}
.section-narrow { max-width: var(--container-narrow); margin: 0 auto; }
.center { text-align: center; }

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
}
.section-light { background: var(--c-white); color: var(--c-black); }
.section-dark  { background: var(--c-black); color: var(--c-white); }
.section-blue  { background: var(--c-blue);  color: var(--c-white); }
.section-lilac { background: var(--c-lilac); color: var(--c-white); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3rem); max-width: 780px; }

/* ---------- 4. Tipografia ---------- */
h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 var(--sp-4);
}
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--c-black-70);
  max-width: 62ch;
}
.lead-dark { color: rgba(255,255,255,.85); }

.text-accent { color: var(--c-lilac); }
.section-dark .text-accent,
.section-blue .text-accent,
.section-lilac .text-accent { color: #ffd7ff; }
/* Vermelho da campanha para destaque em fundos escuros com sombra sutil
   (evita se misturar com áreas claras da fotografia do hero) */
.hero .text-accent {
  color: var(--brand-red);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .55);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: var(--sp-3);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--c-blue-10);
}
.eyebrow-dark {
  color: #fff;
  background: rgba(255,255,255,.14);
}
.hero .eyebrow,
.cta-final .eyebrow,
.eyebrow-dark {
  background: rgba(255,255,255,.14);
  color: #fff;
}

/* Pulso “ao vivo” */
.live-pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-red);
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(255, 0, 0, .6);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, .55); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* ---------- 5. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: .95rem 1.4rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 1rem;
  border: 2px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-align: center;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }

/* CTA principal em vermelho oficial da campanha */
.btn-primary { background: var(--brand-red); color: var(--c-white); }
.btn-primary:hover { background: var(--brand-red-90); }
.btn-primary:active { background: var(--brand-red-70); }
.section-lilac .btn-primary { background: var(--c-white); color: var(--brand-red); }
.section-lilac .btn-primary:hover { background: var(--brand-red-10); color: var(--brand-red-70); }

.btn-ghost {
  background: transparent;
  color: currentColor;
  border-color: currentColor;
}
.btn-ghost:hover { background: rgba(29,29,27,.05); }
.section-dark .btn-ghost:hover { background: rgba(255,255,255,.08); }

.btn-lg { padding: 1.1rem 1.75rem; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn-header { padding: .65rem 1.15rem; font-size: .95rem; }

.btn-disabled,
.btn[aria-disabled="true"] {
  background: rgba(255,255,255,.16);
  color: rgba(255,255,255,.8);
  cursor: not-allowed;
  pointer-events: none;
  border: 1px dashed rgba(255,255,255,.35);
}

.btn-spinner {
  display: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.btn.loading .btn-spinner { display: block; }
.btn.loading .btn-label { opacity: 0; }
.btn.loading { position: relative; }
.btn.loading .btn-spinner { position: absolute; top: 50%; left: 50%; margin: -11px 0 0 -11px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 6. Barra fixa do evento ---------- */
.event-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--c-black) 0%, #221248 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.event-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: .6rem var(--sp-5);
  font-size: .85rem;
  flex-wrap: wrap;
  justify-content: center;
}
.event-bar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 12px var(--brand-red);
}
.event-bar-text strong { color: #fff; font-weight: 700; }
.event-bar-live {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 0, 0, .18);
  border: 1px solid rgba(255, 0, 0, .45);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffcccc;
}
.event-bar-bottom {
  position: static;
  border-top: 1px solid rgba(255,255,255,.1);
  border-bottom: none;
}

/* ---------- 7. Header (faixa branca removida — logo agora fica dentro da hero) ---------- */
.site-header { display: none; }
.header-inner { display: none; }
/* Logo maior — o badge Imersão é square, então altura ~= largura visual */
.brand img {
  width: clamp(52px, 5.8vw, 72px);
  height: auto;
  object-fit: contain;
  display: block;
}
.btn-header { margin-left: auto; }

/* ---------- 8. Hero + form ---------- */
.hero {
  position: relative;
  color: var(--c-white);
  isolation: isolate;
  padding: clamp(1.75rem, 3vw, 2.5rem) 0 clamp(2rem, 3vw, 2.75rem);
}

/* Bloco de marca: "Imersão Austrália" (principal) + "by Intercâmbio Austrália" (assinatura).
   Sem fundo, sem cápsula — logos oficiais direto sobre a hero. */
.hero-logo {
  display: flex;
  align-items: center;
  gap: 18px;
  align-self: flex-start;
  padding: 0;
  background: transparent;
  line-height: 0;
  text-decoration: none;
  color: #fff;
  z-index: 5;
}
.hero-logo { width: max-content; }
.hero-logo img { display: block; height: auto; max-width: none; object-fit: contain; }
.brand-main img { width: 96px; }
.brand-by {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid rgba(255, 255, 255, .28);
}
.brand-by-label {
  font-size: 12px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .72);
}
.brand-by img { width: 124px; }

/* Desktop 960–1539: bloco acima do Método PCE (sem espaço lateral seguro) */
@media (min-width: 960px) and (max-width: 1539px) {
  .hero-logo { margin: -14px 0 14px; }
}
/* Desktop ≥ 1540: bloco na margem esquerda, alinhado ao topo do conteúdo */
@media (min-width: 1540px) {
  .hero-logo {
    position: absolute;
    top: 0;
    right: calc(100% + clamp(40px, 4vw, 72px));
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .brand-main img { width: 112px; }
  .brand-by { padding-left: 0; border-left: 0; }
  .brand-by img { width: 136px; }
}
/* Mobile/tablet (≤ 959): canto superior esquerdo, assinatura empilhada abaixo */
@media (max-width: 959px) {
  .hero-logo {
    position: absolute;
    top: 12px;
    left: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }
  .brand-main img { width: 66px; }
  .brand-by { padding-left: 0; border-left: 0; gap: 3px; }
  .brand-by-label { font-size: 10px; }
  .brand-by img { width: 96px; }
}
/* Telas estreitas: assinatura um pouco menor para não encostar no cabelo da Sheyla */
@media (max-width: 380px) {
  .hero-logo { left: 14px; }
  .brand-main img { width: 62px; }
  .brand-by img { width: 84px; }
}
/* Foto de Sydney (Opera House + Harbour Bridge) com overlay editorial */
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden;
  background-color: #0a0a1a;  /* fallback antes da imagem carregar */
  background-image:
    linear-gradient(90deg,
      rgba(9, 10, 28, 0.96) 0%,
      rgba(17, 10, 42, 0.86) 48%,
      rgba(38, 5, 55, 0.62) 100%
    ),
    url("assets/sydney-harbour-hero.webp");
  background-size: cover;
  background-position: center 58%;  /* desktop: mantém Opera + Bridge à mostra */
  background-repeat: no-repeat;
}
/* Fallback JPEG para navegadores sem suporte a WebP (raro em 2026) */
@supports not (background-image: url("data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=")) {
  .hero-bg {
    background-image:
      linear-gradient(90deg,
        rgba(9, 10, 28, 0.94) 0%,
        rgba(17, 10, 42, 0.84) 48%,
        rgba(38, 5, 55, 0.62) 100%
      ),
      url("assets/sydney-harbour-hero.jpg");
  }
}
/* Mobile: prioriza Opera House e overlay mais uniforme p/ garantir leitura */
@media (max-width: 767px) {
  .hero-bg {
    background-position: 30% center;
    background-image:
      linear-gradient(180deg,
        rgba(9, 10, 28, 0.90) 0%,
        rgba(17, 10, 42, 0.86) 45%,
        rgba(29, 29, 27, 0.92) 100%
      ),
      url("assets/sydney-harbour-hero.webp");
  }
}
/* Elementos decorativos removidos: a foto substitui o efeito de fundo abstrato. */
.hero-bg::after,
.hero-orbit { display: none; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
}
@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    min-height: min(760px, calc(100dvh - 44px));
  }
}
/* Método PCE — menor no desktop para não competir com o resto */
.hero-method-block {
  padding: .28rem .28rem .28rem .75rem;
  gap: .5rem;
}
.hero-method-badge { padding: .3rem .7rem; font-size: .74rem; }
.hero-method-pillars { font-size: .78rem; }

/* Método PCE — bloco de destaque acima da headline */
.hero-method-block {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  flex-wrap: wrap;
  padding: .35rem .35rem .35rem .95rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  margin-bottom: 0;
}
.hero-method-badge {
  display: inline-block;
  padding: .35rem .85rem;
  background: var(--brand-red);
  color: #fff;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .06em;
  white-space: nowrap;
}
.hero-method-pillars {
  color: #fff;
  font-weight: 500;
  font-size: .88rem;
  letter-spacing: .04em;
  padding-right: .5rem;
  white-space: nowrap;
}
/* Mobile: força uma única linha (badge + pilares) */
@media (max-width: 959px) {
  .hero-method-block {
    flex-wrap: nowrap;
    max-width: 100%;
    padding: .28rem .28rem .28rem .55rem;
    gap: .45rem;
  }
  .hero-method-badge {
    padding: .3rem .65rem;
    font-size: .72rem;
    letter-spacing: .04em;
  }
  .hero-method-pillars {
    font-size: .74rem;
    letter-spacing: .02em;
    padding-right: .35rem;
  }
  .hero-method-pillars .dot-sep { margin: 0 .12em; }
}
.dot-sep { color: var(--brand-red); font-weight: 700; margin: 0 .2em; }

/* Datas + info online — cápsulas compactas */
.hero-info-schedule {
  gap: .55rem !important;
  margin: .65rem 0 .85rem !important;
}
.hero-schedule {
  display: inline-flex !important;
  align-items: center;
  gap: .45rem !important;
  padding: .38rem .75rem !important;
  font-size: .86rem;
}
.hero-schedule-label { font-size: .68rem !important; padding: 1px 6px !important; }
.hero-online {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin: 0 0 .5rem;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}
.hero-online svg { color: #ffd7ff; }

/* Bandeiras SVG — usadas em vários lugares */
.flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
  vertical-align: middle;
  margin-right: .1rem;
}
.flag svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  overflow: hidden;
}
@media (max-width: 767px) { .flag { width: 20px; } }

.hero-schedule-label { color: var(--brand-red) !important; }

.hero-copy .eyebrow { align-self: flex-start; }
.hero h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.5rem);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: .65rem 0 .65rem;
  text-wrap: balance;
  font-weight: 700;
}
@media (min-width: 1280px) {
  .hero h1 { font-size: clamp(1.95rem, 2.4vw, 2.6rem); }
}
@media (max-width: 767px) {
  .hero h1 {
    font-size: clamp(22px, 6vw, 26px);
    line-height: 1.02;
    margin: .35rem 0 .5rem;
    letter-spacing: -.025em;
    font-weight: 700;
  }
}
.hero-sub {
  font-size: clamp(.9rem, 1.05vw, 1rem);
  line-height: 1.45;
  color: rgba(255,255,255,.88);
  max-width: 540px;
  margin: 0 0 .85rem;
}
@media (max-width: 599px) {
  .hero-sub {
    font-size: 14px;
    line-height: 1.35;
    margin: 0 0 .55rem;
  }
}
.hero-info {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  color: rgba(255,255,255,.9);
}
.hero-info li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: .95rem;
  padding: .45rem .85rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
}
.hero-info svg { color: #ffd7ff; }

/* Método PCE — badge integrado ao hero */
.hero-method {
  display: inline-block;
  margin: 0;
  padding: .55rem 1rem;
  background: rgba(255, 0, 0, .16);
  border: 1px solid rgba(255, 0, 0, .40);
  border-radius: var(--radius-pill);
  color: #ffdada;
  font-size: .95rem;
  font-weight: 500;
}
.hero-method strong { color: #fff; font-weight: 800; }

/* Horários por país no hero */
.hero-schedule {
  display: inline-flex !important;
  align-items: center;
  gap: var(--sp-3) !important;
  padding: .55rem 1rem !important;
}
.hero-schedule-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  padding: 2px 8px;
  background: rgba(255, 0, 0, .18);
  border-radius: var(--radius-pill);
}
.hero-schedule-value { color: #fff; font-weight: 500; }
.hero-schedule-value strong { color: #fff; font-weight: 800; }
.hero-schedule-sep { color: rgba(255,255,255,.5); margin: 0 4px; }

/* Foto da Sheyla — presença dominante à direita da hero (desktop)
   e topo da hero (mobile). Ancorada na base, com máscara em degradê
   para eliminar o corte reto e integrar ao fundo. */
.hero-photo {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 460px;
}
.hero-photo-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: bottom center;
  position: relative;
  z-index: 2;
  filter: drop-shadow(-8px 16px 36px rgba(0, 0, 0, .55));
  /* Máscara em degradê na base — elimina o corte reto */
  -webkit-mask-image: linear-gradient(to bottom,
    #000 0%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom,
    #000 0%, #000 88%, transparent 100%);
}
.hero-photo-glow {
  position: absolute;
  inset: auto 0 -4% 0;
  height: 78%;
  background:
    radial-gradient(60% 55% at 55% 55%, rgba(255, 0, 0, .38), transparent 66%),
    radial-gradient(80% 70% at 55% 100%, rgba(118, 0, 135, .58), transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

/* DESKTOP (≥ 960 px): foto absoluta e grande, ancorada na base do hero */
@media (min-width: 960px) {
  .hero { position: relative; }
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .78fr);
    align-items: center;
    min-height: 640px;
  }
  .hero-copy { position: relative; z-index: 3; }
  .hero-photo {
    position: absolute;
    right: clamp(0px, 2vw, 3rem);
    bottom: 0;
    top: 0;
    width: clamp(440px, 44vw, 720px);
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    /* Reseta explicitamente valores mobile que não devem vazar aqui */
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0;
    overflow: visible;
  }
  .hero-photo picture {
    display: block;
    height: 92%;
    width: auto;
    max-width: 100%;
  }
  .hero-photo-img {
    display: block;
    height: 100%;
    width: auto;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: auto;
    object-fit: contain;
    object-position: bottom center;
    /* Máscara suave apenas na base (desktop original) */
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 88%, transparent 100%);
  }
}

/* MOBILE (< 960 px): hero compacta pra caber cabeçalho + form na primeira dobra.
   Orçamento vertical seguindo referência: foto 170–200 px, promessa ~150 px,
   sub 3–4 linhas, cards compactos, formulário logo em seguida. */
@media (max-width: 959px) {
  .hero {
    padding: 0 0 .75rem;
    padding-left: clamp(18px, 5vw, 22px);
    padding-right: clamp(18px, 5vw, 22px);
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .hero-copy { order: 2; padding-top: .2rem; }
  .hero h1 {
    margin: .3rem 0 .4rem !important;
  }
  .hero-sub {
    font-size: 14px !important;
    line-height: 1.35 !important;
    margin: 0 0 .5rem !important;
  }
  /* Container exclusivo da foto — imagem contida, ancorada na base */
  .hero-photo {
    order: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: clamp(165px, 22svh, 187px);
    min-height: 160px;
    max-height: 190px;
    margin: 46px auto 0;               /* espaço para a logo respirar acima */
    padding: 0;
    overflow: visible;
    position: relative;
  }
  .hero-photo picture {
    display: block;
    height: 100%;
    width: auto;
  }
  .hero-photo-img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 72vw;
    max-height: 100%;
    aspect-ratio: 617 / 500;
    object-fit: contain;
    object-position: center bottom;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .38));
    /* Fade suave apenas nos últimos ~22% da imagem */
    -webkit-mask-image: linear-gradient(to bottom,
      #000 0%, #000 78%, rgba(0,0,0,.55) 92%, transparent 100%);
    mask-image: linear-gradient(to bottom,
      #000 0%, #000 78%, rgba(0,0,0,.55) 92%, transparent 100%);
  }
  .hero-photo-glow {
    inset: auto 0 -6px 0;
    height: 30%;
    filter: blur(24px);
    background:
      radial-gradient(60% 60% at 50% 65%, rgba(255, 0, 0, .28), transparent 70%),
      radial-gradient(75% 80% at 50% 100%, rgba(118, 0, 135, .52), transparent 74%);
  }
  /* Método PCE — 1 linha compacta */
  .hero-method-block {
    padding: .2rem .25rem .2rem .55rem;
    gap: .3rem;
    margin-top: 6px;
    margin-bottom: 0;
  }
  .hero-method-badge { padding: .18rem .5rem; font-size: .66rem; }
  .hero-method-pillars { font-size: .7rem; padding-right: .3rem; }
  /* Datas — cápsulas compactas */
  .hero-info-schedule {
    display: flex;
    flex-direction: column;
    gap: .35rem !important;
    margin: .35rem 0 .3rem !important;
  }
  .hero-schedule {
    padding: .3rem .55rem !important;
    font-size: .78rem;
    gap: .35rem !important;
  }
  .hero-schedule-label { font-size: .6rem !important; padding: 1px 5px !important; }
  .hero-online {
    font-size: .76rem;
    margin: 0 0 .55rem;
  }
  /* Formulário compacto — todo visível na primeira dobra em 390 e 430 */
  .signup-form.signup-form-inline {
    margin-top: .3rem !important;
    padding: 13px 14px 14px !important;
    gap: .3rem !important;
    border-radius: 14px;
  }
  .signup-form-inline .signup-form-head { padding-bottom: 0 !important; }
  .signup-form-inline .signup-badge {
    font-size: 10.5px;
    padding: 2px 7px;
    letter-spacing: .1em;
  }
  .signup-form-inline .signup-form-head h2 {
    font-size: 16px !important;
    margin: 4px 0 0 !important;
    line-height: 1.2;
  }
  .signup-fields { gap: 7px !important; }
  .signup-form-inline .field { gap: 3px; }
  .signup-form-inline .field label {
    font-size: 11.5px;
    margin: 0;
    line-height: 1.2;
  }
  .signup-form-inline .field input {
    height: 42px !important;
    font-size: 16px !important;              /* impede zoom iOS ao focar */
    padding: 0 12px !important;
    border-radius: 10px;
  }
  .signup-form-inline .btn-lg {
    min-height: 46px !important;
    padding: 8px 16px !important;
    font-size: 14px !important;
  }
  .signup-form-inline .signup-microcopy {
    font-size: 11px !important;
    margin: 0 !important;
    line-height: 1.3;
  }
  /* Esconde o slot de erro quando vazio para compactar o formulário */
  .signup-form-inline .field .error:empty { display: none; }
}
/* Telas ≤ 480 px: microajustes */
@media (max-width: 480px) {
  .hero-photo {
    height: clamp(160px, 21svh, 178px);
    max-height: 182px !important;
  }
}
/* Telas altas (≥ 900 px de altura) mobile: reserva um pouco mais de altura da foto. */
@media (max-width: 959px) and (min-height: 900px) {
  .hero-photo {
    height: 185px !important;
    max-height: 185px !important;
    margin-top: 50px !important;
  }
  .hero h1 { margin: .2rem 0 .3rem !important; }
  .hero-sub { margin: 0 0 .35rem !important; }
  .hero-info-schedule { margin: .2rem 0 .15rem !important; }
  .hero-online { margin: 0 0 .2rem !important; }
  .signup-form.signup-form-inline { margin-top: .15rem !important; }
}
/* Telas médias (≤ 870 px de altura) — foto ligeiramente menor para caber o formulário */
@media (max-width: 959px) and (max-height: 870px) {
  .hero-photo { height: 160px !important; min-height: 158px !important; max-height: 162px !important; margin-top: 22px !important; }
  .hero h1 {
    font-size: clamp(22px, 5.7vw, 24px) !important;
    margin: .1rem 0 .25rem !important;
  }
  .hero-sub { margin: 0 0 .2rem !important; line-height: 1.3 !important; }
  .hero-info-schedule { margin: .1rem 0 .1rem !important; gap: 4px !important; }
  .hero-online { margin: 0 0 .1rem !important; }
  .signup-form.signup-form-inline {
    margin-top: 0 !important;
    padding: 10px 13px 11px !important;
    gap: 4px !important;
  }
  .signup-form-inline .signup-form-head h2 { font-size: 15px !important; margin: 3px 0 0 !important; }
  .signup-fields { gap: 6px !important; }
  .signup-form-inline .field input { height: 40px !important; }
  .signup-form-inline .btn-lg { min-height: 44px !important; padding: 7px 14px !important; }
  .signup-form-inline .signup-microcopy { display: none !important; }
}
/* Telas curtas (≤ 820 px) — foto ainda menor e ajustes finos */
@media (max-width: 959px) and (max-height: 820px) {
  .hero-photo {
    height: 152px !important;
    min-height: 152px !important;
    max-height: 152px !important;
    margin-top: 32px !important;
  }
  .hero-method-block { margin-top: 4px !important; }
  .hero h1 {
    font-size: clamp(21px, 5.5vw, 23px) !important;
    margin: .15rem 0 .25rem !important;
  }
  .hero-sub { margin: 0 0 .25rem !important; }
  .hero-info-schedule { margin: .15rem 0 .1rem !important; }
  .hero-online { margin: 0 0 .2rem !important; font-size: .72rem; }
  .hero-schedule { padding: .22rem .55rem !important; font-size: .74rem; }
  .signup-form.signup-form-inline {
    padding: 10px 12px 11px !important;
  }
  .signup-form-inline .signup-form-head h2 { font-size: 14.5px !important; }
  .signup-form-inline .field label { font-size: 11px !important; }
}

/* Formulário integrado à esquerda, tom escuro para casar com o hero */
.form-anchor { position: relative; top: -80px; display: block; height: 0; }
.signup-form.signup-form-inline {
  margin-top: .5rem;
  padding: .85rem 1rem 1rem;
  background: rgba(18, 18, 42, .58);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: grid;
  gap: .55rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}
.signup-form-inline .signup-form-head { text-align: left; padding-bottom: 2px; }
.signup-form-inline .signup-form-head h2 {
  font-size: 1rem;
  color: #fff;
  margin: .25rem 0 0;
  font-weight: 700;
  line-height: 1.15;
}
.signup-form-inline .signup-badge {
  font-size: .68rem;
  padding: 2px 8px;
  letter-spacing: .12em;
}
.signup-fields {
  display: grid;
  gap: .5rem;
}
.signup-form-inline .field { gap: 2px; }
.signup-form-inline .field label {
  color: #ffdada;
  font-size: .74rem;
  font-weight: 600;
  margin-bottom: 0;
}
.signup-form-inline .field input {
  background: rgba(255, 255, 255, .06);
  border: 1.5px solid rgba(255, 255, 255, .18);
  color: #fff;
  height: 50px;
  padding: 0 1rem;
  font-size: 16px;                       /* impede zoom iOS ao focar */
  border-radius: 12px;
}
.signup-form-inline .btn-lg {
  padding: .85rem 1.4rem;
  font-size: 1rem;
  min-height: 52px;
}
.signup-form-inline .signup-microcopy {
  font-size: .74rem;
  margin-top: -.15rem;
}
.signup-form-inline .field input::placeholder { color: rgba(255, 255, 255, .5); }
.signup-form-inline .field input:hover { border-color: rgba(255, 255, 255, .32); }
.signup-form-inline .field input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .22);
  background: rgba(255, 255, 255, .1);
}
.signup-form-inline .signup-microcopy { color: rgba(255, 255, 255, .7); }
.signup-form-inline .help { color: rgba(255, 255, 255, .55); font-weight: 400; }

/* Formulário legado (fora do hero, se ainda existir alguma referência) */
.hero-form-wrap { position: relative; }
.signup-form {
  background: #fff;
  color: var(--c-black);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: var(--sp-4);
}
.signup-form-head { text-align: center; }
.signup-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brand-red);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--brand-red-10);
  margin-bottom: var(--sp-2);
}
.signup-form-head h2 { font-size: 1.25rem; margin: 0 0 var(--sp-2); }
.signup-form-head p { font-size: .92rem; color: var(--c-muted); margin: 0; }
.signup-microcopy {
  font-size: .82rem;
  color: var(--c-muted);
  text-align: center;
  margin: 0;
}
/* Estado visual pós-envio (LP + obrigado) */
.signup-status {
  margin: 0;
  padding: .6rem .85rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  text-align: center;
}
.signup-status.is-success {
  background: rgba(80, 200, 120, .18);
  border: 1px solid rgba(80, 200, 120, .5);
  color: #d6ffe1;
}
.signup-status.is-error {
  background: rgba(255, 60, 90, .16);
  border: 1px solid rgba(255, 60, 90, .5);
  color: #ffcfd7;
}
/* Estado success do botão — verde-check no lugar do vermelho */
.btn.is-success {
  background: #1fb457 !important;
  color: #fff !important;
  border-color: transparent !important;
  cursor: default;
}
.btn.is-success:hover { transform: none; box-shadow: none; }

/* ---------- 9. Campos de formulário (compartilhado) ---------- */
.field { display: grid; gap: var(--sp-2); }
.field label,
.field-radio legend {
  font-weight: 600;
  font-size: .93rem;
  color: var(--c-black);
}
.field .help { color: var(--c-muted); font-weight: 400; font-size: .85rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  font: inherit;
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--c-black);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--c-blue-70); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-lilac);
  box-shadow: 0 0 0 3px rgba(118,0,135,.18);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23760087' d='M12 15.5 5.5 9l1.4-1.4 5.1 5.1 5.1-5.1L18.5 9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  padding-right: 2.5rem;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea {
  border-color: #b3006b;
  box-shadow: 0 0 0 3px rgba(179,0,107,.15);
}
.error {
  font-size: .82rem;
  color: #b3006b;
  min-height: 1em;
}

/* ---------- 10. Tags (temas da aula) ---------- */
.section-tags {
  padding: var(--sp-4) 0;
  background: var(--c-cream);
  border-bottom: 1px solid var(--c-line);
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: center;
  align-items: center;
}
.tag {
  padding: .35rem .85rem;
  border-radius: var(--radius-pill);
  background: #fff;
  border: 1px solid var(--c-line);
  color: var(--c-black-70);
  font-size: .85rem;
  font-weight: 600;
}

/* ---------- 11. O que você vai construir ---------- */
.learn-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px)  { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .learn-grid { grid-template-columns: repeat(4, 1fr); } }
.learn-card {
  position: relative;
  padding: 1.75rem 1.4rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.learn-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(118,0,135,.25);
}
.learn-num {
  display: inline-block;
  font-weight: 800;
  font-size: 1.6rem;
  background: linear-gradient(135deg, var(--brand-red) 0%, var(--c-lilac) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-2);
  letter-spacing: -.02em;
}
.learn-card h3 { margin-bottom: var(--sp-2); }
.learn-card p { color: var(--c-black-70); margin: 0; font-size: .95rem; }
.learn-card:hover { border-color: rgba(255,0,0,.28); }

/* ---------- 12. Frase de reforço — fundo com vermelho da campanha ---------- */
.reinforcement {
  padding-block: clamp(3rem, 6vw, 5rem);
  /* Substitui o azul chapado por uma composição vermelho→roxo→preto */
  background:
    radial-gradient(800px 400px at 15% 30%, rgba(255, 0, 0, .55), transparent 65%),
    radial-gradient(700px 400px at 90% 80%, rgba(118, 0, 135, .70), transparent 60%),
    linear-gradient(180deg, #4a0006 0%, #2d0033 100%);
  color: #fff;
}
.reinforcement-quote {
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin: 0;
  position: relative;
}
.quote-mark {
  font-size: 3rem;
  color: rgba(255,255,255,.35);
  vertical-align: -0.6rem;
  margin-right: .1rem;
  font-weight: 800;
}

/* ---------- 13. Fit list (essa aula é para você se) ---------- */
.fit-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .fit-grid { grid-template-columns: repeat(2, 1fr); } }
.fit-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--sp-4);
  align-items: start;
  padding: 1.4rem 1.3rem;
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
}
.fit-ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand-red), var(--c-lilac));
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.fit-card h3 { margin-bottom: var(--sp-1); }
.fit-card p { color: var(--c-black-70); margin: 0; font-size: .95rem; }

/* ---------- 14. Professora (Sheyla) ---------- */
.grid-professor {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) { .grid-professor { grid-template-columns: 1fr 1.25fr; } }

.professor-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(46,46,151,.6), transparent 60%),
    linear-gradient(160deg, #5f006e 0%, #2e2e97 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.professor-frame {
  width: 60%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  display: grid;
  place-items: center;
  padding: 12%;
}
.professor-frame img { width: 100%; opacity: .95; }

/* Foto retrato da Sheyla — substitui o painel do logo */
.professor-media.has-photo { padding: 0; }
.professor-media.has-photo > picture { position: absolute; inset: 0; display: block; }
.professor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;   /* rosto e ombros centralizados no recorte 4:5 */
  display: block;
  border-radius: var(--radius-lg);
}
.professor-media.has-photo::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    transparent 45%,
    rgba(46, 46, 151, .18) 75%,
    rgba(118, 0, 135, .35) 100%);
  pointer-events: none;
}
/* Selo com o ícone da marca sobre a foto da Sheyla */
.professor-badge-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1px solid rgba(255, 255, 255, .25);
  display: grid; place-items: center;
  padding: 8px;
  backdrop-filter: blur(4px);
}
.professor-badge-icon img { width: 100%; height: 100%; object-fit: contain; }
.professor-tag {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .4rem .8rem;
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.24);
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: .78rem;
  font-weight: 600;
}

.professor-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  padding: 1.5rem 1.4rem;
  border-radius: var(--radius-lg);
  color: #fff;
  margin-top: var(--sp-4);
}
.professor-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: var(--sp-2); }
.professor-role { color: rgba(255,255,255,.85); margin: 0 0 var(--sp-3); font-size: 1rem; }
.professor-card .professor-bio {
  color: rgba(255,255,255,.9);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 52ch;
  margin: 0;
  text-wrap: pretty;
}
.professor-card p { color: rgba(255,255,255,.8); }
.professor-handle {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-3);
  font-weight: 600;
}
.professor-handle a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. CTA final ---------- */
.cta-final { position: relative; overflow: hidden; }
.cta-final::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(118,0,135,.35), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(46,46,151,.35), transparent 60%);
  pointer-events: none;
}
.cta-final .container { position: relative; }
.cta-final h2 { color: #fff; }
.cta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
  margin: var(--sp-5) 0;
}
.cta-info-item {
  display: grid;
  gap: 4px;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-md);
  min-width: 180px;
}
.cta-info-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #ffd7ff;
}
.cta-info-value { color: #fff; font-weight: 600; }
.urgency-line {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin: var(--sp-4) 0 0;
}
.cta-final .signup-microcopy { color: rgba(255,255,255,.75); }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--c-black);
  color: rgba(255,255,255,.75);
  padding: var(--sp-6) 0;
}
.footer-inner {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1fr;
}
@media (min-width: 800px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: center; }
}
.footer-brand img { height: 36px; width: auto; margin-bottom: var(--sp-2); }
.footer-brand p { margin: 0; font-size: .9rem; }
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: #fff;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-pill);
  font-size: .9rem;
  transition: background var(--dur) var(--ease);
}
.footer-social a:hover { background: rgba(255,255,255,.12); }

/* =========================================================================
   PÁGINA DE OBRIGADO
   ========================================================================= */

.page-thanks main {
  padding: 0 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #12122a 0%, #1d1d1b 100%);
  color: #fff;
  min-height: calc(100vh - 42px);
}

/* Hero band da obrigado — foto de Sydney com overlay reforçado (contraste do título) */
.thanks-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4rem) var(--sp-5) clamp(5rem, 10vw, 8rem);
  text-align: center;
  min-height: 320px;
  background-color: #1a0a1a;
  background-image:
    /* Camada escura reforçada (~65–72%) com toque vinho/roxo, sem apagar a foto.
       Preserva Opera House e Harbour Bridge reconhecíveis. */
    linear-gradient(180deg,
      rgba(20,   4, 30, 0.66)  0%,
      rgba(46,   6, 55, 0.72) 40%,
      rgba(29,  10, 60, 0.88) 78%,
      rgba(18,  18, 42, 1.00) 100%
    ),
    url("assets/sydney-thanks-band.webp");
  background-size: cover;
  background-position: center 48%;
  background-repeat: no-repeat;
}
@media (max-width: 767px) {
  .thanks-hero {
    padding-block: clamp(2rem, 4vw, 3rem) clamp(4rem, 8vw, 6rem);
    background-position: 32% center;
    min-height: 300px;
    background-image:
      linear-gradient(180deg,
        rgba(20,  4, 30, 0.70)  0%,
        rgba(46,  6, 55, 0.78) 40%,
        rgba(18, 18, 42, 0.99) 100%
      ),
      url("assets/sydney-thanks-band.webp");
  }
}
.thanks-hero > * { position: relative; }

.page-thanks .steps {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--sp-5);
  display: grid;
  gap: var(--sp-6);
  /* Cards começam levemente sobrepostos à parte inferior da hero band */
  margin-top: clamp(-4.5rem, -6vw, -3rem);
  position: relative;
  z-index: 2;
}

/* Wrapper de 2 colunas (desktop) para os passos 1 e 2 */
.thanks-columns {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;              /* mobile e tablet estreito: empilhado */
}
@media (min-width: 900px) {
  .page-thanks .steps { max-width: 1180px; }
  .thanks-columns {
    grid-template-columns: minmax(0, 62%) minmax(0, 38%);  /* pesquisa 62% / WA 38% */
    gap: 28px;
    align-items: start;
  }
  /* Passo 2 fica sticky no desktop, sem sobrepor o cabeçalho fixo */
  .thanks-columns .step-2-col {
    position: sticky;
    top: calc(42px + 24px);
  }
  /* Seta discreta entre as colunas, só no desktop */
  .thanks-columns::before { content: none; }
}

/* Indicador de progressão sutil entre os passos */
.step-arrow {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.35);
  margin: calc(var(--sp-3) * -1) 0;
}
.step-arrow svg { display: block; }
@media (min-width: 900px) {
  .step-arrow { display: none; }
}
.thanks-header { text-align: center; }
.thanks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.thanks-h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: #fff;
  margin-bottom: var(--sp-3);
}
.thanks-h1 .name-highlight { color: #ffd7ff; }
.thanks-sub {
  color: rgba(255,255,255,.93);
  max-width: 60ch;
  margin: 0 auto;
}

/* Menção ao Método PCE — abaixo do subtítulo, sem competir com os cards */
.thanks-method {
  max-width: 60ch;
  margin: 1.25rem auto 0;
  padding: .6rem 1.1rem;
  background: rgba(255, 0, 0, .18);
  border: 1px solid rgba(255, 0, 0, .38);
  border-radius: var(--radius-pill);
  color: #ffdada;
  font-size: .95rem;
  text-align: center;
}
.thanks-method strong { color: #fff; font-weight: 800; }

/* Horários por país na página de obrigado */
.thanks-schedule {
  list-style: none;
  padding: 0;
  margin: 1rem auto 0;
  max-width: 60ch;
  display: flex;
  flex-wrap: wrap;                /* 1 linha desktop, 2 linhas mobile */
  justify-content: center;
  gap: var(--sp-3);
}
.thanks-schedule li {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: .5rem .95rem;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: .92rem;
}
.thanks-schedule-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-red);
  padding: 2px 8px;
  background: rgba(255, 0, 0, .22);
  border-radius: var(--radius-pill);
}
.thanks-schedule-value { font-weight: 500; }

.step {
  background: #17172e;                              /* sólido para cobrir a foto atrás */
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  position: relative;
  color: #fff;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.step-inactive {
  opacity: .55;
  filter: grayscale(.3);
}
.step-inactive * { pointer-events: none; }

.step-head {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--sp-4);
  row-gap: var(--sp-2);
  align-items: start;
  margin-bottom: var(--sp-5);
}
.step-head > div { min-width: 0; }
.step-head h2 { text-wrap: balance; }
/* Meta ("30 segundos" / "Obrigatório") em linha separada no mobile */
.step-meta {
  grid-column: 2;
  font-size: .74rem;
  color: rgba(255,255,255,.62);
  letter-spacing: .1em;
  margin-top: .25rem;
}
@media (min-width: 720px) {
  .step-head {
    grid-template-columns: auto 1fr auto;
    align-items: center;
  }
  .step-meta {
    grid-column: auto;
    margin-top: 0;
    text-align: right;
  }
}
.step-num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-red), var(--c-lilac));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(255, 0, 0, .18);
}
.step-head h2 { color: #fff; margin: 0; font-size: 1.35rem; }
.step-head .step-subtitle {
  color: rgba(255,255,255,.75);
  font-size: .9rem;
  margin-top: 2px;
}
/* .step-meta styles now handled by the new grid rules above (mobile-first) */

.step .field label,
.step .field-radio legend { color: #fff; }
.step .field input,
.step .field select,
.step .field textarea {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.24);
  color: #fff;
}
.step .field input::placeholder,
.step .field textarea::placeholder { color: rgba(255,255,255,.5); }
.step .field input:hover,
.step .field select:hover,
.step .field textarea:hover { border-color: rgba(255,255,255,.4); }
.step .field input:focus,
.step .field select:focus,
.step .field textarea:focus {
  border-color: #ffd7ff;
  box-shadow: 0 0 0 3px rgba(255,215,255,.24);
}
.step .field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23ffd7ff' d='M12 15.5 5.5 9l1.4-1.4 5.1 5.1 5.1-5.1L18.5 9z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px;
  background-color: rgba(255,255,255,.06);
  color-scheme: dark;
}
.step .field select option { color: var(--c-black); background: #fff; }
.step .error { color: #ff8fbc; }
.step .field.invalid input,
.step .field.invalid select,
.step .field.invalid textarea {
  border-color: #ff8fbc;
  box-shadow: 0 0 0 3px rgba(255,143,188,.2);
}

.survey-form { display: grid; gap: var(--sp-4); }

.step-success {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(80, 200, 120, .12);
  border: 1px solid rgba(80, 200, 120, .35);
  color: #d9ffe6;
  margin-top: var(--sp-4);
}
/* [hidden] tem que vencer o display: flex acima */
.step-success[hidden] { display: none !important; }
.step-success svg { color: #6ee7a4; flex-shrink: 0; }

/* Destaque do passo 2 depois que a pesquisa foi respondida */
.step.step-ready {
  border-color: rgba(80, 200, 120, .45);
  box-shadow: 0 0 0 3px rgba(80, 200, 120, .12);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.whatsapp-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 1.05rem 1.5rem;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #fff;
  font-weight: 700;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
  border: 2px solid transparent;
}
.whatsapp-cta:hover { transform: translateY(-1px); background: #1fb457; }
.whatsapp-cta.btn-disabled,
.whatsapp-cta[aria-disabled="true"] {
  background: transparent;
  color: rgba(255,255,255,.7);
  border: 2px dashed rgba(255,255,255,.35);
  cursor: not-allowed;
}
.whatsapp-warn {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
  margin-top: var(--sp-4);
  padding: .8rem 1rem;
  background: rgba(255,215,255,.08);
  border: 1px solid rgba(255,215,255,.28);
  border-radius: var(--radius-md);
  color: #ffe6ff;
  font-size: .9rem;
}
.whatsapp-warn svg { color: #ffd7ff; flex-shrink: 0; margin-top: 2px; }

/* ---------- 17. Barra de progresso (obrigado) ---------- */
.progress-block {
  max-width: 620px;
  margin: clamp(1rem, 2vw, 1.5rem) auto clamp(1rem, 2vw, 1.5rem);
  padding: 0 var(--sp-4);
  color: #fff;
  text-align: left;
}
.progress-labels {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .88);
  margin-bottom: .5rem;
}
.progress-label-right {
  color: var(--brand-red);
  font-weight: 700;
}
.progress-bar {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .18);
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35);
}
.progress-fill {
  display: block;
  height: 100%;
  width: 90%;               /* estado final */
  border-radius: inherit;
  background: linear-gradient(90deg,
    var(--brand-red-90) 0%,
    var(--brand-red) 55%,
    var(--c-lilac) 100%);
  box-shadow: 0 0 12px rgba(255, 0, 0, .55);
  transform-origin: left center;
  animation: progressGrow 1.2s cubic-bezier(.35, 0, .2, 1) both;
}
@keyframes progressGrow {
  from { width: 0%; opacity: .7; }
  to   { width: 90%; opacity: 1; }
}

/* ---------- 18. Faixa animada (marquee) da obrigado ---------- */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
/* =========================================================================
   MARQUEE — implementação única, reutilizável em 3 faixas.
   • JS mede a largura real do primeiro grupo e escreve em --marquee-distance.
   • A animação translada exatamente essa distância → loop 100% seamless.
   • Mask-image nas bordas evita percepção de palavras cortadas.
   ========================================================================= */
.event-marquee {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(90deg, #12061a 0%, #1a0620 50%, #12061a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.event-marquee--bottom { position: static; }

.event-marquee__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: eventMarqueeScroll var(--marquee-duration, 40s) linear infinite;
}
.event-marquee__group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
}
.event-marquee__pattern {
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  padding: .7rem 0;
}
.event-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  flex: 0 0 auto;
}
.event-marquee__item--live {
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 0, 0, .18);
  border: 1px solid rgba(255, 0, 0, .55);
  color: #ffcccc;
  font-weight: 700;
  letter-spacing: .12em;
}
.event-marquee__sep {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 1rem;
  flex: 0 0 auto;
  padding: 0 .1rem;
}
.event-marquee .flag { width: 20px; }

@keyframes eventMarqueeScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(calc(-1 * var(--marquee-distance, 100%)), 0, 0); }
}
@media (max-width: 767px) {
  .event-marquee__pattern { gap: 1rem; padding: .55rem 0; }
  .event-marquee__item { font-size: .74rem; letter-spacing: .08em; }
  .event-marquee .flag { width: 18px; }
  /* Remove completamente a faixa animada do topo no mobile
     — libera espaço vertical para hero. Rodapé preserva o marquee. */
  .event-marquee:not(.event-marquee--bottom) {
    display: none !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .event-marquee__track {
    animation: none !important;
    transform: none !important;
    justify-content: center;
    width: 100%;
  }
  .event-marquee__group + .event-marquee__group { display: none !important; }
}
.event-bar-marquee .event-bar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  box-shadow: 0 0 8px rgba(255, 0, 0, .8);
  flex-shrink: 0;
}
.event-bar-marquee .event-bar-live {
  border-color: rgba(255, 0, 0, .55);
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (max-width: 767px) {
  .event-bar-marquee .event-bar-track { animation-duration: 26s; }
  .event-bar-marquee .event-bar-item {
    gap: var(--sp-3);
    padding-right: 1.75rem;
    font-size: .76rem;
    letter-spacing: .1em;
  }
  .event-bar-marquee .event-bar-item:first-child { padding-left: 1.75rem; }
}

/* ---------- 19. Preferências do usuário ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .learn-card:hover, .whatsapp-cta:hover { transform: none; }
  .live-pulse { animation: none; box-shadow: 0 0 0 0 rgba(255, 0, 0, .4); }
  /* Progress bar: mostra direto em 90% sem animação */
  .progress-fill { width: 90%; opacity: 1; animation: none; }
  /* Marquee: estático e centralizado, sem repetir */
  .event-bar-marquee { text-align: center; }
  .event-bar-marquee .event-bar-track {
    animation: none;
    transform: none;
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
  }
  .event-bar-marquee .event-bar-item:nth-child(2) { display: none; }
}
