/* Modais globais de captura de leads (orçamento, WhatsApp e checklist) e botão flutuante do WhatsApp.
   Usados em todas as páginas. As cores vêm das variáveis de cada página; os valores após a vírgula são o padrão. */
.lm-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; overflow-y: auto; background: rgba(14, 26, 51, .72); opacity: 0; transition: opacity .25s ease; }
.lm-overlay.lm-in { opacity: 1; }
.lm-overlay[hidden] { display: none !important; }
.lm-dialog { position: relative; width: 100%; max-width: 520px; margin: auto; background: var(--surface, #fff); color: var(--fg, #0F172A); border: 1px solid var(--glass-line, rgba(37, 99, 235, .16)); border-radius: 8px; padding: clamp(24px, 5vw, 40px); font-family: 'Raleway', 'Raleway Fallback', 'Segoe UI', system-ui, sans-serif; font-size: 16px; line-height: 1.6; text-align: left; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); transform: translateY(22px) scale(.97); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.lm-in .lm-dialog { transform: none; }
.lm-dialog * { box-sizing: border-box; }
.lm-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 4px; display: grid; place-items: center; background: var(--bg-alt, #F8F9FA); color: var(--muted, #526077); border: 1px solid var(--line, #E3E8F0); cursor: pointer; padding: 0; }
.lm-close:hover { color: var(--fg, #0F172A); }
.lm-icon { width: 48px; height: 48px; border-radius: 6px; display: grid; place-items: center; background: var(--accent-soft, #EAF1FF); color: var(--accent, #2563EB); border: 1px solid var(--glass-line, rgba(37, 99, 235, .16)); }
.lm-icon.wa { background: rgba(37, 211, 102, .14); color: #1FAF54; }
.lm-icon.ok { background: rgba(22, 163, 74, .12); color: #16A34A; }
.lm-icon svg, .lm-fab svg, .lm-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lm-btn svg { width: 18px; height: 18px; }
.lm-eyebrow { display: block; margin-top: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent, #2563EB); }
.lm-title { margin: 14px 0 0; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; padding-right: 28px; }
.lm-eyebrow + .lm-title { margin-top: 8px; }
.lm-text { margin: 12px 0 0; color: var(--muted, #526077); font-size: 16px; }
.lm-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.lm-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.lm-input { width: 100%; background: var(--bg, #fff); color: var(--fg, #0F172A); border: 1px solid var(--line, #E3E8F0); border-radius: 4px; padding: 13px 14px; font: inherit; font-size: 16px; }
.lm-input::placeholder { color: var(--muted, #526077); opacity: .8; }
.lm-input:focus { outline: 2px solid var(--accent, #2563EB); outline-offset: 1px; border-color: var(--accent, #2563EB); }
textarea.lm-input { resize: vertical; min-height: 92px; }
.lm-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .lm-row { grid-template-columns: 1fr 1fr; } }
.lm-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.lm-error { margin: 0; color: #DC2626; font-size: 14px; font-weight: 500; }
.lm-note { margin: 0; font-size: 12.5px; color: var(--muted, #526077); line-height: 1.5; }
.lm-note a { color: var(--accent, #2563EB); text-decoration: underline; }
.lm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-weight: 700; font-size: 16px; border-radius: 4px; padding: 15px 24px; cursor: pointer; border: 1px solid transparent; text-decoration: none; text-align: center; color: #fff; background: var(--accent, #1B4FD1); box-shadow: 0 1px 2px rgba(15, 23, 42, .14); transition: background .2s ease, opacity .2s ease; }
.lm-btn:hover { background: var(--accent-ink, #143FA8); }
.lm-btn[disabled] { opacity: .7; cursor: wait; transform: none; }
.lm-btn.wa { background: #25D366; }
.lm-btn.wa:hover { background: #1FBF5B; }
.lm-btn.ghost { background: var(--surface, #fff); color: var(--fg, #0F172A); border-color: var(--line, #E3E8F0); box-shadow: none; }
.lm-done { text-align: center; padding-block: 8px; }
.lm-done .lm-icon { width: 60px; height: 60px; border-radius: 18px; margin-inline: auto; }
.lm-done .lm-title { padding-right: 0; font-size: 28px; margin-top: 22px; }
.lm-done .lm-btn { margin-top: 28px; }
.lm-done .lm-btn + .lm-btn { margin-top: 12px; }

.lm-fab { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 900; display: inline-flex; align-items: center; gap: 10px; background: #25D366; color: #fff; font: inherit; font-family: 'Raleway', 'Raleway Fallback', 'Segoe UI', system-ui, sans-serif; font-weight: 600; font-size: 15px; padding: 14px 18px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .65); animation: lm-fab-in .6s 1.2s cubic-bezier(.22, 1, .36, 1) both; transition: transform .25s ease; }
.lm-fab:hover { transform: translateY(-3px); }
.lm-fab svg { width: 22px; height: 22px; }
.lm-fab span { display: none; }
@media (min-width: 640px) { .lm-fab span { display: inline; } }
@keyframes lm-fab-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
body.lm-lock { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .lm-overlay, .lm-dialog, .lm-btn, .lm-fab { transition: none; animation: none; } }

/* campos com erro amigável, aviso de lead parcial, atalhos e provas */
.lm-field label small { font-weight: 400; color: var(--muted, #4A5261); }
.lm-err { margin: 6px 0 0; font-size: 13.5px; color: #B42318; font-weight: 600; }
.lm-input[aria-invalid="true"] { border-color: #B42318; }
.lm-hint { margin: 6px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted, #4A5261); }
.lm-hint a { color: inherit; text-decoration: underline; }
.lm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lm-chip { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 4px; border: 1px solid var(--line-strong, #B9C0CB); background: var(--surface, #fff); color: var(--fg, #0E1116); cursor: pointer; }
.lm-chip:hover, .lm-chip.on { border-color: var(--fg, #0E1116); }
.lm-proof { margin: 2px 0 0; font-size: 13px; color: var(--muted, #4A5261); }
.lm-under { margin: -4px 0 0; font-size: 13.5px; color: var(--fg, #0E1116); }
.lm-under a { color: inherit; }
