.auth-form {
    max-width: 800px;
    min-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.auth-form h2 {
    text-align: center;
    margin-bottom: 20px;
}

.auth-form button {
    margin-bottom: 0;
}

/***
* 
*/

.application-form {
    max-width: 800px;
    min-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

/***
* 
*/
.master-form {
    max-width: 800px;
    min-width: 320px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}
.master-form__form {
    padding: 40px 30px;
    background: #FFFFFF;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-radius: 16px;
}
.master-form__subtitle {
    font-family: 'SB Sans Display';
    font-size: 20px;
    line-height: 24px;
    text-align: left;
    color: #1F1F22;
    margin-bottom: 30px;
}

.master-form--row {
    margin-bottom: 20px;
}
.master-form--row-flex {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.master-form--row .form-column {
    flex: 1;
    margin-right: 10px;
}

.master-form--row .form-column:last-child {
    margin-right: 0;
}

.master-form__form-field_input,
.master-form__form-field_checkbox {

}

.master-form__form-field_label {
    margin-bottom: 20px;
}



.master-form__form-field_input input {
    align-items: center;
    border: 1px solid #b2b8bf;
    border-radius: 15px;
    display: -ms-flexbox;
    display: flex;
    height: 50px;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 0 20px;
    width: 100%;
}

.master-form__text {
    font-family: 'SB Sans Display';
    font-size: 16px;
    line-height: 24px;
    color: #1F1F22;
}
.master-form__text--gray {
    color: #979797;
    font-size: 15px;
    line-height: 1.2em;
}


.master-form--row .file-upload {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.master-form--button-primary {
    align-items: center;
    background: linear-gradient(272.97deg,
            #2870f6 0%,
            #0fa8e0 58.6%,
            #20b5b6 79.28%,
            #25bc98 95.45%);
    border: none;
    border-radius: 29px;
    color: #fff;
    display: flex;
    flex-direction: row;
    font-family: 'SB Sans Display';
    font-weight: 600;
    font-size: 16px;
    height: 50px;
    justify-content: center;
    line-height: 23px;
    margin: 30px 0;
    padding: 15px 35px;
    cursor: pointer;

    height: 42px;
    padding: 10px 24px;
    border-radius: 29px;
    /* width: min-content; */
}


/***
*
*/
.steps {
    display: flex;
    flex-direction: column;
}

.step {
    display: none;
}

.step.active {
    display: block;
}


.error {
    border-color: #ff0000 !important;
}

.error input {
    border-color: #ff0000 !important;
}

.file-upload.error {
    color: #ff0000;
}

.master-form__form-field_button {
    display: flex;
    gap: 15px;
}

.master-form--button-secondary {

    cursor: pointer;


    
    align-items: center;
    background: none;
    border: none;

    color: #1F1F22;
    display: flex;
    flex-direction: row;
    font-family: 'SB Sans Display';
    font-weight: 400;
    font-size: 16px;

    justify-content: center;
    line-height: 23px;
    margin: 30px 0;
    cursor: pointer;
    height: 42px;
    padding: 10px 24px;

    /* width: min-content; */
}

.master-form__form-field_checkbox {
    margin-bottom: 20px;
}

.master-form__form-field_checkbox input[type="checkbox"].error + span {
    color: #ff0000;
}

.master-form__form-field_checkbox label {
    display: flex;
    align-items: center;
    gap: 10px;
}

.master-form__textarea {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 1px solid #b2b8bf;
    border-radius: 15px;
    resize: vertical;
}

.master-form__form-field_radio {
    margin-bottom: 15px;
}

.master-form__form-field_radio label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.add-contractor {
    margin-bottom: 20px;
}

/* Десктопная версия (больше 768px) */
@media screen and (min-width: 768px) {
    .master-form__form {
        padding: 40px 30px;
    }

    .master-form--row-flex {
        flex-direction: row;
    }

    .master-form--row-flex .col-md-6 {
        width: 50%;
    }

    .master-form--row-flex .col-md-12 {
        width: 100%;
    }

    .master-form__form-field_button {
        justify-content: flex-end;
    }

    .master-form--button-primary {
        min-width: 150px;
    }
}

/* Мобильная версия (меньше 768px) */
@media screen and (max-width: 767px) {
    .master-form {
        padding: 10px;
    }

    .master-form__form {
        padding: 20px 15px;
    }

    .master-form--row-flex {
        flex-direction: column;
        gap: 15px;
    }

    .master-form--row-flex .col-md-6,
    .master-form--row-flex .col-md-12 {
        width: 100%;
    }

    .master-form__subtitle {
        font-size: 18px;
        line-height: 22px;
        margin-bottom: 20px;
    }

    .master-form__form-field_input input {
        height: 45px;
        padding: 0 15px;
    }

    .master-form__form-field_button {
        flex-direction: column;
        gap: 10px;
    }

    .master-form--button-primary,
    .master-form--button-secondary {
        width: 100%;
    }

    .master-form__text {
        font-size: 14px;
        line-height: 20px;
    }

    .master-form__text--gray {
        font-size: 13px;
    }

    /* Уменьшаем отступы для мобильной версии */
    .master-form--row {
        margin-bottom: 15px;
    }

    .master-form__form-field_checkbox {
        margin-bottom: 15px;
    }

    .master-form__textarea {
        min-height: 80px;
        padding: 10px;
    }

    /* Адаптация кнопок */
    .master-form--button-primary {
        height: 40px;
        padding: 8px 20px;
        font-size: 14px;
        margin: 20px 0;
    }

    .master-form--button-secondary {
        height: 40px;
        padding: 8px 20px;
        font-size: 14px;
    }

    /* Адаптация радио-кнопок */
    .master-form__form-field_radio label {
        font-size: 14px;
    }
}

/* Стили для очень маленьких экранов */
@media screen and (max-width: 375px) {
    .master-form {
        min-width: 280px;
        padding: 5px;
    }

    .master-form__form {
        padding: 15px 10px;
    }

    .master-form__subtitle {
        font-size: 16px;
        line-height: 20px;
    }
}

/* Стили для планшетов */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .master-form {
        max-width: 700px;
    }

    .master-form__form {
        padding: 30px 25px;
    }
}

/* Стили для печати */
@media print {
    .master-form {
        max-width: none;
        padding: 0;
        margin: 0;
    }

    .master-form__form {
        box-shadow: none;
        padding: 0;
    }

    .master-form--button-primary,
    .master-form--button-secondary,
    .add-contractor {
        display: none;
    }
}

.mass-upload {
    margin-top: 20px;
}

.mass-upload .master-form--row-flex {
    align-items: center;
}

.mass-upload .file-upload {
    width: 100%;
}

.master-form--button-secondary span {
    margin-right: 10px;
    font-size: 18px;
}

/* Медиа-запрос для мобильных устройств */
@media screen and (max-width: 767px) {
    .mass-upload .master-form--row-flex {
        flex-direction: column;
        gap: 15px;
    }

    .mass-upload .master-form--button-secondary {
        width: 100%;
        text-align: center;
    }
}


