.multi_form__title {
    font-size: 1.7em;
    font-weight: 500;
    width: 60%;
    display: block;
    margin-bottom: 1em;
}

.multi_form__title_first{
    font-size: 1.7em;
    font-weight: 500;
    display: block;
    margin-bottom: 1em;
}

.form-option {
    padding: 0.7em 1em;
    border: 0.1em solid #d9d9d9;
    border-radius: 0.3em;
}

.form-option:not(:last-of-type) {
    margin-bottom: 1em;
}

.radio-wrapper p {
    font-weight: 500;
    font-size: 1.3em;
}

.radio-wrapper p span {
    font-size: 1em;
    font-weight: 400;
    color: grey;
}

.form-option__label {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
}

.radio-wrapper input {
    margin-top: 0.3rem;
    flex: 0 0 1.1em;
    height: 1.1em;
}


.multi-step-wrapper {
    overflow: hidden;


}
#success_popup_bpla{
    position: absolute;
    top: 50%;
    left: 50%;
    width: 39%;
    transform: translate(-50%, -50%);
}
#bpla_popup form button{
    width: auto;
    right: 1rem;
}
.multiple_form_course__section {
    padding: 0;
}
.multi-step-form {
    width: 100%;
    position: relative;
}

.form_flexbox{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 25em;
}



.form-step {
    display: none;
    opacity: 0;
    background: #fff !important;
    border-radius: 0.3em;
    box-sizing: border-box;
    transition: opacity 0.32s;
    padding: 2em 4em 3em;
}

.form-step.flexbox{
    display: flex;
    padding: 2em 3em 1em;
}

.form-step.flexbox .form-step__content .btn-back{
    display: none;
}

.form-step.is-current {
    display: block;
    opacity: 1;
}

.radio-grid {
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(2, 1fr);
}


.radio-grid.one-column {
    grid-template-columns: 1fr !important; /* переключение на одну колонку */
}

.radio-wrapper {
    flex: 1 1 45%;
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    padding: 0.7em 1em;
    border: 0.1em solid #d9d9d9;
    border-radius: 0.3em;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.radio-wrapper:hover {
    border-color: #854385;
}



.form-step-inner {
    flex-grow: 1;
}

.multi_form__description{
    margin-bottom: 1rem;
    display: block;
}

.form-step__wrap {
    display: flex;
    flex-direction: row;
    gap: 2em;
    justify-content: space-between;
}

.form-step__content {
    flex: 0 0 40%;
}

.form-step__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding-right: 2em;
    border-right: 0.1em solid #d9d9d9;
}

.step-navigation {
    display: flex;
    justify-content: flex-end;
    margin-top: 1em;
    gap: 1em;
}

.step-navigation .btn-back,
.step-navigation .btn-next {
    padding: 0.7em 0;
    border-radius: 0.3em;
    background: var(--purple);
    font-size: 1em;
    transition: all 1s ease;
    line-height: normal;
    min-width: 13vw;
    color: white;
}

.btn-next:disabled,
.btn-back:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-next:not(:disabled),
.btn-back:not(:disabled) {
    color: white;
}

#bpla_popup .find_about_course_block.message{
    max-width: 26rem;
    background: white;
    padding: 1.25rem;
    border-radius: var(--border-radius-s18);
    opacity: 0;
    animation: .4s ease-in-out .1s forwards show;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.multi-step-form_btn {
    margin-top: 1.5em;
    width: 100%;
    box-sizing: border-box;
    border-radius: 0.3em;
    background: rgb(255, 230, 0) !important;
    text-align: center;
    padding: 0.5em 0;
}

.multiple_form_course__section .call-back-modal__title {
    display: flex;
    justify-content: center;
}

.form_popup_el[data-field-code="INN"] {
    display: none;
}

.form-step__content_flex{
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.form-step__content_flex .form_popup_el{
    flex: 1 1 50%;
}

.form-step__content_flex .form_popup_el input {
    height: 100%;

    width: 100%;
}

#dop-number-block{
    flex: 0 0 35%;
}

.hidden {
    display: none !important;
}


     /* Стили для кастомного чекбокса */
 .custom-checkbox {
     -webkit-appearance: none;
     appearance: none;
     width: 1em;
     height: 1em;
     border: 0.15em solid #854385;
     border-radius: 0.1em;
     cursor: pointer;
     outline: none;
     position: relative;
     background-color: #fff;
 }

/* Псевдоэлемент для состояния "отмечено" */
.custom-checkbox:checked::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0.5em;
    height: 0.5em;
    background-color: #854385;
    border-radius: 0.1em;
    transform: translate(-50%, -50%);
}


.multiple_form_course__section_img {
    width: 16em;
    height: 14em;
    position: absolute;
    top: -5em;
    right: 0;
}

.multiple_form_course__section_img2{
    width: 12em;
    position: absolute;
    bottom: 2em;
    left: 1em;
    transform: rotateY(180deg);
}

.form_field_inn {
    overflow: hidden;                /* чтобы скрыть содержимое */
    max-height: 0;                   /* высота 0 */
    opacity: 0;                      /* и прозрачность 0 */
    transition: max-height .35s ease, opacity .35s ease;
}

/* развёрнутое состояние */
.form_field_inn.is-active {
    max-height: 120px;               /* подберите достаточную высоту */
    opacity: 1;
}
.std_form_label.smooth-field{
    margin-bottom: 0;
}

.form_popup_el.smooth-field.is-active{
    margin-bottom: 1em;
}
.smooth-field{
    overflow:hidden;
    max-height:0;
    opacity:0;
    transition:max-height .35s ease, opacity .35s ease;
}

.call-back-modal__title{
    background: white;
    padding: 1em 1em;
    border-radius: 0.3em;
}

/* «раскрытый» вид */
.smooth-field.is-active{
    max-height:180px;   /* с запасом, чтобы уместился любой инпут + подпись */
    opacity:1;
}
@media screen and (orientation: portrait){
    .form-step__info {
        display: none !important;
    }
    .form-step__content {
        flex: 1 !important;
    }
    .multiple_form_course__section_img2,
    .multiple_form_course__section_img {
        display: none;
    }
    .step-navigation .btn-back, .step-navigation .btn-next {
        flex: 1 1;
    }
    .multi_form__title {
        font-size: 1.3em;
        width: 100%;
    }
    .radio-grid {
        display: flex;
        flex-direction: column;
    }
    .radio-wrapper {
        flex: 1 1 100%;}
    .form-step.flexbox .form-step__content .btn-back{
        display: block;
        width: 100%;
    }
    .form-step.flexbox,
    .form-step{
        padding: 1em 1em;
    }

    .form_flexbox{
        min-height: auto;
        gap: 2em;
    }
    .radio-wrapper p {
        font-size: 1.4em;
        font-weight: 400;
    }
    #bpla_popup form button {
        width: auto;
        right: 1rem;
        top: 0;
    }
    .mfp-zoom-out .mfp-content{
        height: 100vh;
    }

    .form-step .mfp-close {
        font-size: 3em;
        width: 1.5em;
        right: 3vw;
        height: 1.5em;
        display: flex    ;
        align-items: center;
        justify-content: center;
    }
    .radio-wrapper input {
        margin-top: 0.2em;

    }
}

