input, textarea, select {
    padding: 13px 19px 11px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    background-color: #FAFBFF;
    border: 2px solid rgba(39, 74, 204, 0.23);
    box-sizing: border-box;
    border-radius: 5px;
}

.block-error {
    width: 100%;
}

.block-error .error + select,
.block-error .error + input,
.block-error .error + textarea {
    border-color: red !important;
}

body .modal-header {
    border-radius: 0;
    /*background-size: auto 100%;*/
    position: relative;
    align-items: center;
    /*padding: 40px 0 23px 0 !important;*/
    /*margin: 0 47px 0 47px !important;*/
    border-bottom: none !important;
    padding: 0;
    margin-bottom: 30px;
}

body .modal-header .modal-title {
    color: #FFFFFF;
    margin: 0 auto;
    font-family: Manrope;
    font-weight: 800;
    font-size: 28px;
    line-height: 32px;
    text-align: center;
}

.modal-close {
    background-image: url(../img/modal-close.svg);
    background-repeat: no-repeat;
    background-position: center;
    min-width: 24px;
    min-height: 24px;
    position: absolute;
    top: 0;
    right: 0;
    border: 0;
    border-radius: 50%;
    color: #ffffff00;
    height: 32px;
    width: 32px;
    z-index: 10;
    cursor: pointer;
}

body .modal .modal-body .input-container {
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
}

body .modal .modal-body .input-container input, .form__wrapper input {

    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #231F2099;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #2BAFCD;
}

body .modal .modal-body .btn-modal-auth {
    /*max-width: 218px;*/
    /*width: 100%;*/
}

.swal-text {
    text-align: center;
}

.bid-section .heading {
    font-style: normal;
    font-weight: bold;
    font-size: 24px;
    line-height: 29px;
    display: flex
;
    align-items: center;
    text-align: center;
    color: #242424;
    justify-content: center;
}

.bid-section .form-custom-container .heading {
    font-family: Manrope;
    font-weight: 800;
    font-size: 28px;
    leading-trim: NONE;
    line-height: 32px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.modal-corses-up-qualification .bid-section {
    background-color: #F8F8FB;
    min-height: 1vh;
    padding: 0px;
    width: 100%;
}

.modal.modal-custom .form-auth input:focus,
.bid-section .form-custom select:focus {
    border-color: #19007d;
}

.bid-section {
    background-color: #F8F8FB;
    min-height: 100vh;
    padding: 34px 0 22px;
}

.bid-section .heading {
    font-style: normal;
    font-weight: bold;
    font-size: 24px;
    line-height: 29px;
    display: flex;
    align-items: center;
    text-align: center;
    color: #242424;
    justify-content: center;
}

.bid-section .text {
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 133.5%;
    color: #242424;
    mix-blend-mode: normal;
    margin: 30px 0;
}

.bid-section-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    background-image: url(/images/bid-section-info-bg.svg);
    background-repeat: no-repeat;
    background-position: center;
    padding: 60px 15px;
}

