/* ============================================================
   Card de privacidade e cookies — padrão WebFormas (18/09/2026)
   Cores vêm das variáveis abaixo: redefinir por site (ver LEIA-ME.md).
   ============================================================ */
:root {
  --lgpd-bg: #03254c;            /* marinho do rodapé do site */
  --lgpd-fg: #ffffff;            /* texto */
  --lgpd-muted: rgba(255,255,255,.78);
  --lgpd-border: rgba(255,255,255,.12);
  --lgpd-accent: #ff3c00;        /* laranja de destaque do site (botão "Aceitar todos") */
  --lgpd-accent-fg: #1f0d00;     /* tinta escura sobre o laranja: 5,3:1 (o branco daria 3,6:1) */
  --lgpd-accent-claro: #ff8f66;  /* links e ícone: o laranja puro sobre o marinho dá 4,3:1; este dá 6,8:1 */
  --lgpd-ico-bg: rgba(255,255,255,.08);
  --lgpd-radius: 24px;
  --lgpd-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lgpd-z: 99995;
}

/* usada nos textos "Análise"/"Publicidade" dos toggles (lgpd.html): o
   próprio card já explica a opção com o texto visível ao lado, então o rótulo
   do <input> fica só para leitor de tela. Antes vinha como style="" inline no
   markup; regra aqui para nenhum site precisar de CSS inline por causa dela. */
.sr-only { position: absolute; left: -9999px; }

.lgpd { position: fixed; left: 1rem; bottom: 1rem; z-index: var(--lgpd-z); width: min(560px, calc(100vw - 2rem));
  font-family: var(--lgpd-font); color: var(--lgpd-fg); transform: translateY(calc(100% + 2rem)); opacity: 0;
  transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .35s; }
.lgpd.is-visivel { transform: none; opacity: 1; }
.lgpd[hidden] { display: none; }
.lgpd__card { background: var(--lgpd-bg); border: 1px solid var(--lgpd-border); border-radius: var(--lgpd-radius);
  padding: 1.5rem 1.6rem 1.4rem; box-shadow: 0 24px 60px -20px rgba(0,0,0,.6); }
.lgpd__topo { display: flex; align-items: center; gap: .75rem; margin-bottom: .7rem; }
.lgpd__ico { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; background: var(--lgpd-ico-bg); color: var(--lgpd-accent);
  display: grid; place-items: center; }
.lgpd__ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lgpd__titulo { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.2; }
.lgpd__txt { font-size: .92rem; line-height: 1.6; margin: 0 0 1.1rem; color: var(--lgpd-muted); }
.lgpd__txt a { color: var(--lgpd-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lgpd__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .75rem; }
.lgpd__btn { font: 700 .78rem/1 var(--lgpd-font); letter-spacing: .06em; text-transform: uppercase; padding: .95rem 1.5rem;
  border-radius: 999px; border: 2px solid transparent; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.lgpd__btn:hover, .lgpd__btn:focus-visible { transform: translateY(-1px); outline: none; }
/* cores tambem no hover/focus: temas (Hello Elementor etc.) tem button:hover proprio */
.lgpd__btn--sim, .lgpd__btn--sim:hover, .lgpd__btn--sim:focus { background: var(--lgpd-accent); color: var(--lgpd-accent-fg); border-color: var(--lgpd-accent); }
.lgpd__btn--sim:hover { filter: brightness(1.08); }
.lgpd__btn--nao, .lgpd__btn--nao:hover, .lgpd__btn--nao:focus { background: transparent; color: var(--lgpd-fg); border-color: rgba(255,255,255,.55); }
.lgpd__btn--nao:hover { border-color: var(--lgpd-fg); }
.lgpd__link, .lgpd__link:hover, .lgpd__link:focus { background: none; border: 0; padding: .5rem .25rem; font: 600 .85rem/1 var(--lgpd-font); color: var(--lgpd-fg);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lgpd__link:hover { color: var(--lgpd-accent); }

/* painel de preferências (mesmo card, troca o miolo) */
.lgpd__prefs { display: none; }
.lgpd.is-prefs .lgpd__txt, .lgpd.is-prefs .lgpd__card > .lgpd__acoes { display: none; }
.lgpd.is-prefs .lgpd__prefs { display: block; }
.lgpd__opcao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-top: 1px solid var(--lgpd-border); }
.lgpd__opcao:last-of-type { border-bottom: 1px solid var(--lgpd-border); margin-bottom: 1rem; }
.lgpd__opcao strong { display: block; font-size: .9rem; }
.lgpd__opcao span { display: block; font-size: .78rem; color: var(--lgpd-muted); line-height: 1.45; }
.lgpd__opcao small { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--lgpd-accent); font-weight: 700; white-space: nowrap; }
.lgpd__switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; }
.lgpd__switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.lgpd__switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255,255,255,.22); transition: background .2s; }
.lgpd__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.lgpd__switch input:checked + i { background: var(--lgpd-accent); }
.lgpd__switch input:checked + i::after { transform: translateX(20px); }
.lgpd__switch input:focus-visible + i { outline: 2px solid var(--lgpd-accent); outline-offset: 2px; }

