/* ============================================================
   captura.css — Página de Captura (Orçamento Gratuito)
   Design system: idêntico ao index.html / style.css
   ============================================================ */

/* ---------- VARIÁVEIS ---------- */
:root {
  --bg-primary:    #0a0c10;
  --bg-secondary:  #0f1218;
  --bg-card:       #141820;
  --bg-card-hover: #1a2030;
  --accent:        #00d4ff;
  --accent-2:      #7c3aed;
  --text-primary:  #f0f4ff;
  --text-secondary:#8a9ab5;
  --text-muted:    #4a5568;
  --whatsapp:      #25D366;
  --whatsapp-dark: #128C7E;
  --border:        rgba(255,255,255,0.07);
  --border-accent: rgba(0,212,255,0.3);
  --accent-glow:   rgba(0,212,255,0.15);
  --shadow-card:   0 4px 24px rgba(0,0,0,0.4);
  --accent-gradient: linear-gradient(135deg,#00d4ff 0%,#7c3aed 100%);
  --radius:   16px;
  --radius-sm: 8px;
  --max-w:    1100px;
  --transition: 0.25s ease;
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body:    'Helvetica Neue', Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 0;
}

/* ---------- CONTAINER ---------- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------- HEADER ---------- */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,12,16,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
#header.scrolled {
  box-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header-brand {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}
.header-back {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.header-back:hover { color: var(--accent); }
.header-back svg { flex-shrink: 0; }

/* ---------- MAIN LAYOUT ---------- */
main {
  padding-top: 60px; /* header height */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.captura-section {
  flex: 1;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}

/* Glow decorativo de fundo */
.captura-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: min(800px, 100vw);
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,212,255,0.06) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Grid de 2 colunas */
.captura-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ---------- COLUNA ESQUERDA ---------- */
.captura-info {
  padding-top: 8px;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--bg-primary);
  background: var(--accent);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.captura-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.captura-headline span {
  color: var(--accent);
}

.captura-sub {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Lista de benefícios */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}
.check-list li > span.check-icon {
  flex-shrink: 0;
  margin-top: 3px;
}
.check-list .check-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(0,212,255,0.12);
  border: 1px solid rgba(0,212,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.check-list .check-icon::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* Prova social */
.social-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}
.social-proof-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}
.social-proof p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.social-proof strong {
  color: var(--text-primary);
}

/* ---------- CARD DO FORMULÁRIO ---------- */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: 0 0 40px rgba(0,212,255,0.08), var(--shadow-card);
  position: relative;
  overflow: hidden;
}
.form-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent-gradient);
}

.form-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}
.form-card-sub {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* Campos do formulário */
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.input {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem; /* mínimo 16px — evita zoom automático no iOS */
  padding: 12px 16px;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.input::placeholder { color: var(--text-muted); }
.input:focus {
  border-color: var(--accent);
  background: rgba(0,212,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}
select.input {
  cursor: pointer;
  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='%238a9ab5' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
select.input option {
  background: var(--bg-card);
  color: var(--text-primary);
}

/* Botão submit */
.btn-submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 24px;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  margin-top: 8px;
  line-height: 1;
}
.btn-submit:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}
.btn-submit:active {
  transform: translateY(0);
}

/* Mensagens de erro de validação */
.field-error {
  display: none;
  font-size: 0.78rem;
  color: #ff5050;
  margin-top: 6px;
  align-items: center;
  gap: 5px;
}
.field-error.visible {
  display: flex;
}
.field-error::before {
  content: '⚠';
  flex-shrink: 0;
}
.input.invalid {
  border-color: #ff5050;
  box-shadow: 0 0 0 3px rgba(255,80,80,0.1);
}
.input.invalid:focus {
  border-color: #ff5050;
  box-shadow: 0 0 0 3px rgba(255,80,80,0.15);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.form-note svg { flex-shrink: 0; }

/* ---------- TELA DE AGRADECIMENTO ---------- */
.obrigado-wrapper {
  display: none;
  text-align: center;
  padding: 8px 0 16px;
  animation: fadeInUp 0.5s ease forwards;
}
.obrigado-wrapper.visible {
  display: block;
}

.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(37,211,102,0.12);
  border: 2px solid rgba(37,211,102,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: popIn 0.4s cubic-bezier(0.175,0.885,0.32,1.275) forwards;
}
.success-icon svg {
  color: var(--whatsapp);
}

.obrigado-wrapper h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.obrigado-wrapper p {
  font-size: 0.97rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}
.obrigado-wrapper .btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 100px;
  text-decoration: none;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.obrigado-wrapper .btn-wa:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.3);
}

/* ---------- FOOTER ---------- */
footer {
  text-align: center;
  padding: 24px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}
footer p {
  font-size: 0.82rem;
  color: var(--text-muted);
}
footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
footer a:hover { color: var(--accent); }

/* ---------- ANIMAÇÕES ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.5); }
  to   { opacity: 1; transform: scale(1); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .captura-layout {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .captura-section {
    padding: 40px 0 56px;
  }
  .captura-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .captura-info {
    padding-top: 0;
    order: 1;
  }
  .form-card {
    order: 2;
  }
  .captura-headline {
    font-size: clamp(1.5rem, 5.5vw, 2rem);
    word-break: break-word;
  }
  .captura-sub {
    font-size: 0.95rem;
  }
  .obrigado-wrapper h2 {
    font-size: 1.4rem;
    word-break: break-word;
  }
  .obrigado-wrapper p {
    font-size: 0.92rem;
  }
  .obrigado-wrapper .btn-wa {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .form-card { padding: 24px 16px; }
  .captura-headline { font-size: 1.45rem; }
  .check-list { gap: 10px; }
  .check-list li { font-size: 0.9rem; }
  .btn-submit { font-size: 0.95rem; padding: 14px 20px; }
  .header-brand { font-size: 1rem; }
}
