.lock {
    overflow: hidden;
}

.no-clicks {
    pointer-events: none;
}

section:has(.modal) {
    opacity: 0;
    visibility: hidden;
    overflow-y: auto;
    overflow-x: hidden;
    position: fixed;
    top: 0;
    left: 50%;
    z-index: 1000;
    width: calc(100vw - 10px);
    transform: translateX(-50%);
    height: 100%;
    min-height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    cursor: pointer;
    padding: 187px 25px 77px 25px;
}

section:has(.modal-closing) {
    opacity: 0!important;
    transition: all 0.8s ease;
}

section:has(.modal.modal-opened){
    opacity: 1;
    visibility: visible;
}
.get-a-commercial-fs {
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
    opacity: 0; /* Початкове значення прозорості */
    transition: transform 0.8s ease, opacity 0.5s ease; /* Додаємо плавний перехід для opacity */
    cursor: default;
    margin: 0 auto;
    position: relative;
    display: block;
    width: 100%;
    height: fit-content;
    padding: 20px;
    background: #FFF;
    border-radius: 15px;
    max-width: 700px;
}

.modal-opened.get-a-commercial-fs {
    transform: perspective(600px) translate(0px, 0px) rotateX(0deg);
    opacity: 1; /* Робимо модальне вікно видимим */
}

.modal-closing.get-a-commercial-fs {
    transform: perspective(600px) translate(0px, -100%) rotateX(45deg);
    opacity: 0; /* Робимо модальне вікно невидимим */
}



.get-a-commercial-fs .gform_footer [type=submit]:after {
    content: none;
    display: none;
}


.get-a-commercial-fs .wpcf7-form {
    margin-bottom: 0;
}

.get-a-commercial-fs__heading {
    margin-bottom: 20px;
    color: #131313;
}

@media screen and (max-width: 1023.98px) {
    .get-a-commercial-fs {
        height: fit-content;
    }

    .modal-close {
        cursor: pointer;
        position: absolute;
        top: -47px;
        right: 0;
    }

    .modal-close svg {
        width: 37px;
        height: 37px;
    }
}