/* enquanto o card está aberto, o botão flutuante de WhatsApp some no celular */
@media (max-width: 767px) {
  .lgpd { left: .75rem; bottom: .75rem; width: calc(100vw - 1.5rem); }
  .lgpd__card { padding: 1.2rem 1.2rem 1.1rem; border-radius: 20px; }
  .lgpd__btn { padding: .85rem 1.2rem; font-size: .72rem; }
  body.has-lgpd .wa-float { display: none; }   /* o card ocupa o rodape da tela; o botao volta quando ele fecha */
}
@media (prefers-reduced-motion: reduce) { .lgpd { transition: none; } }

/* links e ícone do card: o laranja puro não alcança 4,5:1 sobre o marinho */
.lgpd__txt a, .lgpd__ico { color: var(--lgpd-accent-claro); }
.lgpd__link:hover { color: var(--lgpd-accent-claro); }
.lgpd__opcao small { color: var(--lgpd-accent-claro); }

/* ============================================================
   Padrão WebFormas (22/09/2026) — botão flutuante de WhatsApp, links do
   rodapé, formulário (status, honeypot, modal de envio) e página de obrigado.
   O card de privacidade e cookies (kit) está acima.
   ============================================================ */

/* --- Botão flutuante de WhatsApp (substitui a barra #whatsapp do libs/form/4.0) --- */
.wa-float { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 99990; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45); transition: transform .3s ease, bottom .3s ease; }
.wa-float:hover, .wa-float:focus { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #25d366; opacity: .6;
  animation: wa-pulso 2.2s ease-out infinite; }
@keyframes wa-pulso { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }

/* --- Links de LGPD no rodapé ---
   "Preferências de cookies" é um <button> (abre o card de novo), então precisa
   apagar fundo/borda/altura que o navegador e o template dão a botões. */
.footer .lgpd-links { font-size: 13px; margin: 8px 0 0; color: rgba(255,255,255,.6); }
.footer .lgpd-links a,
.footer .lgpd-links button { color: #9cf6ff; text-decoration: underline; text-underline-offset: 3px;
  background: none; border: 0; padding: 0; margin: 0; font: inherit; line-height: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none; }
