/* Отключаем стандартные стили позиционирования Bootstrap */
#BukletFormModal .modal-dialog {
    margin: 0;
    position: fixed;
    right: 12px;
    top: 12px;
    max-width: none;
    width: 950px;
    transform: translateX(100%);
    transition: transform 0.4s ease;
}

#BukletFormModal.show .modal-dialog {
    transform: translateX(0);
}

#BukletFormModal {
    opacity: 0;
    transition: opacity 0.4s ease;
}

#BukletFormModal.show {
    opacity: 1;
}

#BukletFormModal .modal-content {
    border-radius: 0;
}

#BukletFormModal .msgdef {
    padding: 0px 24px 24px;
}

#BukletFormModal .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;
}

#BukletFormModal .err.active {
    display: block;
}

#BukletFormModal .modal-header {
    padding: 24px 0px 16px 0px;
    margin: 0 24px;
}

#BukletFormModal .modal-header .m-btn-close {
    position: absolute;
    right: 10px;
    border: none;
    background: none;
    padding: 0;
}

#BukletFormModal .modal-header .m-btn-close img {
    width: 32px;
    height: 32px;
}

#BukletFormModal .modal-header .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);
}

#BukletFormModal .modal-footer {
    padding: 0 24px 24px 24px;
    justify-content: flex-start;
    border: 0;
}

#BukletFormModal .modal-footer .main-btn {
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}

#BukletFormModal .modal-footer .main-btn .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;
}

#BukletFormModal .modal-footer .main-btn .m-mainbtn::before {
    content: url(/local/templates/main/img/Round.svg);
    margin-right: 4.5px;
    width: 36px;
    height: 36px;
    display: inline-block;
}

#BukletFormModal .modal-body {
    padding: 24px 24px 32px;
}

#BukletFormModal .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;
}

#BukletFormModal .modal-body input.inp_err {
    border-bottom: 1px solid var(--color-system-colors-red);
}

#BukletFormModal .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;
}

#BukletFormModal .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-size: 15px;
    cursor: pointer;
}

#BukletFormModal .modal-body select .firs {
    opacity: 0.4;
}

#BukletFormModal .modal-body .check {
    float: left;
    width: 20px;
    height: 20px;
    border: 1px solid var(--color-gray-scale-gray-300);
}

#BukletFormModal .modal-body .sogl,
#BukletFormModal .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);
}

#BukletFormModal .modal-body .sogl {
    margin-top: 24px;
    margin-left: 32px;
}

#BukletFormModal .sub-modal-body {
    display: none;
}

#BukletFormModal .sub-modal-body .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);
}

#BukletFormModal .sub-modal-body .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;
}

#BukletFormModal .sub-modal-body .sub-bt .main-btn {
    cursor: pointer;
    text-decoration: none;
    margin: 0;
}

#BukletFormModal .sub-modal-body .sub-bt .main-btn .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;
}

#BukletFormModal .sub-modal-body.active {
    display: block;
}

#BukletFormModal .hidden {
    display: none;
}

@media (max-width: 1399px) {
    #BukletFormModal .modal-dialog {
        width: calc(100% - 24px);
    }
}

@media (max-width: 767px) {
    #BukletFormModal .modal-dialog {
        width: 100%;
        top: 0;
        right: 0;
        position: absolute;
        border: 0;
    }

    #BukletFormModal .modal-header .zag {
        font-family: Raleway;
        font-size: 24px;
        font-weight: 600;
        line-height: 32.4px;
        letter-spacing: -0.01em;
        text-align: left;
    }
}