.flpswt-quote-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.flpswt-quote-modal.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.flpswt-quote-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(4px);
}

.flpswt-quote-modal__panel {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    max-height: calc(100dvh - 48px);
    padding: 28px 34px 34px;
    overflow-y: auto;
    background: #fff;
    border: 5px solid #000;
    box-shadow: 12px 12px 0 #000;
    box-sizing: border-box;
    transform: translateY(20px) scale(0.98);
    transition: transform 0.2s ease;
    -webkit-overflow-scrolling: touch;
}

.flpswt-quote-modal.is-open .flpswt-quote-modal__panel {
    transform: translateY(0) scale(1);
}

.flpswt-quote-modal__close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    margin: 0 0 8px 16px;
    padding: 0;
    background: #00a8e0;
    border: 3px solid #000;
    box-shadow: 3px 3px 0 #000;
    color: #fff;
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.flpswt-quote-modal__close:hover,
.flpswt-quote-modal__close:focus-visible {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 #000;
}

.flpswt-quote-modal__form,
.flpswt-quote-modal__form * {
    box-sizing: border-box;
}

.flpswt-quote-modal__form::after {
    content: "";
    display: block;
    clear: both;
}

body.flpswt-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .flpswt-quote-modal {
        display: block;
        padding: 0;
    }

    .flpswt-quote-modal__panel {
        width: 100%;
        max-width: none;
        height: 100dvh;
        max-height: none;
        padding: 14px 16px 28px;
        border: 0;
        box-shadow: none;
        transform: translateY(30px);
    }

    .flpswt-quote-modal__close {
        width: 38px;
        height: 38px;
        margin-bottom: 4px;
    }
}