.footer .lgpd-links a:hover,
.footer .lgpd-links button:hover,
.footer .lgpd-links button:focus { color: #ff8f66; background: none; }

/* --- Formulário de contato ---
   Os campos eram estilizados pelo master.min.css remoto do libs/form/4.0;
   com ele fora, o visual dos inputs passa a morar aqui. */
.formWebformas { display: flex; flex-wrap: wrap; margin: 0 -15px; }
.formWebformas .form-group { margin-bottom: 20px; }
.formWebformas .form-control { width: 100%; height: 56px; padding: 0 20px; color: #252525; background: #f5f7fa;
  border: 1px solid #e1e6ee; border-radius: 4px; font-size: 15px; font-family: inherit; transition: border-color .25s, background .25s; }
.formWebformas textarea.form-control { height: auto; min-height: 150px; padding: 18px 20px; line-height: 1.7; resize: vertical; }
.formWebformas .form-control::placeholder { color: #9aa4b2; opacity: 1; }
.formWebformas .form-control:focus { outline: none; background: #fff; border-color: #0f52ba; box-shadow: 0 0 0 3px rgba(15,82,186,.12); }
.formWebformas .form-control:focus-visible { outline: none; }

.f-status { display: none; margin: 0 0 20px; padding: 12px 16px; border-radius: 6px; font-size: 14px; line-height: 1.5; width: 100%; }
.f-status.show { display: block; }
.f-status.info { background: #eef3fb; color: #03254c; border: 1px solid #cfdcef; }
.f-status.erro { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.f-honeypot { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-privacidade { font-size: 12.5px; line-height: 1.6; color: #8a8a8a; margin: 12px 0 0; }
.form-privacidade a { color: #0f52ba; text-decoration: underline; text-underline-offset: 3px; }
.formWebformas .g-recaptcha { margin-bottom: 20px; }
/* o envio antes era uma <div class="enviarForm">; agora é <button>, que traz borda e fundo do navegador */
.formWebformas button.primary-btn { border: 0; cursor: pointer; font-family: inherit; font-size: inherit; }
button.enviando { opacity: .7; cursor: progress; }

/* --- Modal "Enviando…" (criado pelo initForm em js/padrao-webformas.js) --- */
.envio-modal { position: fixed; inset: 0; z-index: 99999; display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(3,37,76,.78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.envio-modal.is-visivel { opacity: 1; }
.envio-modal[hidden] { display: none; }
.envio-modal__card { background: #fff; border-radius: 12px; padding: 40px 32px 32px; max-width: 380px; width: 100%; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); transform: translateY(12px); transition: transform .25s; }
.envio-modal.is-visivel .envio-modal__card { transform: none; }
.envio-modal__spin { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 50%; border: 5px solid #e8e8e8;
  border-top-color: #0f52ba; animation: envio-gira .9s linear infinite; }
.envio-modal.is-ok .envio-modal__spin { border-color: #25d366; animation: none; position: relative; }
.envio-modal.is-ok .envio-modal__spin::after { content: ""; position: absolute; left: 18px; top: 9px; width: 12px; height: 24px;
  border: solid #25d366; border-width: 0 5px 5px 0; transform: rotate(45deg); }
@keyframes envio-gira { to { transform: rotate(360deg); } }
.envio-modal__titulo { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #03254c; }
.envio-modal__txt { margin: 0; font-size: 14px; line-height: 1.6; color: #6b7280; }
body.envio-aberto { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .envio-modal, .envio-modal__card { transition: none; } .envio-modal__spin { animation: none; } }

/* --- Página de obrigado (padrão campportaria adaptado ao template) --- */
.obrigado-section { padding: 90px 0 100px; text-align: center; }
.obrigado-check { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 50%; background: rgba(15,82,186,.1);
  display: grid; place-items: center; }
.obrigado-check svg { width: 46px; height: 46px; fill: none; stroke: #0f52ba; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.obrigado-section h1 { font-size: 38px; line-height: 1.3; margin: 0 0 18px; color: #03254c; }
.obrigado-section h1 .mark { background: none; color: #ff3c00; padding: 0; }
.obrigado-section p { max-width: 620px; margin: 0 auto 32px; font-size: 16px; line-height: 1.8; color: #6b7280; }
.obrigado-acoes { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.obrigado-acoes .primary-btn, .obrigado-acoes .secondary-btn { text-decoration: none; }
@media (max-width: 767px) {
  .obrigado-section { padding: 60px 0 70px; }
  .obrigado-section h1 { font-size: 27px; }
}
