/* Widget de captação JC Fisioterapia: botão flutuante + formulário em bolha estilo chat */
.jcl-lancador{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(18px + env(safe-area-inset-bottom, 0px));z-index:900;width:62px;height:62px;border-radius:50%;border:0;cursor:pointer;background:#1F8F4E;color:#fff;display:grid;place-items:center;box-shadow:0 10px 26px rgba(21,36,49,.28);transition:transform .2s, background-color .2s}
.jcl-lancador:hover{transform:scale(1.06)}
.jcl-lancador:focus-visible{outline:3px solid #C8161D;outline-offset:3px}
.jcl-lancador svg{width:32px;height:32px}
.jcl-lancador .jcl-x{display:none;width:26px;height:26px}
.jcl-aberto .jcl-lancador{background:#2E5E78}
.jcl-aberto .jcl-lancador .jcl-wa{display:none}
.jcl-aberto .jcl-lancador .jcl-x{display:block}

.jcl-previa{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(92px + env(safe-area-inset-bottom, 0px));z-index:899;max-width:260px;background:#fff;color:#152431;border-radius:16px 16px 4px 16px;padding:14px 38px 14px 16px;box-shadow:0 12px 30px rgba(21,36,49,.2);font:400 15px/1.45 "Atkinson Hyperlegible Next","Atkinson Hyperlegible",Verdana,sans-serif;cursor:pointer;animation:jcl-sobe .35s ease-out}
.jcl-previa button{position:absolute;top:6px;right:6px;width:26px;height:26px;border:0;background:none;cursor:pointer;color:#425564;font-size:18px;line-height:1;border-radius:50%}
.jcl-previa button:hover{background:#F2F6F8}

.jcl-janela{position:fixed;right:calc(18px + env(safe-area-inset-right, 0px));bottom:calc(92px + env(safe-area-inset-bottom, 0px));z-index:901;width:min(390px, calc(100vw - 36px));max-height:min(680px, calc(100vh - 120px));display:flex;flex-direction:column;background:#E9F0F3;border-radius:16px;overflow:hidden;box-shadow:0 24px 60px rgba(21,36,49,.32);font:400 16px/1.45 "Atkinson Hyperlegible Next","Atkinson Hyperlegible",Verdana,sans-serif;color:#152431;animation:jcl-sobe .28s ease-out}
.jcl-janela[hidden]{display:none}
@keyframes jcl-sobe{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.jcl-janela,.jcl-previa{animation:none}}

.jcl-topo{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 16px;background:#2E5E78;color:#fff;flex:none}
.jcl-topo img{width:46px;height:46px;border-radius:50%;object-fit:cover;border:2px solid rgba(255,255,255,.7)}
.jcl-topo b{display:block;font-family:"Archivo",Arial,sans-serif;font-variation-settings:"wdth" 108;font-weight:800;font-size:18px;line-height:1.15}
.jcl-topo small{font-size:14px;color:#D5E6EE}
.jcl-fechar{margin-left:auto;width:36px;height:36px;border:0;border-radius:50%;background:transparent;color:#fff;cursor:pointer;display:grid;place-items:center}
.jcl-fechar:hover{background:rgba(255,255,255,.14)}
.jcl-fechar svg{width:22px;height:22px}

.jcl-corpo{flex:1;overflow-y:auto;padding:16px;background-color:#E9F0F3;background-image:radial-gradient(rgba(46,94,120,.09) 1.2px, transparent 1.3px);background-size:18px 18px;overscroll-behavior:contain}
.jcl-msg{background:#fff;border-radius:4px 14px 14px 14px;padding:11px 14px;max-width:88%;box-shadow:0 1px 2px rgba(21,36,49,.08);margin:0 0 10px}
.jcl-msg.jcl-digitando{display:inline-flex;gap:4px;padding:14px 16px}
.jcl-digitando i{width:7px;height:7px;border-radius:50%;background:#8AA3B0;animation:jcl-pulo 1s infinite ease-in-out}
.jcl-digitando i:nth-child(2){animation-delay:.15s}.jcl-digitando i:nth-child(3){animation-delay:.3s}
@keyframes jcl-pulo{0%,60%,100%{transform:none;opacity:.5}30%{transform:translateY(-4px);opacity:1}}

.jcl-form{display:grid;gap:12px;margin-top:6px;margin-left:auto;width:min(100%, 330px)}
.jcl-form[hidden]{display:none}
.jcl-campo{display:grid;gap:5px}
.jcl-campo label,.jcl-campo legend{font-size:14px;font-weight:700;color:#152431}
.jcl-campo input[type=text],.jcl-campo input[type=tel],.jcl-campo select{font:inherit;font-size:16px;width:100%;background:#fff;color:#152431;border:1.5px solid #C3D3DB;border-radius:10px;padding:11px 12px}
.jcl-campo input:focus,.jcl-campo select:focus{outline:none;border-color:#2E5E78;box-shadow:0 0 0 3px rgba(93,144,171,.25)}
.jcl-campo.jcl-erro input,.jcl-campo.jcl-erro select{border-color:#C8161D}
.jcl-tel{display:flex;align-items:stretch}
.jcl-tel span{display:grid;place-items:center;padding:0 10px;background:#F2F6F8;border:1.5px solid #C3D3DB;border-right:0;border-radius:10px 0 0 10px;font-size:15px;color:#425564}
.jcl-tel input{border-radius:0 10px 10px 0!important}
fieldset.jcl-campo{border:0;margin:0;padding:0}
.jcl-opcoes{display:flex;gap:8px;flex-wrap:wrap}
.jcl-opcoes label{font-weight:400;font-size:15px;display:flex;align-items:center;gap:7px;background:#fff;border:1.5px solid #C3D3DB;border-radius:10px;padding:8px 12px;cursor:pointer}
.jcl-opcoes input{accent-color:#C8161D;margin:0}
.jcl-opcoes label:has(input:checked){border-color:#C8161D;background:#FDF1F1}
.jcl-aceite{display:flex;gap:9px;align-items:flex-start;font-size:14px;color:#425564;cursor:pointer}
.jcl-aceite input{margin-top:3px;accent-color:#C8161D;width:16px;height:16px;flex:none}
.jcl-legal{font-size:13px;color:#566977;margin:0}
.jcl-legal a{color:#2E5E78}
.jcl-enviar{justify-self:end;font:700 16px/1.2 "Atkinson Hyperlegible Next","Atkinson Hyperlegible",Verdana,sans-serif;background:#C8161D;color:#fff;border:0;border-radius:999px;padding:13px 22px;cursor:pointer;display:inline-flex;gap:8px;align-items:center}
.jcl-enviar:hover{background:#9C1117}
.jcl-enviar:disabled{opacity:.7;cursor:progress}
.jcl-enviar svg{width:20px;height:20px}
.jcl-aviso{font-size:14px;color:#C8161D;margin:0;min-height:0}
.jcl-mel{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.jcl-msg a{color:#2E5E78;font-weight:700}

@media (max-width:560px){
  .jcl-janela{right:0;left:0;bottom:0;width:100%;max-height:none;height:calc(100% - 40px - env(safe-area-inset-top, 0px));border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom, 0px)}
  .jcl-aberto .jcl-lancador{display:none}
  .jcl-form{width:100%}
}
