/* ═══════════════════════════════════════════════════════════════════════
   FOOZ · CONTATO — painel de lead compacto + botão de WhatsApp
   Compartilhado por todas as páginas da landing.

   O painel antigo ocupava a largura inteira da tela e descia como uma
   faixa. Aqui ele vira um cartão estreito, ancorado à direita, que desce
   preso ao header — menos intrusivo e com menos campos.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─────────────── painel: só o trilho, sem fundo próprio ─────────────── */
.lead-panel {
  /* fixo (e não sticky) para o cartão sobrepor a página em vez de empurrar
     o conteúdo para baixo e abrir uma faixa branca na largura toda */
  position: fixed; top: 78px; left: 0; right: 0; z-index: 49;
  background: transparent;
  border: 0;
  box-shadow: none;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height .42s cubic-bezier(.22,.9,.32,1);
}
.lead-panel.is-open { max-height: 700px; pointer-events: auto; }

.lead-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; justify-content: flex-end;
  gap: 0;
}

/* ─────────────── o cartão, pendurado no header ─────────────── */
.lead-card {
  position: relative;
  width: 352px; max-width: 100%;
  background: #fff;
  border: 1px solid var(--gray-200, #e4e9f2);
  border-top: 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 26px 60px -26px rgba(15, 23, 42, .38);
  padding: 20px 20px 22px;
}

.lead-card .lead-intro { margin-bottom: 14px; padding-right: 26px; }
.lead-card .lead-intro .eyebrow { color: var(--blue-500, #2867ff); font-size: 10.5px; }
.lead-card .lead-intro h3 {
  font-family: "Geologica", "Sora", "Inter", sans-serif;
  font-size: 16.5px; font-weight: 700; line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--navy-900, #0b1020);
  margin: 7px 0 0;
}
/* o parágrafo longo sai: o cartão precisa caber sem rolagem */
.lead-card .lead-intro p { display: none; }

.lead-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--gray-200, #e4e9f2); background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--gray-700, #55617a);
  transition: background .2s, color .2s, border-color .2s;
}
.lead-close:hover { background: var(--navy-900, #0b1020); color: #fff; border-color: var(--navy-900, #0b1020); }

/* ─────────────── campos: uma coluna, poucos dados ─────────────── */
.lead-card .lead-form { display: grid; grid-template-columns: 1fr; gap: 9px; }
.lead-card .lead-form label {
  display: flex; flex-direction: column; gap: 5px;
  font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--gray-700, #55617a);
}
.lead-card .lead-form label.full { grid-column: 1 / -1; }
.lead-card .lead-form input,
.lead-card .lead-form textarea {
  font: inherit;
  font-size: 13.5px; font-weight: 400; text-transform: none; letter-spacing: 0;
  color: var(--navy-900, #0b1020);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--gray-200, #e4e9f2);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.lead-card .lead-form input:focus,
.lead-card .lead-form textarea:focus {
  border-color: var(--blue-500, #2867ff);
  box-shadow: 0 0 0 3px rgba(40, 103, 255, .12);
}

.lead-card .lead-consent {
  grid-column: 1 / -1;
  display: flex; gap: 9px; align-items: flex-start;
  padding: 0; margin-top: 3px;
  background: none; border: 0;
}
.lead-card .lead-consent input[type="checkbox"] {
  margin-top: 2px; width: 15px; height: 15px;
  accent-color: var(--blue-500, #2867ff); flex-shrink: 0;
}
.lead-card .lead-consent .consent-text {
  font-size: 11px !important; line-height: 1.45; color: var(--gray-700, #55617a);
}
.lead-card .lead-consent .consent-text strong { color: var(--navy-900, #0b1020); font-weight: 600; }
/* a nota longa de privacidade vira título do checkbox, não parágrafo */
.lead-card .lead-consent .consent-text br { display: none; }

.lead-card .lead-actions { grid-column: 1 / -1; display: block; margin-top: 4px; }
.lead-card .lead-actions .btn-submit {
  width: 100%; justify-content: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}

.lead-card .lead-success {
  grid-column: 1 / -1;
  padding: 13px; border-radius: 10px;
  background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46;
  font-size: 13px; font-weight: 500;
  display: none;
}
.lead-card .lead-success.is-visible { display: block; }

/* erro de envio: nunca abre o WhatsApp sozinho, oferece o link */
.lead-error {
  grid-column: 1 / -1;
  padding: 12px 13px; border-radius: 10px;
  background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  font-size: 12.5px; line-height: 1.5;
  display: none;
}
.lead-error.is-visible { display: block; }
.lead-error a {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 8px; padding: 7px 13px; border-radius: 999px;
  background: #25d366; color: #fff; text-decoration: none;
  font-size: 12px; font-weight: 700;
}

@media (max-width: 640px) {
  .lead-inner { padding: 0 12px; }
  .lead-card { width: 100%; border-radius: 0 0 18px 18px; }
}

/* ═══════════════ BOTÃO FLUTUANTE DE WHATSAPP ═══════════════ */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .65);
  transition: transform .2s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -10px rgba(37, 211, 102, .75); }
.wa-float:focus-visible { outline: 3px solid rgba(37, 211, 102, .45); outline-offset: 3px; }
.wa-float svg { width: 28px; height: 28px; display: block; }

@media (max-width: 640px) {
  .wa-float { right: 16px; bottom: 16px; width: 50px; height: 50px; }
  .wa-float svg { width: 26px; height: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .lead-panel { transition: none; }
  .wa-float { transition: none; }
}
