.modal-devis-drawer {
    --drawer-dark: #181d24;
    --drawer-border: rgba(24, 29, 36, .12);
}

.modal-devis-drawer .modal-dialog.modal-devis {
    width: min(720px, 100vw);
    max-width: none;
    height: 100%;
    min-height: 100%;
    margin: 0 0 0 auto;
}

.modal.fade.modal-devis-drawer .modal-dialog.modal-devis {
    transform: translate3d(100%, 0, 0);
    transition: transform 520ms cubic-bezier(.22, 1, .36, 1);
}

.modal.show.modal-devis-drawer .modal-dialog.modal-devis {
    transform: translate3d(0, 0, 0);
}

.modal-devis-drawer .modal-content {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    width: 100%;
    height: 100dvh;
    max-height: none;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 32px 0 0 32px;
    background: #fff;
    box-shadow: -24px 0 70px rgba(0, 0, 0, .2);
}

.modal-devis-drawer .devis-drawer__banner {
    position: relative;
    isolation: isolate;
    display: block;
    min-height: 250px;
    padding: clamp(34px, 6vw, 64px);
    overflow: hidden;
    border: 0;
    color: #fff;
    background: var(--drawer-dark);
}

.modal-devis-drawer .devis-drawer__banner::after {
    content: '';
    position: absolute;
    inset: -20%;
    z-index: 0;
    background: radial-gradient(circle at 24% 28%, rgba(25, 158, 220, .22), transparent 32%), radial-gradient(circle at 76% 70%, rgba(113, 52, 200, .2), transparent 38%);
    animation: devisDrawerHeroDrift 11s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes devisDrawerHeroDrift {
    from { transform: translate3d(-2%, -2%, 0) scale(1); }
    to { transform: translate3d(2%, 2%, 0) scale(1.1); }
}

.devis-drawer__field {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    opacity: .7;
    pointer-events: none;
}

.devis-drawer__banner-content {
    position: relative;
    z-index: 1;
    max-width: 570px;
    text-align: left;
}

.modal-devis-drawer .devis-drawer__eyebrow {
    margin: 0 0 14px;
    color: #74d1ef;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.modal-devis-drawer .modal-title {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 400;
    line-height: 1.04;
    text-align: left;
    text-wrap: balance;
}

.modal-devis-drawer .devis-drawer__banner-content > p:last-child {
    max-width: 520px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    line-height: 1.6;
}

.devis-drawer__close {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 3;
    display: inline-grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    font-size: 30px;
    font-weight: 300;
    line-height: 1;
    transition: background-color .2s ease, transform .2s ease;
}

.devis-drawer__close:hover,
.devis-drawer__close:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, .18);
    transform: rotate(6deg);
}

.devis-drawer__close:focus-visible {
    outline: 2px solid #74d1ef;
    outline-offset: 3px;
}

.modal-devis-drawer .modal-body {
    min-height: 0;
    padding: clamp(28px, 5vw, 48px) clamp(24px, 6vw, 56px) 0;
    overflow: auto;
    scrollbar-color: rgba(1, 163, 222, .45) transparent;
}

.modal-devis-drawer .devis-form-submit {
    display: flex;
    min-height: 100%;
    flex-direction: column;
}

.modal-devis-drawer .devis-form-submit > p:first-child {
    margin: 0 0 24px;
    color: #5d6570;
    font-size: 14px;
}

.modal-devis-drawer .col-input {
    text-align: left;
}

.modal-devis-drawer .devis-drawer__footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    margin: auto clamp(-56px, -6vw, -24px) 0;
    padding: 18px clamp(24px, 6vw, 56px) calc(18px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--drawer-border);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
}

.modal-devis-drawer .devis-form-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
}

.modal-devis-drawer .devis-form-actions .hero-btn {
    min-height: 52px;
    margin: 0;
    padding: 12px 22px;
    border-radius: 9999px;
    box-shadow: none;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
    transform: none;
}

.modal-devis-drawer .hero-btn--primary {
    color: #fff;
    border-color: var(--secondaryColor);
    background: var(--secondaryColor);
}

.modal-devis-drawer .hero-btn--secondary {
    color: #121317;
    border-color: transparent;
    background: #f0f2f6;
}

.modal-devis-drawer .devis-whatsapp-button:hover,
.modal-devis-drawer .devis-whatsapp-button:focus-visible {
    color: #fff;
    border-color: #1ebe5d;
    background: #1ebe5d;
}

.modal-devis-drawer .devis-whatsapp-button {
    color: #fff;
    border-color: #25d366;
    background: #25d366;
}

.modal-devis-drawer .devis-form-actions .btn::before {
    display: none;
}

.modal-devis-drawer .devis-form-actions .bubble-up-button__fill {
    display: block;
}

.modal-devis-drawer .select2-container--open {
    z-index: 1080;
}

.modal-devis-drawer .select2-dropdown {
    overflow: hidden;
    border: 1px solid #cceaf7;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(24, 29, 36, .16);
}

.modal-devis-drawer .select2-results__option {
    padding: 12px 16px;
    color: #24282e;
    font-size: 14px;
    line-height: 1.4;
}

.modal-devis-drawer .select2-container--default .select2-results__option--highlighted[aria-selected] {
    color: #173f59;
    background: #cceaf7;
}

.modal-devis-drawer .select2-container--default .select2-results__option[aria-selected=true] {
    color: #173f59;
    background: #f6fbfd;
}

@media (max-width: 767.98px) {
    .modal-devis-drawer .modal-dialog.modal-devis {
        width: 100%;
        margin: 0;
    }

    .modal-devis-drawer .modal-content {
        border-radius: 0;
    }

    .modal-devis-drawer .devis-drawer__banner {
        min-height: 215px;
        padding: 72px 22px 30px;
    }

    .devis-drawer__close {
        top: 18px;
        right: 18px;
    }

    .modal-devis-drawer .modal-body {
        padding: 24px 18px 0;
    }

    .modal-devis-drawer .devis-drawer__footer {
        margin-right: -18px;
        margin-left: -18px;
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    }

    .modal-devis-drawer .devis-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }

    .modal-devis-drawer .devis-form-actions .hero-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal.fade.modal-devis-drawer .modal-dialog.modal-devis,
    .devis-drawer__close {
        transition: none;
    }
}