.bid-section__information-block {
    max-width: 390px;
    width: 100%;
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.bid-section__information-block img {
    margin-right: 30px;
}

.bid-section__text {
    max-width: 310px;
}

.bid-section__text-header {
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 133.5%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #061058;
    margin-bottom: 10px;
}

.bid-section__text-body {
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 133.5%;
    color: #061058;
}

.bid-section__text-body span {
    font-size: 30px;
    line-height: 133.5%;
    color: #061058;
}

.bid-section .form-custom-container {
    background-color: #807CB2;
    padding: 40px 30px;
    background-image: url('../img/modal_bg.png');
    /*background-image: url('img/top_banner_rectangle_bg.png');*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.bid-section .form-custom-container .sub-title {
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    text-align: center;
    align-items: center;
    font-size: 24px;
    text-transform: uppercase;
}

.bid-section .form-custom .form-row {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.bid-section .form-custom .form-row > div {
    max-width: 375px;
    width: 100%;
}

 .bid-section .form-custom .form-control {
     background: rgba(255, 255, 255, 0.85);
     border: 1px solid #1A76DC;
     border-radius: 4px;
     outline: 0;
     width: 100%;
     margin-bottom: 15px;
 }

.bid-section .form-custom input[type='text'],
.bid-section .form-custom input[type='email']{
    font-style: normal;
    font-weight: normal;
    font-size: 14px;
    line-height: 19px;
    color: #3D3D3D;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid #E9E9E9;
    box-sizing: border-box;
    backdrop-filter: blur(6px);
    border-radius: 4px;
    margin-bottom: 15px;
}

.bid-section .form-custom select {
    outline: 0 !important;
    width: 100% !important;
    font-family: Manrope;
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    color: #231F2099;
    background: #FFFFFF !important;
    border-radius: 20px !important;
    padding: 20px;
    border: 1px solid #2BAFCD !important;
    height: 65px!important;
}

.bid-section .form-custom .form-control::placeholder{
    color: #828282;
    font-size: 16px;
    line-height: 19px;
    font-weight: normal;
}

.bid-section .form-custom select option,
.bid-section .form-custom select option:disabled {
    font-family: Manrope;
    background: none;
    border: 0;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 140%;
    color: #231F2099;
    border-radius: unset;
    outline: 0;
    background: #FFFFFF;
    padding: 20px;
}

.bid-section .form-custom input::placeholder {
    color: #274ACC;
}

.bid-section .form-custom .form-group.agreement-row {
    margin-top: 30px;
    font-size: 16px;
    line-height: 19px;
    text-align: center;
    color: #3D3D3D;
    font-family: "Montserrat";
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    margin-left: 15px;
}

.bid-section label{
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

/*.bid-section input, label, select, option{
    font-weight: 400 !important;
    font-size: 20px !important;
    line-height: 24px !important;
}*/
.bid-section .btn {
    width: auto;
    margin-left: 6%;
}

.modal-corses-up-qualification {
    padding: 0px;
}

.modal-corses-up-qualification::before,
.modal-corses-up-qualification::after {
    content: none !important;
}

.modal.modal-custom-reg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    z-index: 1050;
    overflow: hidden;
    outline: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-right: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    min-height: 100%;
    background: #000011CC;
    backdrop-filter: blur(8px);
}

.modal.modal-custom-reg .modal-dialog {
    transform: translate(0, 0);
    transition: transform .3s ease-out, -webkit-transform .3s ease-out;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    position: absolute;
    top: 20px;
}

.modal-custom .modal-content{
    background-color: #807CB2;
    padding: 40px 30px;
    background-image: url(../img/modal_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
}

.modal-btn-container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px;
}

@media (max-width: 490px) {
    .modal-btn-container{
        flex-direction: column;
        gap: 30px;
    }

    .reset-pass{
        width: 100%;
    }

    .feedback_button{
        width: 100%;
    }
}

.reset-pass{
    border-radius: 56px;
    padding: 16px 32px;
    border: 1px solid #FFFFFF;
    font-family: Manrope;
    font-weight: 600;
    font-size: 18px;
    line-height: 127%;
    text-align: center;
    color: #FFFFFF;
    background: transparent;
    outline: none;
    cursor: pointer;
}

.reset-pass:focus{
    outline: none;
}

.modal-content label{
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.modal.modal-custom{
    background: #000011CC;
    backdrop-filter: blur(8px);
}

.modal.modal-custom-reg .modal-dialog .modal-content {
    border: none;
    border-radius: 50px !important;
    overflow: hidden;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.15);
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    width: 100%;
    pointer-events: auto;
    background-clip: padding-box;
    outline: 0;
}

.modal.modal-custom-reg .modal-close {
    position: absolute;
    min-width: 20px;
    min-height: 20px;
    right: 40px;
    top: 40px;
    z-index: 10;
    cursor: pointer;
}

#regModal .modal-close {
    min-width: 33px;
    min-height: 32px;
    right: 23px;
    background-image: url(/images/exit_w.svg);
}

