.modal {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    max-width: 1000px;
    height: auto;
    max-height: 85vh;
    top: calc(50%);
    left: 0;
    right: 0;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-50%);
    position: fixed;
    overflow: inherit;
    z-index: -1
}

    .modal::-webkit-scrollbar {
        width: 8px;
        height: 8px;
        cursor: pointer;
    }
.close-modal {
    position: fixed;
    right: 20px;
    top: 10px;
    transition: all 0.3s ease 0s;
    background-color: #fff;
    margin: 0 !important;
    z-index: 100;
    cursor: pointer;
    border-radius: 4px;
}
.overlay {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 100
}

    .overlay.is-visible {
        opacity: 1;
        pointer-events: auto;
    }

.modal.is-visible {
    opacity: 1;
    pointer-events: auto;
    top: calc(50%);
    z-index: 10000;
}




@media screen and (max-width: 1200px) {
    .modal {
        max-width: 900px
    }
}

@media screen and (max-width: 992px) {
    .modal {
        max-width: 768px
    }
}

@media screen and (max-width: 768px) {
    .modal {
        max-width: 576px
    }
}

@media screen and (max-width: 576px) {
    .modal {
        max-width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        overflow: auto;
    }
    .close-modal {
        top: 35px;
    }
}