.contact-chat {
    position: fixed;
    right: max(22px, env(safe-area-inset-right));
    bottom: max(22px, env(safe-area-inset-bottom));
    z-index: 88;
    font-family: inherit;
}
.contact-chat__launcher {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #169be6, #0758b8);
    box-shadow: 0 18px 42px rgba(7, 78, 164, .28);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}
.contact-chat__launcher:hover,
.contact-chat__launcher:focus-visible { transform: translateY(-3px); box-shadow: 0 22px 48px rgba(7, 78, 164, .34); }
.contact-chat__launcher svg { width: 29px; height: 29px; }
.contact-chat__launcher .contact-chat__close-icon { display: none; }
.contact-chat.is-open .contact-chat__launcher .contact-chat__bubble-icon { display: none; }
.contact-chat.is-open .contact-chat__launcher .contact-chat__close-icon { display: block; }
.contact-chat__panel {
    position: absolute;
    right: 0;
    bottom: 76px;
    width: min(390px, calc(100vw - 32px));
    overflow: hidden;
    border: 1px solid rgba(175, 207, 239, .86);
    border-radius: 26px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 30px 75px rgba(10, 54, 116, .22);
    transform-origin: bottom right;
    animation: chatPanelIn .24s ease both;
}
.contact-chat__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px 14px;
    color: #fff;
    background: linear-gradient(125deg, #083b86, #0875ce 68%, #159ee7);
}
.contact-chat__identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.contact-chat__identity img { width: 38px; height: 38px; padding: 7px; border-radius: 12px; background: rgba(255,255,255,.13); }
.contact-chat__identity strong,
.contact-chat__identity small { display: block; }
.contact-chat__identity strong { font-size: .95rem; }
.contact-chat__identity small { margin-top: 2px; font-size: .72rem; opacity: .82; }
.contact-chat__close {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
    color: #fff;
    background: rgba(255,255,255,.08);
    cursor: pointer;
}
.contact-chat__close svg { width: 16px; height: 16px; }
.contact-chat__progress-wrap { padding: 12px 20px 0; }
.contact-chat__progress-meta { display: flex; justify-content: space-between; gap: 12px; color: #5c718b; font-size: .68rem; }
.contact-chat__progress {
    --chat-progress: 25%;
    position: relative;
    height: 3px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5eef8;
}
.contact-chat__progress::after {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: var(--chat-progress);
    border-radius: inherit;
    background: linear-gradient(90deg, #159ee7, #0758b8);
    transition: width .25s ease;
}
.contact-chat__form { padding: 18px 20px 20px; }
.contact-chat__step { min-height: 250px; }
.contact-chat__step[hidden] { display: none !important; }
.contact-chat__eyebrow { margin: 0 0 8px; color: #0873c8; font-size: .67rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.contact-chat__step h3 { margin: 0; color: #172b46; font-size: 1.34rem; line-height: 1.15; letter-spacing: -.025em; }
.contact-chat__step > p:not(.contact-chat__eyebrow) { margin: 9px 0 18px; color: #637792; font-size: .88rem; line-height: 1.55; }
.contact-chat__field { display: grid; gap: 7px; margin-top: 18px; }
.contact-chat__field span { color: #263c57; font-size: .75rem; font-weight: 750; }
.contact-chat__field input,
.contact-chat__field select,
.contact-chat__field textarea {
    width: 100%;
    border: 1px solid #c8daed;
    border-radius: 14px;
    outline: 0;
    color: #172b46;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-chat__field input,
.contact-chat__field select { height: 48px; padding: 0 13px; }
.contact-chat__field textarea { min-height: 100px; padding: 12px 13px; resize: vertical; line-height: 1.5; }
.contact-chat__field input:focus,
.contact-chat__field select:focus,
.contact-chat__field textarea:focus { border-color: #168eda; box-shadow: 0 0 0 4px rgba(22,142,218,.09); }
.contact-chat__actions { display: flex; align-items: center; justify-content: flex-end; gap: 9px; margin-top: 22px; }
.contact-chat__button {
    min-height: 43px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-size: .76rem;
    font-weight: 800;
    cursor: pointer;
}
.contact-chat__button--primary { color: #fff; background: linear-gradient(135deg, #159ee7, #0966c2); }
.contact-chat__button--ghost { color: #31516f; background: #edf5fb; }
.contact-chat__button:disabled { opacity: .62; cursor: wait; }
.contact-chat__message-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.contact-chat__choice {
    min-height: 70px;
    padding: 12px;
    border: 1px solid #c9dcef;
    border-radius: 16px;
    color: #29435f;
    background: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 750;
    cursor: pointer;
}
.contact-chat__choice.is-active { border-color: #168eda; color: #0758b8; background: #edf8ff; box-shadow: inset 0 0 0 1px #168eda; }
.contact-chat__consent { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 9px; align-items: start; margin-top: 16px; color: #667c94; font-size: .68rem; line-height: 1.45; }
.contact-chat__consent input { margin: 2px 0 0; }
.contact-chat__consent a { color: #0873c8; text-decoration: underline; }
.contact-chat__success { padding: 34px 24px 30px; text-align: center; }
.contact-chat__success-icon { display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; color: #0873c8; background: #e8f7ff; }
.contact-chat__success-icon svg { width: 28px; height: 28px; }
.contact-chat__success h3 { margin: 0; color: #172b46; font-size: 1.3rem; }
.contact-chat__success p { margin: 9px 0 18px; color: #667c94; font-size: .86rem; line-height: 1.55; }
.contact-chat__honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
body.menu-open .contact-chat { opacity: 0; pointer-events: none; }
@keyframes chatPanelIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 620px) {
    .contact-chat { right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); }
    .contact-chat__launcher { width: 56px; height: 56px; }
    .contact-chat__panel {
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: calc(78px + env(safe-area-inset-bottom));
        width: auto;
        max-height: min(690px, calc(100dvh - 100px));
        overflow-y: auto;
        border-radius: 22px;
    }
    .contact-chat__step { min-height: 230px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-chat__panel { animation: none; }
    .contact-chat__launcher { transition: none; }
}
