/* ==========================================================================
   PEREGRINAÇÃO À TERRA SANTA 2027 — ARIEL LAZARI
   Página de Captura Oficial — Estilo Minimalista Contemporâneo & Versão Light
   ========================================================================== */

:root {
  --bg-page: #F5F2EB;
  --bg-card: #FFFFFF;
  --bg-surface: #FBF9F5;
  --color-petrol: #084D59;
  --color-petrol-dark: #05333B;
  --color-petrol-light: #0C6575;
  --color-gold: #C59B27;
  --color-gold-light: #DFB748;
  --color-text: #1E293B;
  --color-text-muted: #52637A;
  --color-border: rgba(8, 77, 89, 0.12);
  --color-border-focus: #084D59;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1EBE5D;
  --font-serif: "Cinzel", "Crimson Pro", Georgia, serif;
  --font-sans: "Outfit", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max-w: 520px;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-page);
  color: var(--color-text);
  font-family: var(--font-sans);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  background-color: var(--bg-page);
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   LAYOUT & CONTAINER
   ========================================================================== */
.page-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.page-container {
  width: 100%;
  max-width: var(--container-max-w);
  background-color: var(--bg-surface);
  box-shadow: 0 20px 60px rgba(8, 77, 89, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* ==========================================================================
   HERO VISUAL (DIREÇÃO DE ARTE: 3 ARCOS SAGRADOS COM PROFUNDIDADE 3D)
   ========================================================================== */
.hero-media {
  position: relative;
  width: 100%;
  background-color: #FBF9F5;
  overflow: hidden;
  aspect-ratio: 1080 / 1030;
}

/* Camada 1: Arcos de Fundo (Jerusalém, Mar e Tel Aviv) */
.hero-arches-bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  position: relative;
  z-index: 1;
}

/* Camada 2: Rota e Avião Animados em SVG (Passando por trás do Ariel) */
.hero-flight-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.flight-dashed-trail {
  stroke: #00A5C8;
  stroke-width: 3.5;
  stroke-dasharray: 12 12;
  stroke-linecap: round;
  animation: flight-dash-march 2.2s linear infinite;
  filter: drop-shadow(0 0 5px rgba(0, 165, 200, 0.4));
}

@keyframes flight-dash-march {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: -96; }
}

.airplane-marker {
  will-change: transform;
  filter: drop-shadow(0 2px 8px rgba(0, 165, 200, 0.5));
}

/* Camada 3: Ariel Lazari em Primeiro Plano com Recorte Transparente */
.hero-ariel-fg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
}

.hero-media__fade {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(251, 249, 245, 0) 0%, #FBF9F5 100%);
  pointer-events: none;
  z-index: 4;
}

/* ==========================================================================
   CONTEÚDO DA PÁGINA (COPY RIGOROSA DO GOOGLE DOC)
   ========================================================================== */
.content-section {
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 3;
  text-align: center;
}

.headline {
  font-family: var(--font-serif);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--color-petrol);
  letter-spacing: -0.01em;
  text-align: center;
}

.lead-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  font-weight: 400;
  text-align: center;
}

/* ==========================================================================
   CARD DO FORMULÁRIO DE CAPTURA
   ========================================================================== */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 12px 32px rgba(8, 77, 89, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  margin-top: 8px;
  text-align: center;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--color-petrol);
  margin-bottom: 8px;
  text-align: center;
}

.form-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--color-text-muted);
  margin-bottom: 20px;
  text-align: center;
}

.capture-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field-group {
  position: relative;
  display: flex;
  flex-direction: column;
}

.field-input {
  width: 100%;
  height: 52px;
  padding: 0 16px 0 46px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--color-text);
  background: #FAFAF9;
  border: 1.5px solid rgba(8, 77, 89, 0.16);
  border-radius: 10px;
  outline: none;
  transition: all 0.2s ease;
}

