/* Scoped progressive enhancement: brand, consent and native form contracts stay intact. */
:root{--lead-accent:#315dd0;--lead-ink:#172435;--lead-muted:#526071;--lead-border:#d7e0e9}
body:has(#garant-crm-dialog),body:has(form[id^="cc-mm-form-"]){--lead-accent:#188415}
.fv-dialog,.crm-lead-dialog{box-sizing:border-box;width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 32px);margin:auto;border:1px solid var(--lead-border);border-radius:22px;background:white;color:var(--lead-ink);box-shadow:0 28px 90px #142b4340;overflow:auto}
.crm-lead-dialog{padding:32px}
.fv-dialog-inner{padding:32px}
.fv-dialog::backdrop,.crm-lead-dialog::backdrop{background:#12223599;backdrop-filter:blur(4px)}
.fv-dialog h2,.crm-lead-dialog h2{font-size:28px;line-height:1.2;letter-spacing:-.5px;margin:4px 32px 24px 0;color:var(--lead-ink)}
.fv-dialog-close,[data-crm-close]{position:absolute;right:10px;top:10px;width:44px;height:44px;border:0;border-radius:50%;color:#526071;background:transparent;font:30px/1 Arial;cursor:pointer}
.fv-request-form,.crm-lead-dialog form,form[id^="cc-mm-form-"]{min-width:0}
.fv-request-form input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not(.fv-honeypot),.fv-request-form textarea,.fv-request-form select,.crm-lead-dialog .form-control,form[id^="cc-mm-form-"] .form-control{box-sizing:border-box;max-width:100%;min-height:50px;border:1px solid var(--lead-border);border-radius:10px;padding:12px 14px;background:#f8fafc;color:var(--lead-ink);font-size:16px;line-height:1.4;box-shadow:none}
.crm-lead-dialog label:not(.crm-consent){display:block;font-size:14px;font-weight:600;margin:0 0 18px}
.crm-lead-dialog .form-control{display:block;width:100%;margin-top:7px}
.fv-request-form button[type=submit],.crm-lead-dialog button[type=submit],form[id^="cc-mm-form-"] button[type=submit]{min-height:50px;height:auto;padding:13px 20px;border:0;border-radius:10px;background:var(--lead-accent);color:white;font-size:16px;font-weight:600;white-space:normal;line-height:1.4;cursor:pointer}
.crm-lead-dialog button[type=submit]{width:100%}
.crm-consent{display:block;margin:6px 0 22px;font-size:13px;line-height:1.6;font-weight:400;color:var(--lead-muted)}
.crm-consent input,.fv-consent input{width:18px;height:18px;accent-color:var(--lead-accent);vertical-align:middle;margin-right:5px}
.crm-consent a{color:inherit;text-decoration:underline;text-underline-offset:3px}
[data-crm-status],.fv-form-status{border-radius:10px;background:#f1f5f9;padding:12px 14px;font-size:14px;line-height:1.5;overflow-wrap:anywhere}
[data-crm-status]:empty,.fv-form-status:empty{display:none}
.fv-form-status[data-state=error]{background:#fff0ee;color:#9c2c23}.fv-form-status[data-state=success]{background:#edf8ef;color:#23673a}
.fv-request-form :focus-visible,.crm-lead-dialog :focus-visible,form[id^="cc-mm-form-"] :focus-visible{outline:3px solid #eebc49;outline-offset:3px}
.site-phone-dialog .phone-eyebrow{display:block;font:700 11px/1.4 Arial,sans-serif;letter-spacing:1.3px;color:var(--phone-accent);margin:0 28px 14px 0}
.site-phone-dialog [data-close]{position:absolute;right:8px;top:6px;width:44px;min-height:44px;margin:0;padding:0;border-radius:50%;background:transparent;color:#526071;font-size:28px}
.site-phone-dialog h2{margin-right:16px}.site-phone-dialog input[aria-invalid=true]{border:2px solid #b32a24;background:#fff8f7}
.site-phone-dialog [data-status]{overflow-wrap:anywhere}
@media(max-width:520px){.fv-dialog-inner,.crm-lead-dialog{padding:26px 20px}.fv-dialog h2,.crm-lead-dialog h2{font-size:25px}.fv-request-form button[type=submit]{width:100%;max-width:100%}}
@media(prefers-reduced-motion:reduce){.fv-dialog,.crm-lead-dialog,.site-phone-dialog{scroll-behavior:auto}}
/* Explicit fallback keeps form text readable while webfonts load. */
.fv-request-form,.crm-lead-dialog,form[id^="cc-mm-form-"]{font-family:Manrope,Arial,sans-serif}
form[id^="cc-mm-form-"] .form-control,.crm-lead-dialog .form-control{font-family:inherit}
form[id^="cc-mm-form-"] label{font-family:Manrope,Arial,sans-serif}
form[id^="cc-mm-form-"] .form-agreement-yes{font-size:13px;line-height:1.6}
.crm-lead-dialog h2{font-family:Manrope,Arial,sans-serif;font-weight:700}
