/* Отключаем стандартные стили позиционирования Bootstrap */
#BaseFormModal .modal-dialog {
    margin: 0;
    position: fixed;
    right: 12px;
    top: 12px;
    max-width: none;
    width: 950px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

#BaseFormModal.show .modal-dialog {
    transform: translateX(0);
}

#BaseFormModal {

    opacity: 0; /* Начальное состояние прозрачности */
    transition: opacity 0.4s ease; /* Плавное появление */
}
#BaseFormModal .msgdef{
    padding: 0px 24px 24px;
}
#BaseFormModal.show {
    opacity: 1; /* Прозрачность при показе */
}
#BaseFormModal
{
    .modal-content
    {
        border-radius: 0;
    }
    .err
    {
        font-family: Segoe UI;
        font-size: 12px;
        font-weight: 400;
        line-height: 16.8px;
        text-align: left;
        color: var(--color-system-colors-red);
        display: none;
    }
    .err.active
    {
        display: block;
    }
    .modal-header
    {
        padding: 24px 0px 16px 0px;
        margin: 0 24px;
        .m-btn-close {
            position: absolute;
            right: 10px;
            border: none;
            background: none;
            padding: 0;
        }
        .m-btn-close img {
            width: 32px;
            height: 32px;
        }
        .zag
        {
            font-family: Raleway;
            font-size: 38px;
            font-weight: 600;
            line-height: 45.6px;
            letter-spacing: -0.02em;
            text-align: left;
            color: var(--color-dark-scale-dark-500);
        }
    }
    .modal-footer
    {
        padding:  0 24px  24px 24px;
        justify-content: flex-start;
        border: 0;
        .main-btn
        {
            cursor: pointer;
            text-decoration: none;
            margin: 0;
            .m-mainbtn
            {
                width: fit-content;
                height: 68px;
                background: var(--color-red-scale-red-500);
                padding: 16px 28px;
                color: var(--color-gray-scale-color-50);
                font-family: Segoe UI;
                font-size: 19px;
                font-weight: 400;
                line-height: 26.6px;
                letter-spacing: -0.01em;
                text-align: left;
                display: flex;
                align-items: center;
                justify-content: center;
            }
            .m-mainbtn::before
            {
                content: url(/local/templates/main/img/Round.svg);
                margin-right: 4.5px;
                width: 36px;
                height: 36px;
                display: inline-block;
            }

        }
    }
    .modal-body
    {
        padding: 24px 24px 32px;
    }
    .modal-body input
    {
        border: none;
        border-bottom: 1px solid var(--color-gray-scale-gray-300);
        width: 100%;
        margin-right: 12px;
        height: 41px;
        outline: none;
        font-family: Segoe UI;
        font-size: 15px;
        font-weight: 400;
        line-height: 21px;
        text-align: left;
        margin-top: 24px;
    }
    .modal-body input.inp_err
    {
        border-bottom: 1px solid var(--color-system-colors-red);
    }
    .modal-body textarea
    {
        border : 1px solid var(--color-gray-scale-gray-300);
        width: 100%;
        outline: none;
        font-family: Segoe UI;
        font-size: 15px;
        font-weight: 400;
        line-height: 21px;
        text-align: left;
        margin-top: 24px;
        height: 180px;
        padding: 16px;
    }
    .modal-body select
    {
        border-top: 1px solid #fff;
        border-left: 1px solid #fff;
        border-right: 1px solid #fff;
        border-bottom : 1px solid var(--color-gray-scale-gray-300);
        width: 100%;
        outline: none;
        font-family: Segoe UI;
        margin-top: 24px;
        height: 48px;
        padding-left: 12px;
        font-family: Segoe UI;
        font-size: 15px;
        cursor: pointer;
    }
    .modal-body select .firs
    {
        opacity: 0.4;
    }
    .modal-body .check
    {
        float: left;
        width: 20px;
        height: 20px;
        border: 1px solid var(--color-gray-scale-gray-300);
    }
    .modal-body .sogl,
    .modal-body .sogl a
    {
        font-family: Segoe UI;
        font-size: 15px;
        font-weight: 400;
        line-height: 21px;
        text-align: left;
        color: var(--color-dark-scale-dark-500);
    }
    .modal-body .sogl
    {
        margin-top: 24px;
        margin-left: 32px;
    }
    .sub-modal-body
    {
        display: none;
        .zag
        {
            margin-top: 250px;
            font-family: Raleway;
            font-size: 30px;
            font-weight: 600;
            line-height: 37.5px;
            letter-spacing: -0.01em;
            text-align: center;
            color: var(--color-dark-scale-dark-500);
        }
        .sub-zag
        {
            color: var(--color-dark-scale-dark-500);
            font-family: Segoe UI;
            font-size: 19px;
            font-weight: 400;
            line-height: 26.6px;
            letter-spacing: -0.01em;
            text-align: center;
            margin-top: 12px;
        }
        .sub-bt
        {
            .main-btn
            {
                cursor: pointer;
                text-decoration: none;
                margin: 0;
                .m-mainbtn
                {
                    width: fit-content;
                    height: 68px;
                    background: var(--color-red-scale-red-500);
                    padding: 16px 28px;
                    color: var(--color-gray-scale-color-50);
                    font-family: Segoe UI;
                    font-size: 19px;
                    font-weight: 400;
                    line-height: 26.6px;
                    letter-spacing: -0.01em;
                    text-align: left;
                    display: flex;
                    align-items: center;
                    justify-content: center;
                    margin: 48px auto 250px;
                }


            }
        }
    }
    .sub-modal-body.active
    {
        display: block;
    }
    .hidden{
        display: none;
    }
}
@media (max-width: 1399px) {
    #BaseFormModal .modal-dialog {
        width: calc(100% - 24px);
    }

}
@media (max-width: 767px) {
    #BaseFormModal .modal-dialog {
        width: 100%;
        top: 0;
        right: 0;
        position: absolute;
        border: 0;
    }
    #BaseFormModal
    {
        .modal-header
        {
            .zag
            {
                font-family: Raleway;
                font-size: 24px;
                font-weight: 600;
                line-height: 32.4px;
                letter-spacing: -0.01em;
                text-align: left;

            }
        }
    }
}