
.quote-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999998;
    padding: 20px;
    align-items: center;
    justify-content: center;
}

.quote-modal.is-open {
    display: flex;
}

.quote-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .65);
}

.quote-modal-dialog {
    position: relative;
    width: min(100%, 900px);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, .25);
}

.quote-modal-content {
    padding: 40px;
}

.quote-modal-content h2 {
    margin: 0 40px 24px 0;
    color: #282343;
    font-size: 26px;
    line-height: 1.3;
}

.quote-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #666;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.quote-modal-close:hover {
    color: #111;
}

.quote-modal-close:focus-visible {
    outline: 2px solid #ff5b14;
    outline-offset: 2px;
}

body.quote-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .quote-modal {
        padding: 12px;
    }

    .quote-modal-dialog {
        max-height: calc(100vh - 24px);
    }

    .quote-modal-content {
        padding: 28px 20px;
    }

    .quote-modal-content h2 {
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: no-preference) {
    .quote-modal-dialog {
        animation: quote-modal-enter .18s ease-out;
    }

    @keyframes quote-modal-enter {
        from {
            opacity: 0;
            transform: translateY(8px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}
