/* ===== Pop-up de captação de lead (WhatsApp) =====
   Reaproveita os tokens do site (--orange, --navy, --t2, --t3, --bd-out, --bg-alt...).
   Os fallbacks garantem o visual mesmo se um token mudar de nome. */

.lp-overlay{
  --lp-orange:var(--orange,#FF7A01);
  --lp-orange-h:var(--orange-h,#e56d00);
  --lp-navy:var(--navy,#00132E);
  --lp-t2:var(--t2,#4b5a70);
  --lp-t3:var(--t3,#5f7089);
  --lp-bd:var(--bd,#e7eaf0);
  --lp-bd-out:var(--bd-out,#cdd6e4);
  --lp-bg-alt:var(--bg-alt,#F7F8FA);
  --lp-err:#c62828;
  --lp-gap-top:56px; /* faixa do fundo que fica visível acima do bottom sheet */
  position:fixed;inset:0;z-index:1000;
  display:flex;align-items:center;justify-content:center;
  padding:16px;
  background:rgba(0,19,46,.62);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
  opacity:0;transition:opacity .2s ease;
}
.lp-overlay[hidden]{display:none}
.lp-overlay.is-open{opacity:1}

.lp-sheet{
  position:relative;width:100%;max-width:460px;
  max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);
  overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:#fff;color:var(--lp-navy);
  border-radius:14px;
  box-shadow:0 16px 32px rgba(0,19,46,.16),0 2px 8px rgba(0,19,46,.08);
  padding:34px 32px 30px;
  border-top:4px solid var(--lp-orange);
  transform:translateY(14px) scale(.98);transition:transform .22s ease;
}
.lp-overlay.is-open .lp-sheet{transform:none}
.lp-sheet:focus{outline:none}

.lp-eyebrow{color:var(--lp-orange);font-weight:700;font-size:12px;letter-spacing:.16em;text-transform:uppercase;margin:0 0 10px}
.lp-title{font-weight:800;font-size:26px;letter-spacing:-.02em;line-height:1.15;color:var(--lp-navy);margin:0 0 10px;text-wrap:balance}
.lp-lead{font-size:15px;line-height:1.55;color:var(--lp-t2);margin:0 0 22px}

.lp-form{display:flex;flex-direction:column;gap:16px;margin:0}
.lp-field{display:flex;flex-direction:column;gap:7px}
.lp-label{font-weight:600;font-size:14px;color:var(--lp-navy)}
.lp-input{
  width:100%;min-height:48px;box-sizing:border-box;
  padding:13px 14px;
  font-family:inherit;font-size:16px;font-weight:500;color:var(--lp-navy);
  background:#fff;border:1.5px solid var(--lp-bd-out);border-radius:8px;
  transition:border-color .15s,box-shadow .15s;
  -webkit-appearance:none;appearance:none;
}
.lp-input::placeholder{color:#8592a6}
.lp-input:hover{border-color:var(--lp-t3)}
.lp-input:focus{outline:none;border-color:var(--lp-orange);box-shadow:0 0 0 3px rgba(255,122,1,.22)}
.lp-input[aria-invalid="true"]{border-color:var(--lp-err)}
.lp-input[aria-invalid="true"]:focus{box-shadow:0 0 0 3px rgba(198,40,40,.18)}
.lp-error{font-size:13px;font-weight:600;line-height:1.35;color:var(--lp-err);margin:0;min-height:0}
.lp-error:empty{display:none}

.lp-consent{
  display:flex;align-items:flex-start;gap:10px;
  font-size:13px;font-weight:500;line-height:1.45;color:var(--lp-t2);cursor:pointer;
}
.lp-consent-box{
  flex:none;width:18px;height:18px;margin:1px 0 0;
  accent-color:var(--lp-orange);cursor:pointer;
}
.lp-consent-box:focus-visible{outline:3px solid var(--lp-navy);outline-offset:2px}
.lp-consent a{color:var(--lp-navy);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.lp-consent a:hover{color:var(--lp-orange-h)}

.lp-submit{
  margin-top:4px;width:100%;min-height:52px;
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  padding:16px 26px;font-family:inherit;font-weight:600;font-size:16px;color:#fff;
  background:var(--lp-orange);border:none;border-radius:8px;cursor:pointer;
  box-shadow:0 0 0 rgba(255,122,1,0);
  transition:background .15s,transform .15s,box-shadow .15s;
}
.lp-submit:hover{background:var(--lp-orange-h);transform:translateY(-2px);box-shadow:0 8px 18px rgba(229,109,0,.28)}
.lp-submit:active{transform:translateY(0);box-shadow:0 2px 6px rgba(229,109,0,.28)}
.lp-submit:focus-visible{outline:3px solid var(--lp-navy);outline-offset:3px}
.lp-submit[disabled]{opacity:.75;cursor:progress;transform:none;box-shadow:none}
.lp-note{font-size:12.5px;line-height:1.45;color:var(--lp-t3);text-align:center;margin:14px 0 0}

/* ===== Pop-up de cookies (LGPD) =====
   Fica à esquerda para não cobrir o botão flutuante do WhatsApp (z-index 300). */
.lp-cookie{
  position:fixed;left:22px;bottom:22px;z-index:310;
  width:100%;max-width:340px;box-sizing:border-box;
  padding:16px 18px;
  background:#fff;color:var(--t2,#4b5a70);
  border:1px solid var(--bd,#e7eaf0);border-radius:10px;
  box-shadow:0 8px 22px rgba(0,19,46,.14);
  font-family:'Plus Jakarta Sans',system-ui,-apple-system,sans-serif;
}
.lp-cookie-title{margin:0 0 4px;font-weight:700;font-size:14px;color:var(--navy,#00132E)}
.lp-cookie-text{margin:0;font-size:12px;line-height:1.5}
.lp-cookie-actions{display:flex;gap:8px;margin-top:12px}
.lp-cookie-btn{
  flex:1;min-height:40px;padding:8px 14px;
  font-family:inherit;font-weight:600;font-size:14px;
  border-radius:8px;cursor:pointer;transition:background .15s,border-color .15s;
}
.lp-cookie-accept{color:#fff;background:var(--orange,#FF7A01);border:1.5px solid var(--orange,#FF7A01)}
.lp-cookie-accept:hover{background:var(--orange-h,#e56d00);border-color:var(--orange-h,#e56d00)}
.lp-cookie-decline{color:var(--navy,#00132E);background:#fff;border:1.5px solid var(--bd-out,#cdd6e4)}
.lp-cookie-decline:hover{border-color:var(--t3,#5f7089)}
.lp-cookie-btn:focus-visible{outline:3px solid var(--navy,#00132E);outline-offset:2px}

/* ===== Mobile: bottom sheet ===== */
@media(max-width:640px){
  .lp-cookie{left:12px;right:12px;bottom:92px;width:auto;padding:14px 16px}
  .lp-cookie-actions{margin-top:10px}
  .lp-cookie-btn{min-height:36px;padding:6px 12px}
  .lp-overlay{align-items:flex-end;padding:0}
  .lp-sheet{
    max-width:none;border-radius:14px 14px 0 0;
    max-height:calc(100vh - var(--lp-gap-top));max-height:calc(100dvh - var(--lp-gap-top));
    padding:26px 20px calc(26px + env(safe-area-inset-bottom,0px));
    transform:translateY(100%);
    transition:transform .28s cubic-bezier(.2,.8,.2,1);
  }
  .lp-overlay.is-open .lp-sheet{transform:none}
  .lp-title{font-size:23px}
}

@media(prefers-reduced-motion:reduce){
  .lp-overlay,.lp-sheet,.lp-submit,.lp-cookie-btn{transition:none !important}
  .lp-sheet{transform:none !important}
}
