
/* Persistent conversion dock + modal — isolated from main site styles */
:root { --contact-dock-height: 64px; }

body { padding-bottom: calc(var(--contact-dock-height) + 26px + env(safe-area-inset-bottom, 0px)); }

.contact-dock {
    position: fixed;
    z-index: 2500;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    display: grid;
    grid-template-columns: auto auto;
    gap: 8px;
    padding: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(15,23,42,.10);
    box-shadow: 0 14px 42px rgba(15,23,42,.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    direction: ltr;
}
.contact-dock-btn {
    min-height: 48px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font: inherit;
    font-size: .86rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.contact-dock-btn:hover { transform: translateY(-1px); }
.contact-dock-btn svg { width: 21px; height: 21px; flex: 0 0 21px; fill: currentColor; }
.contact-dock-whatsapp { background: #25D366; color: #fff; }
.contact-dock-whatsapp:hover { background: #1fbd59; box-shadow: 0 8px 20px rgba(37,211,102,.24); }
.contact-dock-form { background: #0f172a; color: #fff; }
.contact-dock-form:hover { background: #1e293b; box-shadow: 0 8px 20px rgba(15,23,42,.20); }

.quick-lead-modal[hidden] { display: none !important; }
.quick-lead-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: center;
    padding: 20px;
}
.quick-lead-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8,15,29,.70);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.quick-lead-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 540px);
    max-height: min(88vh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #334155;
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0,0,0,.28);
    padding: 28px;
}
.quick-lead-close {
    position: absolute;
    top: 12px;
    inset-inline-end: 14px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f8f5f0;
    color: #0f172a;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.quick-lead-head { padding-inline-end: 34px; margin-bottom: 20px; }
.quick-lead-kicker {
    color: #b8944a;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.quick-lead-head h2 { margin: 0 0 7px; color: #0f172a; font-size: 1.65rem; }
.quick-lead-head p { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.65; }
.quick-form-group { margin-bottom: 13px; }
.quick-form-group label { display: block; margin-bottom: 5px; color: #334155; font-size: .78rem; font-weight: 700; }
.quick-form-group .optional { color: #94a3b8; font-weight: 500; }
.quick-form-group input,
.quick-form-group select {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #dfe4ea;
    border-radius: 8px;
    background: #fff;
    color: #0f172a;
    font: inherit;
    font-size: .9rem;
    outline: 0;
}
.quick-form-group input:focus,
.quick-form-group select:focus { border-color: #c9a96e; box-shadow: 0 0 0 3px rgba(201,169,110,.13); }
.quick-consent {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 9px;
    align-items: start;
    margin: 4px 0 15px;
    color: #64748b;
    font-size: .74rem;
    line-height: 1.55;
}
.quick-consent input { margin-top: 3px; accent-color: #c9a96e; }
.quick-consent a { color: #9b783e; text-decoration: underline; }
.quick-submit {
    width: 100%;
    min-height: 46px;
    border: 0;
    border-radius: 999px;
    background: #c9a96e;
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}
.quick-submit:hover { background: #b8944a; }
.quick-submit[disabled] { opacity: .62; cursor: wait; }
.quick-form-note { margin: 8px 0 0; text-align: center; color: #94a3b8; font-size: .7rem; }
.quick-form-status { min-height: 0; margin-top: 10px; font-size: .78rem; text-align: center; }
.quick-form-status.is-success { color: #15803d; }
.quick-form-status.is-error { color: #b91c1c; }
body.quick-modal-open { overflow: hidden !important; }

html[dir="rtl"] .quick-lead-dialog,
html[dir="rtl"] .quick-lead-form { direction: rtl; text-align: right; }
html[dir="rtl"] .quick-form-group input[type="tel"],
html[dir="rtl"] .quick-form-group input[type="email"] { direction: ltr; text-align: right; }

@media (max-width: 600px) {
    :root { --contact-dock-height: 62px; }
    body { padding-bottom: calc(var(--contact-dock-height) + 18px + env(safe-area-inset-bottom, 0px)); }
    .contact-dock {
        width: calc(100% - 20px);
        bottom: max(8px, env(safe-area-inset-bottom));
        grid-template-columns: .82fr 1.18fr;
        gap: 6px;
        padding: 6px;
        border-radius: 16px;
    }
    .contact-dock-btn {
        min-width: 0;
        min-height: 48px;
        padding: 0 10px;
        font-size: .78rem;
    }
    .contact-dock-btn svg { width: 19px; height: 19px; flex-basis: 19px; }
    .quick-lead-modal { padding: 10px; align-items: end; }
    .quick-lead-dialog {
        width: 100%;
        max-height: 92vh;
        border-radius: 18px 18px 10px 10px;
        padding: 22px 16px 18px;
    }
    .quick-lead-head h2 { font-size: 1.4rem; }
}

@media (max-width: 360px) {
    .contact-dock-btn span { font-size: .72rem; }
    .contact-dock-btn { gap: 6px; padding-inline: 8px; }
}
