.modal_form
    {
    position: fixed;
    top: 20%;
    width: 50%;
    margin: 0 auto;
    background: var(--dark-bg);
    padding: 20px;
    text-align: center;
    box-sizing: border-box;
    box-shadow: 0 5px 10px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
    color: #fff;
    border-radius: 4px;

    left: 100%;
    opacity: 0;
    z-index: 9999;
    }
.modal_form.active
    {
    left: 25%;
    opacity: 1;
    }

.modal_form h3
    {
    color: #fff;
    }

/* Callback modal */

#callback_modal
    {
    top: auto;
    bottom: 100px;

    width: 260px;
    padding: 35px 30px 30px;
    }
    #callback_modal.active
        {
        left: calc(100% - 300px);
        }
    #callback_modal .round_btn
        {
        width: 100%;
        font-size: 16px;
        font-weight: 200;
        box-sizing: border-box;
        }
    #callback_modal,
    #callback_modal .main_phone,
    #callback_modal input[type='text']
        {
        color: #fff;
        display: block;
        }
    #callback_modal .main_phone
        {
        font-size: 22px;
        }
        #callback_modal .main_phone:hover
            {
            color: var(--active-color);
            }

    #callback_modal .round_btn.phone
        {
        margin: 10px 0 20px 0;
        }
    #callback_modal .or_callback    
        {
        font-size: 22px;
        }
    #callback_modal::after
        {
        content: "";
        position: absolute;

        bottom: -12px;
        right: 20px;

        width: 0;
        height: 0;

        border-left: 24px solid transparent;
        border-top: 12px solid var(--dark-bg);
        }
    #callback_modal input[type='text']
        {
        text-align: center;
        font-size: 16px;
        padding: 10px 0;
        background-color: var(--dark-bg);
        border: #5F5F5F 1px solid;
        border-radius: 2px;
        }

    #callback_modal input
        {
        font-family: "PT Sans", sans-serif;
        }


/* Discuss modal */
.discuss_form
    {
    padding: 40px 60px;
    text-align: left;
    }
    .discuss_form .close
        {
        top: 10px;
        right: 10px;
        }

    .discuss_form h2,
    .discuss_form p
        {
        color: #fff;
        }
    .discuss_form h2
        {
        font-size: 26px;
        margin: 0;
        font-weight: 400;
        }
    .discuss_form .input_div
        {
        margin: 30px 0;
        }
    .discuss_form .radio_wrap
        {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
        }
    .discuss_form .radio_wrap .round_btn
        {
        background: var(--dark-bg);
        color: #fff;
        border: 1px #fff solid;
        white-space: nowrap;
        }
        .discuss_form .radio_wrap input
            {
            display: none;
            }
        .discuss_form .radio_wrap .round_btn:has(input:checked)
            {
            background: #fff;
            color: #000;
            }

    .discuss_form .info
        {
        padding: 0 30px;
        box-sizing: border-box;
        }

        .discuss_form .info input
            {
            width: 100%;
            }
        .discuss_form .info  input[type="text"],
        .discuss_form .info  input[type="email"]
            {
            border-bottom: 1px #fff solid;
            font-size: 14px;
            padding: 10px 0;
            margin: 5px 0;
            }
        .discuss_form .info .submit_wrap
            {
            margin-top: 50px;
            }
    .discuss_form .info .logo_wrap.mobile
        {
        display: none;
        }



.modal_form input[type="text"],
.modal_form input[type="email"],
.modal_form textarea
    {
    width: 100%;
    margin: 10px 0;
    box-sizing: border-box;
    background-color: var(--dark-bg);
    border: 0;
    color: #fff;
    }

.modal_form .btn_row
    {
    display: flex;
    padding: 20px;
    justify-content: center;
    }


.modal_form .alert 
    {
    color: #fff;
    padding: 30px 0;
    margin: 20px 0;
    }

.modal_form .close
    {
    position: absolute;
    top: 5px;
    right: 5px;

    width: 26px;
    height: 26px;

    cursor: pointer;
    }
    .modal_form .close span
        {
        display: block;
        position: absolute;
        top: calc(50% - 1px);
        width: 100%;
        height: 1px;
        background: #fff;
        transition: background 0.3s ease-in-out;
        }
    .modal_form .close:hover span
        {
        background: red;
        }
        .modal_form .close span:nth-child(1) { transform: rotate(45deg)  }
        .modal_form .close span:nth-child(2) { transform: rotate(-45deg) }



.response_form_layout
    {
    display: none;
    }



.global_fade_mask
    {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    }
    .global_fade_mask.active
        {
        display: block;
        z-index: 9999;
        }


body.no_scroll
    {
    overflow: hidden;
    }


/* ============================================================================ */
/* меньше 1700px            =================================================== */
/* ============================================================================ */
@media (max-width: 1700px) {

.modal_form
    {
    width: 80%;
    }
    .modal_form.active
        {
        left: 10%;
        }
    
}



/* ============================================================================ */
/* Телефон - меньше 768px   =================================================== */
/* ============================================================================ */
@media (max-width: 768px) {

.modal_form
    {
    width: 98%;
    }
.modal_form.active
    {
    left: 1%;
    }

#discuss_modal.modal_form
    {
    padding-top: 40px;
    top: 0;
    height: 100vh;
    width: 100%;
    }
#discuss_modal.modal_for.active
    {
    left: 0;
    }


.discuss_form
    {
    width: 100%;
    padding: 0;
    }
    .discuss_form .round_btn
        {
        padding: 4px 15px;
        }

    .discuss_form .input_div
        {
        margin: 10px 0 20px 0;
        }

    .discuss_form .info
        {
        padding: 0;
        box-sizing: border-box;
        }
    .discuss_form .info .logo_wrap.desktop
        {
        display: none;
        outline: 1px red dashed;
        }
    .discuss_form .info .logo_wrap.mobile
        {
        display: block;
        }
    .discuss_form .info  input[type="text"],
    .discuss_form .info  input[type="email"]
        {
        font-size: 14px;
        padding: 5px 0;
        margin: 5px 0;
        }
    .discuss_form .info .submit_wrap
        {
        margin-top: 30px;
        }

    .discuss_form .info  input[type="submit"]
        {
        width: calc(100% - 100px);
        font-size: 20px;
        height: 48px;
        }



}