/* ============================================================
   eg-lead.css — captação de lead (conversa com personal banker)
   Modal + formulário inline. Tema claro "mint & aço" (site.css).
   ============================================================ */

/* ── Overlay + shell do modal ───────────────────────────── */
.lead-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(11, 30, 25, .55); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
  opacity: 0; transition: opacity var(--tm, 280ms) var(--ease, ease);
}
.lead-overlay.on { opacity: 1; }
.lead-modal {
  width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r5); box-shadow: var(--sh-pop); padding: clamp(26px, 4vw, 38px);
  position: relative; margin: auto;
  transform: translateY(16px) scale(.98); transition: transform var(--tm, 280ms) var(--ease, ease);
}
.lead-overlay.on .lead-modal { transform: none; }
.lead-close {
  position: absolute; top: 14px; right: 14px; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--surface);
  color: var(--tx-2); font-size: 19px; line-height: 1; display: grid; place-items: center;
  transition: all var(--tf, 160ms) var(--ease, ease);
}
.lead-close:hover { background: var(--surface-2); color: var(--tx-1); }
body.lead-aberto { overflow: hidden; }

/* ── Cabeçalho ──────────────────────────────────────────── */
.lead-head { text-align: center; margin-bottom: 22px; }
.lead-head h2 {
  font-family: var(--f-display); font-weight: 800; color: var(--tx-1);
  font-size: clamp(21px, 3.2vw, 27px); line-height: 1.15; margin-top: 10px;
}
.lead-head p { font-size: 14.5px; color: var(--tx-2); margin-top: 10px; line-height: 1.6; }

/* selo de contexto (nota do quiz, número da independência) */
.lead-ctx {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
  background: var(--bg-soft); border: 1px solid var(--border);
  border-left: 3px solid var(--ouro); border-radius: var(--r3); padding: 12px 15px;
}
.lead-ctx-num {
  font-family: var(--f-display); font-weight: 800; font-size: 25px;
  color: var(--verde-dk); line-height: 1; flex: 0 0 auto;
}
.lead-ctx-txt { font-size: 12.5px; color: var(--tx-2); line-height: 1.45; }
.lead-ctx-txt b { color: var(--tx-1); }

/* ── Campos ─────────────────────────────────────────────── */
.lead-form { display: flex; flex-direction: column; gap: 15px; }
.lead-campo label {
  display: block; font-size: 11.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .09em; color: var(--tx-3); margin-bottom: 7px;
}
.lead-campo input, .lead-campo textarea, .lead-campo select {
  width: 100%; font-family: var(--f-body); font-size: 15px; color: var(--tx-1);
  background: var(--surface); border: 1px solid var(--border-mid); border-radius: var(--r3);
  padding: 12px 14px; transition: border-color var(--tf, 160ms), box-shadow var(--tf, 160ms);
}
.lead-campo input::placeholder, .lead-campo textarea::placeholder { color: var(--tx-3); }
.lead-campo input:focus, .lead-campo textarea:focus, .lead-campo select:focus {
  outline: none; border-color: var(--verde); box-shadow: 0 0 0 3px rgba(47,143,112,.14);
}
.lead-campo textarea { resize: vertical; min-height: 74px; line-height: 1.5; }
.lead-erro-campo input { border-color: var(--neg); }
.lead-msg-erro { font-size: 12px; color: var(--neg); margin-top: 5px; }

.lead-dupla { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 440px) { .lead-dupla { grid-template-columns: 1fr; } }

/* chips de horário */
.lead-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-chip {
  font-family: var(--f-body); font-size: 13.5px; font-weight: 600;
  padding: 9px 15px; border-radius: var(--rpill); cursor: pointer;
  background: var(--surface); border: 1px solid var(--border-mid); color: var(--tx-2);
  transition: all var(--tf, 160ms) var(--ease, ease);
}
.lead-chip:hover { border-color: var(--verde); color: var(--verde-dk); }
.lead-chip.on { background: rgba(47,143,112,.10); border-color: var(--verde); color: var(--verde-dk); }

/* honeypot — invisível para gente, visível para robô */
.lead-hp { position: absolute; left: -5000px; opacity: 0; height: 0; overflow: hidden; }

.lead-form .btn { width: 100%; margin-top: 4px; }
.lead-form .btn[disabled] { opacity: .6; pointer-events: none; }

.lead-legal { font-size: 11.5px; color: var(--tx-3); line-height: 1.55; text-align: center; margin-top: 4px; }
.lead-legal a { color: var(--verde-dk); text-decoration: underline; }

/* ── Estado de sucesso ──────────────────────────────────── */
.lead-ok { text-align: center; padding: 8px 0; }
.lead-ok-ico {
  width: 66px; height: 66px; border-radius: 50%; margin: 0 auto 18px;
  background: rgba(46,158,107,.13); color: var(--verde); display: grid; place-items: center;
}
.lead-ok-ico svg { width: 32px; height: 32px; }
.lead-ok h2 { font-family: var(--f-display); font-weight: 800; font-size: 25px; color: var(--tx-1); }
.lead-ok p { font-size: 14.5px; color: var(--tx-2); margin-top: 12px; line-height: 1.65; }
.lead-ok .btn { margin-top: 22px; }
.lead-passos {
  text-align: left; background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: var(--r3); padding: 16px 18px; margin-top: 20px;
}
.lead-passos li {
  list-style: none; display: flex; gap: 11px; align-items: flex-start;
  font-size: 13.5px; color: var(--tx-2); line-height: 1.5;
}
.lead-passos li + li { margin-top: 11px; }
.lead-passos .n {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 auto; margin-top: 1px;
  background: var(--verde); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center;
}
.lead-passos ul { padding: 0; margin: 0; }

/* aviso de erro no envio */
.lead-falhou {
  background: rgba(192,73,47,.08); border: 1px solid rgba(192,73,47,.3);
  border-radius: var(--r3); padding: 13px 15px; font-size: 13.5px; color: var(--tx-1); line-height: 1.55;
}
.lead-falhou a { color: var(--verde-dk); font-weight: 700; text-decoration: underline; }

/* ── Formulário inline (agendar.html) ───────────────────── */
.lead-inline {
  max-width: 520px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r5);
  box-shadow: var(--sh-card); padding: clamp(24px, 4vw, 34px);
}

/* barra fixa mobile — o CTA nunca some de vista */
.lead-barra {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: rgba(255,255,255,.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); padding: 10px 16px;
  display: none; box-shadow: 0 -4px 20px rgba(30,50,45,.10);
}
.lead-barra .btn { width: 100%; }
@media (max-width: 720px) {
  .lead-barra { display: block; }
  body { padding-bottom: 68px; }
}