.modal.modal-custom-reg .modal-close span {
    font-size: 0px;
}

.modal.modal-custom-reg .modal-body.modal-corses-up-qualification {
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0px;
    position: relative;
}

.modal.modal-custom-reg .modal-body::before {
    content: '';
    background-image: url(/images/bg-modal-auth.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    position: absolute;
    width: 100px;
    height: 55px;
    left: 15px;
    bottom: 0px;
}

.modal.modal-custom-reg .modal-body::after {
    content: '';
    background-image: url(/images/bg-modal-auth-2.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center center;
    width: 77px;
    height: 40px;
    right: 44px;
    top: 0px;
    position: absolute;
}

.modal.modal-custom-reg .form-auth {
    width: 100%;
    text-align: center;
    margin-bottom: 24px;
    position: relative;
}

.modal.modal-custom-reg .form-auth .invalid-feedback {
    position: absolute;
    bottom: -60px;
    width: 100%;
    left: -20px;
    max-width: 160px;
    background-color: #fff;
    box-shadow: 0px 4px 10px 0px grey;
    border-radius: 3px;
    padding: 10px 5px;
    box-sizing: border-box;
}

.modal.modal-custom-reg .form-auth .invalid-feedback::before {
    content: '';
    border: 10px solid transparent;
    border-bottom: 10px solid #eaeaea;
    position: absolute;
    top: -20px
}

.modal.modal-custom-reg .form-auth .modal-title {
    background-color: #FFFFFF;
    box-sizing: border-box;
    border-radius: 4px;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 140%;
    display: flex;
    align-items: center;
    font-family: "Avenir Next LT Pro", sans-serif;
    margin-bottom: 10px;
    padding: 0;
    text-align: center;
    justify-content: center;
    opacity: 1;
    border: 0;
    color: #274acc;
}

.modal.modal-custom-reg .form-auth input {
    background-color: #FFFFFF;
    border: 1px solid #274acc7d;
    box-sizing: border-box;
    border-radius: 4px;
    font-style: normal;
    font-weight: normal;
    font-size: 16px;
    line-height: 140%;
    display: flex;
    align-items: center;
    color: #274acc7d;
    font-family: "Avenir Next LT Pro", sans-serif;
    padding: 7px 12px 6px;
    margin-bottom: 30px;
}

.modal.modal-custom-reg .form-auth input:focus {
    border-color: #19007d;
}

.modal.modal-custom-reg .form-auth .button {
    margin: 0 0 0 auto;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.03em;
    color: rgb(255, 255, 255);
    background-color: rgb(255, 95, 121);
    cursor: pointer;
    box-sizing: border-box;
    border-radius: 5px;
    padding: 12px 25px;
    border-left: 0px;
    border-right: 0px;
    border-top: 0px;
    border-bottom: 4px solid rgb(240, 65, 93);
    outline: 0px !important;
}

.swal-text {
    text-align: center;
}

.button-reg {
    background: linear-gradient(170.27deg, rgba(0, 0, 0, 0.4) 0%, rgba(255, 255, 255, 0.4) 100%), #EBECF0;
    background-blend-mode: soft-light, normal;
    border: 6px solid rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
    box-shadow: 30px 30px 60px #A6ABBD, -30px -30px 60px #FAFBFF;
    border-radius: 40px;
    font-style: normal;
    font-weight: normal;
    font-size: 18px;
    line-height: 21px;
    display: flex;
    justify-content: flex-start;
    text-transform: uppercase;
    color: #274ACC;
    position: relative;
    padding: 19px 29px 20px 60px;
    max-width: 350px;
    width: 100%;
    border: 0;
    margin: 30px;
}

.button-reg::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: 22px;
}

.button-reg::after {
    content: '';
    position: absolute;
    background-image: url(/images/arrow-auth.svg);
    background-repeat: no-repeat;
    background-size: 100%;
    background-position: center center;
    width: 22px;
    height: 10px;
    top: calc(50% - 5px);
    right: 29px;
}

.rose-button {
    background: #FF7A8A;
    border-radius: 63px;
    color: #ffffff !important;
    width: 100%;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: 8px solid #FF7A8A;
    transition: all 0.3s ease;
}

@media (max-width: 1439.98px) {
    .bid-section input, label, select, option {
        font-size: 16px !important;
        line-height: 20px !important;
    }
}

/* Стили для красивого чекбокса */
#agreement-input-field, #agreement-input-field-quiz {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkbox-container {
    position: relative;
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    padding-left: 35px;
    min-height: 20px;
}