.field-input::placeholder {
  color: #94A3B8;
  font-weight: 400;
}

.field-input:focus {
  background: #FFFFFF;
  border-color: var(--color-petrol);
  box-shadow: 0 0 0 4px rgba(8, 77, 89, 0.1);
}

.field-input.is-invalid {
  border-color: #EF4444;
  background: #FEF2F2;
}

.field-icon {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-petrol);
  opacity: 0.7;
  pointer-events: none;
  transition: opacity 0.2s;
}

.field-input:focus + .field-icon {
  opacity: 1;
}

.form-msg {
  font-size: 12.5px;
  color: #EF4444;
  min-height: 16px;
  line-height: 1.3;
  text-align: center;
}

.form-msg.is-ok {
  color: #10B981;
}

/* ==========================================================================
   BOTÃO DE ENVIO (ALTA CONVERSÃO)
   ========================================================================== */
.cta-submit-btn {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #084D59 0%, #05333B 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(8, 77, 89, 0.32);
  transition: all 0.25s var(--ease-spring);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  animation: cta-pulse 3.5s infinite ease-in-out;
}

@keyframes cta-pulse {
  0%, 100% {
    box-shadow: 0 6px 18px rgba(8, 77, 89, 0.32);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 24px rgba(8, 77, 89, 0.5), 0 0 12px rgba(197, 155, 39, 0.35);
    transform: scale(1.015);
  }
}

.cta-submit-btn:hover {
  background: linear-gradient(135deg, #0A5E6D 0%, #084D59 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 24px rgba(8, 77, 89, 0.45);
}

.cta-submit-btn:active {
  transform: translateY(1px) scale(0.985);
}

.cta-submit-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: translateX(-100%);
  animation: btn-shine 3.5s infinite;
}

@keyframes btn-shine {
  0% { transform: translateX(-100%); }
  25%, 100% { transform: translateX(100%); }
}

.cta-submit-btn.is-loading {
  pointer-events: none;
  opacity: 0.85;
}

.cta-submit-btn.is-loading .btn-text {
  display: none;
}

.cta-submit-btn.is-loading .btn-spinner {
  display: inline-block;
}

.btn-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==========================================================================
   PÁGINA DE CONFIRMAÇÃO (ESTILOS ESPECÍFICOS)
   ========================================================================== */
.confirm-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8, 77, 89, 0.08);
  border: 2px solid var(--color-petrol);
  color: var(--color-petrol);
  margin: 0 auto 8px;
  align-self: center;
}

.confirm-badge svg {
  width: 26px;
  height: 26px;
}

.step-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gold);
  text-align: center;
}

.whatsapp-cta-btn {
  width: 100%;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #25D366 0%, #1EBE5D 100%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all 0.25s var(--ease-spring);
  animation: whatsapp-pulse 3s infinite ease-in-out;
}

@keyframes whatsapp-pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 8px 26px rgba(37, 211, 102, 0.55), 0 0 14px rgba(37, 211, 102, 0.4);
    transform: scale(1.02);
  }
}

.whatsapp-cta-btn:hover {
  background: linear-gradient(135deg, #2EE06E 0%, #25D366 100%);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 26px rgba(37, 211, 102, 0.48);
}

.whatsapp-cta-btn svg {
  width: 22px;
  height: 22px;
}

.closing-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
  text-align: center;
}

.closing-salutation {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-petrol);
  margin-top: 4px;
  text-align: center;
}

/* ==========================================================================
   FOOTER EDITORIAL
   ========================================================================== */
.site-footer {
  width: 100%;
  max-width: var(--container-max-w);
  padding: 24px 20px 28px;
  text-align: center;
  font-size: 11.5px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   ACCESSIBILITY & UTILITIES
   ========================================================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (min-width: 640px) {
  body {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .page-container {
    border-radius: 16px;
    border: 1px solid var(--color-border);
  }

  .headline {
    font-size: 28px;
  }
}
