#enrollment-form {
    background-color: var(--enrollment-form-overlay-background);
}

#enrollment-form .modal-dialog {
    max-width: 721px;
    border-radius: 40px;
    border: 1px solid var(--enrollment-form-dialog-border-color);
    background-color: var(--enrollment-form-dialog-background);
}

#enrollment-form .modal-content {
    border-radius: 40px;
}

#enrollment-form .modal-body {
    padding: 36px 36px 42px 48px;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    border-radius: 40px;
}

#enrollment-form .modal-body .btn-close {
    align-self: flex-end;
}

.enrollment-form__head {
    font-family: ALSGorizont_reg;
    font-weight: 500;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: -0.2px;
    color: var(--enrollment-form-heading-text-color);
    margin-top: 14px;
    margin-bottom: 0px;
}

.enrollment-form__body .mui-textfield {
    margin-bottom: 0px;
}


.enrollment-form__tabs {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-top: 34px;
    column-gap: 18px;
}

.enrollment-form__tab {
    font-family: ALSGorizont_reg;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: center;
    vertical-align: middle;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--enrollment-form-tab-text-color);
    padding: 10px 8px 14px 8px;
    margin: 0px;
    cursor: pointer;
}

.enrollment-form__tab.active {
    color: var(--enrollment-form-tab-active-text-color);
    border-bottom: 2px solid var(--enrollment-form-tab-active-border-color);
}

.enrollment-form__body {
    margin-top: 8px;
}

.enrollment-form__heading {
    font-family: ALSGorizont_var;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    font-variant-numeric: lining-nums tabular-nums;
    color: var(--enrollment-form-subheading-text-color);
    margin-bottom: 0px;
    margin-top: 22px;
}

.mui-select:focus select.enrollment-form__select,
select.enrollment-form__select {
    font-family: PTGolos_vf;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--enrollment-form-input-text-color);
    padding: 16px 16px 16px 16px;
    width: 100%;
    max-width: 602px;
    border-radius: 10px;
    height: auto;
    border: 1px solid var(--enrollment-form-input-border-color);
    background-position-x: 97%;
    background-image: var(--enrollment-form-select-arrow);
}

.mui-textfield:focus input.enrollment-form__input,
input.enrollment-form__input,
.mui-textfield:focus textarea.enrollment-form__input,
textarea.enrollment-form__input{
    font-family: PTGolos_vf;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--enrollment-form-input-text-color);
    padding: 16px 16px 16px 16px;
    width: 100%;
    max-width: 602px;
    border-radius: 10px;
    height: auto;
    border: 1px solid var(--enrollment-form-input-border-color);
    background-position: 570px;
}

.mui-textfield:focus textarea.enrollment-form__input,
textarea.enrollment-form__input{
    height: 150px;
}

.enrollment-form__block-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.enrollment-form__block-radio__item label {
    font-family: PTGolos_vf;
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    color: var(--enrollment-form-input-text-color);
}

.enrollment-form__block-radio {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 42px;
    margin-bottom: 0px;
    margin-left: 12px;
    
}

.enrollment-form__block-radio .wpcf7-list-item {
    position: relative;
}

.enrollment-form__block-radio__heading {
    margin-top: 24px;
    margin-bottom: 23px;
}

.enrollment-form__block-radio > span {
    margin-left: 0px;
}

.enrollment-form__block-radio label {
    display: flex;
    padding: 10px 10px 10px 0px;
    align-items: flex-start;
    gap: 6px;
    margin-left: 35px;
}

.enrollment-form__block-radio label span {
    color: var(--enrollment-form-input-text-color);
    font-family: PTGolos_vf;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 22.4px */
}

.enrollment-form__block-radio label input[type="radio"] {
    display: none;
}

.enrollment-form__block-radio input[type="radio"] + span::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #4F9E9B; /* Цвет обводки */
    background: white;
    position: absolute;
    left: 0;
    top: 8px;
}
.enrollment-form__block-radio input[type="radio"]:checked + span::after {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #4F9E9B; /* Цвет точки внутри */
    position: absolute;
    left: 4px;
    top: 12px;
}

.physic__mathcaptcha > label,
.legal__mathcaptcha > label {
    font-family: ALSGorizont_var;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: 0%;
    font-variant-numeric: lining-nums tabular-nums;
    color: #0D0D0D;
    margin: 0px;
}

.physic__mathcaptcha input[name="physic__mathcaptcha"] ,
.legal__mathcaptcha input[name="legal__mathcaptcha"] {
    font-family: PTGolos_vf !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    line-height: 140% !important;
    letter-spacing: 0% !important;
    color: #424245 !important;
    padding: 16px 16px 16px 16px !important;
    width: 100% !important;
    max-width: 602px !important;
    border-radius: 10px !important;
    height: auto !important;
    border: 1px solid var(--enrollment-form-captcha-input-border-color) !important;
    background-position: 570px !important;
}

.physic__mathcaptcha input[name="physic__mathcaptcha"]:focus,
.legal__mathcaptcha input[name="legal__mathcaptcha"]:focus {
    outline: 2px solid  var(--enrollment-form-captcha-input-focus-outline-color) !important;
}

.enrollment-form__footer {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    column-gap: 24px;
}

.enrollment-form__footer button {
    max-width: 179px;
}

.enrollment-form__footer__text {
    font-family: PTGolos_vf;
    font-weight: 400;
    font-size: 14px;
    line-height: 125%;
    letter-spacing: 1%;
    color: var(--enrollment-form-footer-text-color);
    max-width: 380px;
    padding: 0;
    margin: 0;
}

.enrollment-form-physic__footer, 
.enrollment-form-legal__footer {
    margin-top: 25px;
}

@media screen and (max-width: 678px) {
    #enrollment-form .modal-dialog {
        margin: 0px;
    }

    .enrollment-form__head {
        font-family: ALSGorizont_var;
        font-weight: 550;
        font-size: 28px;
        line-height: 120%;
        letter-spacing: 0%;
        vertical-align: bottom;
    }

    #enrollment-form .modal-body {
        padding: 36px 20px 42px 20px;
    }

    #enrollment-form .modal-body .btn-close {
        margin-right: 15px;
    }

    .enrollment-form__tabs {
        margin-top: 37px;
        justify-content: center;
    }

    .enrollment-form__tab {
        font-size: 13px;
        padding: 0px 5.5px 14px 5.5px;
    }

    .enrollment-form__body {
        margin-top: 0px;
    }

    .enrollment-form__block-radio {
        margin-left: 0px;
        flex-direction: column;
        align-items: flex-start;
        row-gap: 15px;
    }

    .enrollment-form-physic__footer, .enrollment-form-legal__footer {
        flex-direction: column-reverse;
        row-gap: 15px;
        align-items: flex-start;
    }


    .enrollment-form__footer__text {
        font-family: PTGolos_vf;
        font-weight: 400;
        font-size: 12px;
        line-height: 125%;
        letter-spacing: 1%;
    }

    .enrollment-form-physic__footer button,
    .enrollment-form-legal__footer button {
        margin: 0px;
        width: 100%;
        max-width: none;
    }
}