/* Formulários da home (08/10/2026): botões de múltipla escolha no
   diagnóstico, diagnóstico anexado ao contato e a confirmação de envio. */

/* o .button usa display:inline-flex e vencia o atributo hidden */
[hidden]{display:none!important}

/* botões de opção (checkbox e radio com cara de etiqueta) */
.chip-grupo{margin:18px 0 6px}
.chip-titulo{font-size:13px;margin:0 0 10px;line-height:1.5}
.chip-titulo small{display:inline;margin-left:6px;color:#66796d;font-size:11px}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{position:relative;display:inline-flex!important;margin:0!important;font-size:13px!important;cursor:pointer}
.chip input{position:absolute;opacity:0;width:1px;height:1px;margin:0!important;min-height:0!important;pointer-events:none}
.chip span{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border:1px solid #c7d7cb;border-radius:999px;background:#fff;color:#193c29;line-height:1.3;transition:background .15s,border-color .15s,color .15s}
.chip span::before{content:'';width:14px;height:14px;flex:none;border:1.5px solid #9db4a4;border-radius:4px;background:#fff center/10px no-repeat;transition:background-color .15s,border-color .15s}
.chip input[type=radio]+span::before{border-radius:50%}
.chip:hover span{border-color:#7fa58c}
.chip input:checked+span{background:#e3f4e8;border-color:#2f7a4f;color:#0f3b25;font-weight:600}
.chip input:checked+span::before{background-color:#2f7a4f;border-color:#2f7a4f;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.chip input[type=radio]:checked+span::before{background-image:none;box-shadow:inset 0 0 0 3px #fff}
.chip input:focus-visible+span{outline:3px solid #6fbf8d;outline-offset:2px}
.chips.com-erro .chip span{border-color:#c2410c}
.chip-erro{margin:8px 0 0;font-size:12px;color:#b42318}

/* diagnóstico anexado ao formulário de contato */
.diag-anexo{display:flex;align-items:center;gap:14px;margin:22px 0 4px;padding:14px 16px;border:1px solid #b9dcc5;border-radius:10px;background:#eef8f1;animation:anexo-entra .35s ease both}
.diag-anexo-icone{flex:none;width:28px;height:28px;border-radius:50%;background:#2f7a4f;color:#fff;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700}
.diag-anexo>div{flex:1;min-width:0;font-size:13px;line-height:1.5}
.diag-anexo strong{display:block;color:#0f3b25}
.diag-anexo span{color:#4d6a57}
#diag-remover{flex:none;border:0;background:none;padding:6px 2px;font-size:12px;color:#4d6a57;text-decoration:underline;cursor:pointer}
@keyframes anexo-entra{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}

/* erro de envio e botão enviando */
.form-status{margin:18px 0 0;padding:12px 14px;border-radius:8px;background:#fdecec;color:#b42318;font-size:14px;line-height:1.5}
#consultation-send.enviando{opacity:.75;cursor:progress}
#consultation-send.enviando span[aria-hidden]{display:inline-block;width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;font-size:0;animation:gira .7s linear infinite}
@keyframes gira{to{transform:rotate(360deg)}}

/* confirmação de envio */
.envio-ok{padding:40px 32px;background:#fff;border:1px solid var(--line,#dce2da);border-radius:12px;text-align:center;outline:none}
.envio-ok .eyebrow{margin-top:18px}
.envio-ok h3{font-size:32px;line-height:1.15;letter-spacing:-1px;margin:6px 0 14px;font-weight:500}
.envio-ok>p{color:var(--muted,#617067);line-height:1.7;max-width:440px;margin:0 auto}
.envio-ok>p strong{color:var(--ink,#142a21);font-weight:600}
.envio-ok-check{width:76px;height:76px;display:block;margin:0 auto}
.envio-ok-check circle{fill:#e3f4e8;stroke:#2f7a4f;stroke-width:2;stroke-dasharray:152;stroke-dashoffset:0}
.envio-ok-check path{fill:none;stroke:#2f7a4f;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:40;stroke-dashoffset:0}
.envio-ok-passos{list-style:none;padding:0;margin:26px auto 26px;max-width:420px;text-align:left;display:grid;gap:12px}
.envio-ok-passos li{display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.5;color:#33463b}
.envio-ok-passos li>span:first-child{flex:none;width:24px;height:24px;border-radius:50%;background:#eef4ef;color:#2f7a4f;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center}
.envio-ok .button{width:auto;margin:0 auto}
.envio-ok.animar{animation:ok-entra .45s cubic-bezier(.2,.8,.2,1) both}
.envio-ok.animar .envio-ok-check circle{animation:ok-circulo .6s ease-out .1s both}
.envio-ok.animar .envio-ok-check path{animation:ok-traco .35s ease-out .55s both}
.envio-ok.animar .envio-ok-passos li{animation:ok-sobe .4s ease-out both}
.envio-ok.animar .envio-ok-passos li:nth-child(1){animation-delay:.7s}
.envio-ok.animar .envio-ok-passos li:nth-child(2){animation-delay:.8s}
.envio-ok.animar .envio-ok-passos li:nth-child(3){animation-delay:.9s}
@keyframes ok-entra{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
@keyframes ok-circulo{from{stroke-dashoffset:152;fill:#fff}to{stroke-dashoffset:0;fill:#e3f4e8}}
@keyframes ok-traco{from{stroke-dashoffset:40}to{stroke-dashoffset:0}}
@keyframes ok-sobe{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.envio-ok.animar,.envio-ok.animar *,.diag-anexo{animation:none!important}}
@media(max-width:640px){.envio-ok{padding:32px 20px}.envio-ok h3{font-size:26px}.envio-ok .button{width:100%}.diag-anexo{flex-wrap:wrap}}