.checkbox-container::before {
    content: '';
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    border: 1px solid #FFFFFF;
    border-radius: 4px;
    background-color: transparent;
    transition: all 0.3s ease;
    top: 27%;
}

.checkbox-container::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 27%;
    width: 11px;
    height: 16px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    opacity: 0;
    transition: all 0.3s ease;
}

#agreement-input-field:checked + .checkbox-container::before,
#agreement-input-field-quiz:checked + .checkbox-container::before{
    background-color: #E68B31;
    border-color: #E68B31;
}

#agreement-input-field:checked + .checkbox-container::after,
#agreement-input-field-quiz:checked + .checkbox-container::after{
    opacity: 1;
}

#agreement-input-field:focus + .checkbox-container::before,
#agreement-input-field-quiz:focus + .checkbox-container::before{
    box-shadow: 0 0 0 3px rgba(230, 139, 49, 0.2);
}

.checkbox-container:hover::before {
    border-color: #d17a2a;
}

#agreement-input-field:checked + .checkbox-container:hover::before,
#agreement-input-field-quiz:checked + .checkbox-container:hover::before{
    background-color: #d17a2a;
    border-color: #d17a2a;
}

/* Стили для ссылок в чекбоксе */
.checkbox-container a {
    font-family: Manrope;
    font-weight: 500;
    font-size: 18px;
    line-height: 140%;
    color: #FFFFFF;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.checkbox-container{
    font-size: 18px!important;
    line-height: 140%!important;
}

.agreement-container{
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
}

.feedback_button{
    background: #E68B31!important;
    color: #fff!important;
    border: 1px solid #E68B31;
    border-radius: 30px!important;
    padding: 16px 40px!important;
    font-size: 18px!important;
    cursor: pointer!important;
    font-family: Manrope!important;
    font-weight: 600!important;
    line-height: 127%!important;
    text-align: center!important;
}

.feedback_button:focus{
    outline: none;
}

.feedback_button:hover{
    box-shadow: 0 12px 32px rgba(255, 107, 53, 0.4);
}

/* Кастомные стили для select элементов */
.bid-section .form-custom select {
    appearance: none!important;
    -webkit-appearance: none!important;
    -moz-appearance: none!important;
    background-image: url('../img/select_arrow.svg')!important;
    background-repeat: no-repeat!important;
    background-position: right 20px center!important;
    background-size: 16px 16px!important;
    padding-right: 50px !important;
}

/*.bid-section .form-custom select:focus {
    background-image: url('../img/select_arrow.svg')!important;
    transform: rotate(180deg)!important;
}*/

/* Hover эффект для select */
.bid-section .form-custom select:hover {
    border-color: #E68B31;
}

/* Адаптивность для select */
@media (max-width: 768px) {
    .bid-section .form-custom select {
        background-position: right 15px center;
        background-size: 14px 14px;
        padding-right: 40px !important;
    }
}

.input-container-description{
    font-family: Manrope;
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #FFDBB5;
}

.modal-video .modal-content{
    padding: 0;
}

.modal-video .modal-body{
    padding: 0;
}

.modal-video iframe{
    width: 100%;
    height: 300px;
    border-radius: 20px;
}

.modal-video .modal-content{
    background: transparent;
}

