body.modal-open {
    overflow: hidden;
}

.modal-form-section {
    /*display: none;*/
    padding: 10vh 0 !important;
    overscroll-behavior: contain;
    background-color: rgba(0, 0, 0, 0.66);
    position: fixed;
    height: 100vh;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99999;



    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0px);
    transition:
            opacity 0.35s ease,
            backdrop-filter 0.4s ease,
            visibility 0.35s ease;
}

.modal-form-section.active {
    /*display: block;*/
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    backdrop-filter: blur(6px);
}

.modal-form-content {
    text-align: center;
    margin-bottom: 40px;
}

.modal-form-section .modal-form-row {
    max-height: 80vh;
    padding: 60px 20px;
    background-color: var(--bg-light);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;

    position: relative;

    /* animation setup */
    transform: translateY(50px) scale(0.25);
    opacity: 0;

    transition:
            transform 0.55s cubic-bezier(0.16, 1.4, 0.3, 1),
            opacity 0.35s ease;
}
.modal-form-section.active .modal-form-row {
    transform: translateY(0) scale(1);
    opacity: 1;
    transition-delay: 0.25s;
}
.modal-form-section .modal-form-row .modal-form-column {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 20px;
}

.modal-form-section .modal-form-row .modal-form-column {
    position: unset;
}

.modal-form-section h2 {
    font-size: var(--font-size-25) !important;
    margin-bottom: 10px;
}

.modal-form-section .subtitle {
    color: #555;
    margin-bottom: 40px;
}

.modal-form-section .steps {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 30px;
}

.modal-form-section .step {
    max-width: 220px;
}

.modal-form-section .circle {
    width: 60px;
    height: 60px;
    background-color: var(--blue);
    color: var(--secondary-font-color);
    font-size: 22px;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.modal-form-close-btn {
    position: absolute;
    right: 20px;
    top: 10px;
}

.modal-form-close-btn button {
    background-color: var(--blue);
    border-radius: 50%;
    cursor: pointer;
    padding: 1px;
    width: 30px;
    height: 30px;
}
.modal-form-close-btn button:hover {
    background-color: var(--green);
    border-color: var(--blue);
}
.modal-form-close-btn button:hover::after {
    color: var(--blue);
}
.modal-form-close-btn button::after {
    font-family: 'ETmodules', serif;
    content: "M";
    font-size: 20px;
    color: var(--bg-light);
    font-weight: 700;
}

.modal-form-submit-btn {
    width: 100%;
    background-color: var(--blue) !important;
    color: var(--secondary-font-color) !important;
}

/* Modal scrollbar */
.modal-form-column::-webkit-scrollbar {
    width: 8px;
}

.modal-form-column::-webkit-scrollbar-track {
    background: var(--bg-gray);
    border-radius: 10px;
}

.modal-form-column::-webkit-scrollbar-thumb {
    background: var(--blue);
    border-radius: 10px;
}

.modal-form-column::-webkit-scrollbar-thumb:hover {
    background: var(--green);
}

@media (min-width: 768px) {
    .modal-form_checkbox .ff-el-input--content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-form-section .steps {
        flex-direction: row;
        gap: 80px;
    }

    .modal-form-section .modal-form-row {
        padding: clamp(40px, 4vw, 60px) clamp(26px, 2.4vw, 40px);
        width: 80%;
        border-radius: 54px;
    }
}


