/* Modal "Acessar o Balcão" (assets/lead.js). Usa as cores do :root do site: claro e escuro automáticos. */
.lead-dlg { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); color: var(--text); box-shadow: 0 30px 80px -24px rgba(0,0,0,.45); overflow: auto; overscroll-behavior: contain; }
.lead-dlg::backdrop { background: rgba(9,9,11,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lead-dlg[open] { animation: lead-in .22s cubic-bezier(.2,.8,.2,1); }
@keyframes lead-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lead-dlg[open] { animation: none; } }
@media (max-width: 520px) { .lead-dlg { width: 100%; max-width: none; max-height: 100dvh; height: 100dvh; margin: 0; border-radius: 0; border: 0; } }
.lead-in { position: relative; padding: 24px 22px 22px; }
@media (min-width: 521px) { .lead-in { padding: 28px; } }
.lead-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); cursor: pointer; }
.lead-x:hover { color: var(--text); background: var(--panel2); }
.lead-x svg { width: 18px; height: 18px; }
.lead-h { padding-right: 40px; }
.lead-h .lead-t { font-weight: 700; font-size: 22px; line-height: 1.2; letter-spacing: -.015em; margin-top: 10px; }
.lead-h p { margin-top: 8px; font-size: 14px; color: var(--muted); }
.lead-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.lead-badge[hidden] { display: none; }
.lead-badge svg { width: 14px; height: 14px; }
.lead-f { display: grid; gap: 14px; margin-top: 20px; }
.lead-fd { display: grid; gap: 6px; }
.lead-fd label, .lead-fd .lbl { font-size: 13px; font-weight: 600; }
.lead-fd input, .lead-fd select { width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; font-size: 16px; }
.lead-fd select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.lead-fd input:focus, .lead-fd select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.lead-fd [aria-invalid="true"] { border-color: #dc2626; }
.lead-err { font-size: 12.5px; color: #dc2626; min-height: 0; }
@media (prefers-color-scheme: dark) { .lead-err { color: #f87171; } .lead-fd [aria-invalid="true"] { border-color: #f87171; } }
.lead-err:empty { display: none; }
.lead-chk { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.lead-chk input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--accent-btn); }
.lead-legal { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lead-legal a { color: var(--accent); }
.lead-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-f .btn { width: 100%; height: 46px; font-size: 15px; border: 0; cursor: pointer; }
.lead-f .btn[disabled] { opacity: .65; cursor: progress; }
.lead-alert { padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: color-mix(in srgb, #dc2626 10%, transparent); border: 1px solid color-mix(in srgb, #dc2626 30%, transparent); }
.lead-alert:empty { display: none; }
.lead-ok { text-align: center; padding-top: 8px; }
.lead-ok .icon { margin: 0 auto; width: 52px; height: 52px; border-radius: 16px; }
.lead-ok .icon svg { width: 26px; height: 26px; }
.lead-ok .lead-t { font-weight: 700; margin-top: 16px; font-size: 22px; letter-spacing: -.015em; }
.lead-ok p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.lead-ok .btn { width: 100%; height: 46px; margin-top: 18px; font-size: 15px; }
.lead-steps { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 8px; font-size: 13.5px; }
.lead-steps li { display: flex; gap: 10px; align-items: flex-start; }
.lead-steps b { flex: none; width: 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; background: var(--panel2); border: 1px solid var(--line); }
.lead-mgr { margin-top: 20px; padding: 14px; border: 1px dashed var(--line); border-radius: 14px; text-align: left; display: flex; gap: 12px; align-items: flex-start; background: var(--panel2); }
.lead-mgr .icon { width: 36px; height: 36px; border-radius: 10px; margin: 0; }
.lead-mgr .icon svg { width: 18px; height: 18px; }
.lead-mgr p { margin: 0; font-size: 13px; }
.lead-mgr a { color: var(--accent); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.lead-mgr a:hover { text-decoration: underline; }
body.lead-lock { overflow: hidden; }
