/* Climagerais — Leads da Calculadora. Usa as cores do tema, com reserva da paleta. */
.cglc{
  --cglc-primario:var(--wp--preset--color--primario,#0A3D62);
  --cglc-acao:var(--wp--preset--color--acao,#0A3D62);
  --cglc-acao-escuro:var(--wp--preset--color--acao-escuro,#062B45);
  --cglc-linha:var(--wp--preset--color--linha,#D6DEE6);
  --cglc-tinta:var(--wp--preset--color--tinta,#1b2733);
  --cglc-suave:var(--wp--preset--color--tinta-suave,#51606d);
  --cglc-zap:var(--wp--preset--color--whatsapp,#25D366);
  margin:0 0 1.25rem; border-radius:16px; background:linear-gradient(180deg,#F2F8FD 0%,#FFFFFF 100%);
  border:1px solid var(--cglc-linha); padding:1.25rem; box-sizing:border-box;
  opacity:0; transform:translateY(10px); max-height:0; overflow:hidden;
  transition:opacity .45s ease, transform .45s ease, max-height .6s ease;
}
.cglc.is-visivel{opacity:1; transform:none; max-height:1400px}
.cglc *{box-sizing:border-box}
.cglc__cabeca{display:flex; gap:.85rem; align-items:flex-start; margin-bottom:.85rem}
.cglc__icone{flex:0 0 44px; width:44px; height:44px; border-radius:12px; background:var(--cglc-primario); color:#fff;
  display:flex; align-items:center; justify-content:center; box-shadow:0 6px 14px -6px var(--cglc-primario)}
.cglc__icone svg{width:24px; height:24px}
.cglc .cglc__titulo{margin:0 0 .2rem; font-size:1.2rem; line-height:1.25; font-weight:800; color:var(--cglc-primario)}
.cglc .cglc__sub{margin:0; font-size:.95rem; color:var(--cglc-suave); line-height:1.5}
.cglc__resumo{display:flex; gap:.5rem; align-items:center; font-size:.88rem; color:var(--cglc-tinta); background:#fff;
  border:1px dashed var(--cglc-linha); border-radius:10px; padding:.55rem .75rem; margin-bottom:.9rem}
.cglc__resumo:empty{display:none}
.cglc__resumo svg{width:18px; height:18px; flex:0 0 18px; color:var(--cglc-primario)}
.cglc__grade{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.75rem}
.cglc__campo{display:flex; flex-direction:column; gap:.3rem; margin:0}
.cglc__campo--inteiro{margin-top:.75rem}
.cglc__campo span{font-size:.82rem; font-weight:600; color:var(--cglc-suave)}
.cglc__campo input,.cglc__campo textarea{width:100%; padding:.7rem .8rem; border:1px solid var(--cglc-linha); border-radius:10px;
  font:inherit; font-size:1rem; color:var(--cglc-tinta); background:#fff; transition:border-color .2s, box-shadow .2s}
.cglc__campo textarea{resize:vertical; min-height:58px}
.cglc__campo input:focus,.cglc__campo textarea:focus{outline:none; border-color:var(--cglc-primario); box-shadow:0 0 0 3px rgba(10,61,98,.15)}
.cglc__campo.is-erro input,.cglc__campo.is-erro textarea{border-color:#C0392B; box-shadow:0 0 0 3px rgba(192,57,43,.12)}
.cglc__aceite{display:flex; gap:.55rem; align-items:flex-start; margin:.9rem 0 .2rem; font-size:.85rem; color:var(--cglc-suave); line-height:1.45; cursor:pointer}
.cglc__aceite input{margin-top:.2rem; width:18px; height:18px; flex:0 0 18px; accent-color:var(--cglc-primario)}
.cglc__aceite.is-erro span{color:#C0392B}
.cglc__aceite a{color:var(--cglc-primario)}
.cglc__oculto{position:absolute!important; left:-9999px!important; width:1px; height:1px; overflow:hidden}
.cglc__erro{min-height:1.2em; font-size:.88rem; color:#C0392B; margin:.35rem 0}
.cglc__erro:empty{min-height:0; margin:0}
.cglc__enviar{width:100%; margin-top:.6rem; border:0; border-radius:10px; padding:.95rem 1.2rem; font:inherit; font-weight:700; font-size:1rem;
  background:var(--cglc-acao); color:#fff; cursor:pointer; transition:background .2s, transform .2s, box-shadow .2s}
.cglc__enviar:hover{background:var(--cglc-acao-escuro); transform:translateY(-1px); box-shadow:0 8px 18px -8px var(--cglc-acao)}
.cglc__enviar:disabled{opacity:.7; cursor:wait; transform:none}
.cglc__ok{text-align:center; padding:.5rem .25rem; animation:cglc-entra .5s ease both}
.cglc__check{display:inline-flex; width:56px; height:56px; border-radius:50%; background:#E7F7EE; color:#1E9E57; align-items:center; justify-content:center; margin-bottom:.5rem}
.cglc__check svg{width:30px; height:30px; stroke-dasharray:30; stroke-dashoffset:30; animation:cglc-traco .6s ease .15s forwards}
.cglc__ok h3{margin:.2rem 0; font-size:1.25rem; color:var(--cglc-primario)}
.cglc__ok p{margin:0 0 1rem; color:var(--cglc-suave)}
.cglc__zap{display:inline-flex; align-items:center; justify-content:center; padding:.8rem 1.2rem; border-radius:10px; background:var(--cglc-zap);
  color:#fff!important; text-decoration:none!important; font-weight:700}
.cglc__ja{display:flex; flex-wrap:wrap; gap:.5rem 1rem; align-items:center; justify-content:space-between; font-size:.95rem; color:var(--cglc-tinta)}
.cglc__link{background:none; border:0; padding:0; color:var(--cglc-primario); font:inherit; font-weight:700; text-decoration:underline; cursor:pointer}
@keyframes cglc-entra{from{opacity:0; transform:translateY(8px)}to{opacity:1; transform:none}}
@keyframes cglc-traco{to{stroke-dashoffset:0}}
@media (max-width:640px){
  .cglc{padding:1rem}
  .cglc__cabeca{flex-direction:column; gap:.6rem}
  .cglc__icone{flex-basis:40px; width:40px; height:40px}
  .cglc .cglc__titulo{font-size:1.1rem}
  .cglc__grade{grid-template-columns:1fr}
}
@media (prefers-reduced-motion:reduce){
  .cglc,.cglc *{transition:none!important; animation:none!important}
  .cglc__check svg{stroke-dashoffset:0}
}