.modal-video .modal-close{
    right: -51px;
}


/*модальное окно Мероприятия*/
.modal-event .title{
    font-family: Tektur;
    font-weight: 700;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 5%;
    text-transform: uppercase;
    color: #FFFFFF;
    margin: 16px 0;
}

.modal-event .modal-body{
    padding: 0;
}

.modal-event .description{
    font-family: Manrope;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    color: #FFFFFF;
}

.event-image-container{
    border-radius: 20px;
}

.modal-event .event-date{
    background: #00927A66;
    padding: 15px 16px;
    border-radius: 20px 0 20px 0;
    font-family: Tektur;
    font-weight: 700;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 5%;
    text-align: center;
    text-transform: uppercase;
    color: #FFFFFF;
    position: absolute;
    top: 0;
    left: 0;
}

.event-pages{
    background: #00927A;
    border-radius: 20px;
    padding: 6px 16px;
    font-family: Manrope;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0%;
    color: #FFFFFF;
}

/* Стили для модального окна событий */
.modal-event .modal-content {
    background-color: #807CB2;
    border-radius: 20px;
    /*overflow: hidden;*/
    /*position: relative;*/
}

.event-image-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}


/* Адаптивность для модального окна событий */
@media (max-width: 768px) {
    .event-image-container {
        height: 200px;
    }

    .event-date {
        top: 15px;
        left: 15px;
        padding: 6px 12px;
        font-size: 12px;
    }


}

@media (min-width: 876px) {
    .modal-event .modal-dialog {
        max-width: 800px;
    }
}





.modal-region-registration .bid-section{
    min-height: auto;
    background: unset;
}

.modal-region-registration .bid-section .form-custom-container{
    background: transparent;
    padding: 0;
}

.modal-region-registration .heading {
    font-family: Manrope;
    font-weight: 800;
    font-size: 28px;
    width: 100%;
    line-height: 32px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 30px;
}

.modal-region-registration .event-image-container {
    height: 116px;
}

@media (min-width: 1300px) {
    .modal-region-registration .modal-dialog {
        max-width: 1224px;
    }
}

.modal-region-registration .modal-header{
    margin-bottom: 0;
}

.feedback_button.white{
    color: #211D15!important;
    background: #FFFFFF!important;
    border: 1px solid #FFFFFF!important;
}

.right-modal-btn-container{
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-additional-block{
    background: #2A265947;
    border-radius: 20px;
    padding: 16px;
    margin-top: 12px;
}

.form-additional-block-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.form-additional-block-title{
    font-family: Manrope;
    font-weight: 500;
    font-size: 20px;
    line-height: 32px;
    color: #FFFFFF;
}

.modal-region-registration .modal-btn-container{
    margin-top: 0!important;
}

.form-additional-row{
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

@media (max-width: 1200px) {
    .form-additional-row{
        flex-wrap: wrap;
    }
    .form-additional-row .input-container {
        width: 100%!important;
    }
}



/* Скролл для всего модального окна регистрации региона */
.modal-region-registration {
    overflow-y: auto !important;
}

.modal-region-registration .modal-dialog {
    max-height: 90vh; /* Максимальная высота 90% от высоты экрана */
    margin: 20px auto; /* Отступы сверху и снизу */
    /* Убираем overflow-y: auto отсюда */
}

.modal-region-registration .modal-content {
    max-height: 100%; /* Максимальная высота контента */
    /* Убираем overflow: hidden */
}

/* Стили для скроллбара всего модального окна */
.modal-region-registration::-webkit-scrollbar {
    width: 8px;
}

.modal-region-registration::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-region-registration::-webkit-scrollbar-thumb {
    /*background: #00927A;*/
    /*border-radius: 4px;*/
}

.modal-region-registration::-webkit-scrollbar-thumb:hover {
    background: #007a66;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .modal-region-registration .modal-dialog {
        max-height: 95vh;
        margin: 10px auto;
    }
}
