* {
    box-sizing: border-box;
    font-family: "Unbounded", sans-serif;
}

body {
    margin: 0;
    font-family: "Unbounded", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    color: #323232;
    background: #E8E8E8;
}

.page-wrap {
    padding: 40px 20px 60px;
    max-width: 1040px;
    margin: 0 auto;
}

/* Переменные оригинала (#b16c08770d7c4e82b421535d740385bf) — вся секция формы */
.form-card {
    --msf-ftext-color: var(--msf-field-input-color);
    --msf-fborder-radius: 10px;
    --msf-all-padding: 32px;
    --msf-title-size: 24px;
    --msf-subtitle-size: 16px;
    --msf-title-margin: 8px;
    --msf-subtitle-margin: 20px;
    --msf-field-margin: 20px;
    --msf-field-padding: 12px;
    --msf-fheader-margin: 8px;
    --msf-inp-head-size: 14px;
    --msf-inp-height: 40px;
    --msf-inp-font-size: 14px;
    --msf-inp-hint-size: 12px;
    --msf-inp-hint-top-mgn: 4px;
    --msf-fields-color: #ffffff;
    --msf-fields-border-color: #ffffff;
    --msf-bg-color: #eeeeee;
    --msf-border-color: rgba(0, 0, 0, 0);
    --msf-checked-variant-color: #1B1B1B;
    --msf-title-color: #282A2F;
    --msf-subtitle-color: #4a4a4a;
    --msf-field-title-color: #080808;
    --msf-field-input-color: #323232;
    --msf-active-elem-color: #888888;
    --msf-active-elem-sec-color: #FFFFFF;
    --msf-icon-color: #2f2f2f;
    --msf-btn-bg-color: #af6d41;
    --msf-btn-text-color: #ffffff;
    --msf-btn-font-size: 14px;
    --msf-active-elem-text-color: #FFFFFF;
    --msf-two-col-gap: 12px;

    background: var(--msf-bg-color);
    border-radius: var(--msf-fborder-radius);
    border: 1px solid var(--msf-border-color);
    box-shadow: none;
    padding: var(--msf-all-padding);
    width: 100%;
    box-sizing: border-box;
}

.msf-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Секции */
.form-section {
    margin-bottom: var(--msf-field-margin);
}

.form-section:last-of-type {
    margin-bottom: 0;
}

/* Заголовки секций */
.section-title {
    font-size: var(--msf-inp-head-size);
    font-weight: 700;
    color: var(--msf-field-title-color);
    margin: 0 0 var(--msf-fheader-margin) 0;
}

/* Тип заказчика: два отдельных овала */
.msf-input__options {
    display: inline-flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
    align-items: center;
}

.customer-type-row {
    margin-bottom: 20px;
}

.customer-type-row .msf-input__options {
    display: flex;
    width: 100%;
    margin-bottom: 0;
    gap: 10px;
}

.customer-type-row .msf-input__option {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    height: 34px;
    min-height: 34px;
    padding: 0 10px;
}

.customer-type-row .msf-input__option-text {
    font-size: 9px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
}

.customer-type-row__spacer {
    visibility: hidden;
    pointer-events: none;
}

.msf-input__option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: var(--msf-inp-height);
    min-height: var(--msf-inp-height);
    padding: 0 14px;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    position: relative;
    text-align: center;
    white-space: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    border-radius: 999px;
    border: 1px solid var(--msf-active-elem-color);
    background: var(--msf-active-elem-color);
}

.msf-input__option:has(.msf-input__option-check:checked) {
    background: var(--msf-checked-variant-color) !important;
    border-color: var(--msf-checked-variant-color);
    z-index: 1;
}

.msf-input__option-check {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.msf-input__option-text {
    font-family: Unbounded, sans-serif;
    font-size: 14px;
    font-weight: 300;
    line-height: 1;
    color: #323232;
    white-space: nowrap;
    word-break: normal;
    transition: font-size 0.3s ease;
}

.msf-input__option:not(:has(.msf-input__option-check:checked)) .msf-input__option-text {
    color: var(--msf-field-input-color);
}

.msf-input__option:has(.msf-input__option-check:checked) .msf-input__option-text {
    color: var(--msf-active-elem-text-color) !important;
}

/* Двухколоночная сетка: левая колонка шире (ФИО, email), правая уже (телефон, способ) */
.row {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: var(--msf-two-col-gap) !important;
    margin-bottom: 12px;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Защита от внешних фреймворков, если форма встраивается на страницу с bootstrap */
.page-wrap .col {
    float: none !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.row-fields .col {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.row-fields .col .field-wrap {
    display: block;
}

.row-fields .col .field-wrap .input {
    min-height: var(--msf-inp-height);
}

.row-files .col {
    flex: 1;
    min-width: 0;
}

.field-wrap {
    display: block;
}

.field-wrap + .field-wrap {
    margin-top: 0;
}

.field-wrap label,
.form-section label,
.msf-input__header {
    color: #080808;
    font-size: 14px;
}

/* Поля ввода: белый фон на сером фоне карточки, по образцу */
.input {
    width: 100%;
    min-height: 40px;
    padding: 12px 14px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #ffffff !important;
    color: #323232;
    box-sizing: border-box;
    line-height: 1.2;
}

.input::placeholder {
    color: #757575;
    font-weight: 300;
}

input[type="date"].input,
.participant-card .msf-input[type="date"] {
    color: #757575;
}

.input:focus {
    outline: none;
}

select.input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff !important;
    color: #757575;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    height: 48px;
    min-height: 48px;
    line-height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Телефон с флагом: та же высота, что и остальные поля — выравнивание по верху */
.field-wrap-phone {
    position: relative;
}

.field-wrap-phone .input {
    min-height: var(--msf-inp-height);
}

.country-code-select {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    height: 30px;
    width: 84px;
    border: none;
    border-radius: 999px;
    background: #f5f5f5;
    color: #323232;
    font-size: 12px;
    font-family: inherit;
    padding: 0 10px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.field-wrap-phone .input {
    padding-left: 102px;
}

/* Значок и выбор файла разделены: иконка слева, белое поле справа */
.file-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.file-row .file-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.file-field {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    min-height: 70px;
    padding: 16px;
    border: none;
    border-radius: 10px;
    background: #ffffff !important;
    position: relative;
    cursor: pointer;
}

.file-field:hover {
    background: #fafafa;
}

.file-field .file-hint {
    flex: 1;
    font-size: 14px;
    color: #757575;
    font-weight: 300;
}

.file-field .file-status {
    font-size: 14px;
    color: #666;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-field .file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-icon {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.file-icon-doc {
    background-image: url("data:image/svg+xml,%3Csvg fill='%23c89580' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 60'%3E%3Cpath d='M38.914 0H6.5v60h47V14.586L38.914 0zM39.5 3.414L50.086 14H39.5V3.414zM8.5 58V2h29v14h14v42H8.5z'/%3E%3Cpath d='M42.5 21h-16c-.552 0-1 .447-1 1s.448 1 1 1h16c.552 0 1-.447 1-1s-.448-1-1-1zm-19.625 2.219l-4.301 3.441-1.367-1.367c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l2 2c.184.184.44.281.707.281s.523-.097.707-.281l5-4c.432-.346.501-.975.156-1.406-.346-.432-.975-.501-1.406-.156z'/%3E%3Cpath d='M42.5 32h-16c-.552 0-1 .447-1 1s.448 1 1 1h16c.552 0 1-.447 1-1s-.448-1-1-1zm-19.625 2.219l-4.301 3.441-1.367-1.367c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l2 2c.184.184.44.281.707.281s.523-.097.707-.281l5-4c.432-.346.501-.975.156-1.406-.346-.432-.975-.501-1.406-.156z'/%3E%3Cpath d='M42.5 43h-16c-.552 0-1 .447-1 1s.448 1 1 1h16c.552 0 1-.447 1-1s-.448-1-1-1zm-19.625 2.219l-4.301 3.441-1.367-1.367c-.391-.391-1.023-.391-1.414 0s-.391 1.023 0 1.414l2 2c.184.184.44.281.707.281s.523-.097.707-.281l5-4c.432-.346.501-.975.156-1.406-.346-.432-.975-.501-1.406-.156z'/%3E%3C/svg%3E");
}

.file-icon-pin {
    background-image: url("data:image/svg+xml,%3Csvg fill='%23c89580' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 54.757 54.757'%3E%3Cpath d='M27.557 12c-3.859 0-7 3.141-7 7s3.141 7 7 7 7-3.141 7-7-3.141-7-7-7zm0 12c-2.757 0-5-2.243-5-5s2.243-5 5-5 5 2.243 5 5-2.243 5-5 5z'/%3E%3Cpath d='M40.94 5.617C37.318 1.995 32.502 0 27.38 0c-5.123 0-9.938 1.995-13.56 5.617-6.703 6.702-7.536 19.312-1.804 26.952L27.38 54.757 42.721 32.6C48.476 24.929 47.643 12.319 40.94 5.617zM41.099 31.431L27.38 51.243 13.639 31.4C8.44 24.468 9.185 13.08 15.235 7.031 18.479 3.787 22.792 2 27.38 2s8.901 1.787 12.146 5.031C45.576 13.08 46.321 24.468 41.099 31.431z'/%3E%3C/svg%3E");
}

.file-hint {
    flex: 1;
    font-size: 14px;
    color: #757575;
    font-weight: 300;
}

.file-status {
    font-size: 14px;
    color: #666;
}

.file-status.success {
    color: #3a3;
}

.file-status.error {
    color: #c33;
}

/* Кнопки: по оригиналу --msf-btn-font-size 20px, --msf-btn-bg-color, на всю ширину секции */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    width: 100%;
    max-width: 100%;
    background: #c89580;
    color: #fff;
    border: none;
    border-radius: var(--msf-fborder-radius);
    font-size: var(--msf-btn-font-size);
    font-weight: 900;
    font-family: inherit;
    box-sizing: border-box;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #ffffff;
    color: var(--msf-field-input-color);
}

.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-add {
    width: 100%;
    margin: 0 0 var(--msf-field-margin) 0;
    display: flex;
    border-radius: var(--msf-fborder-radius);
}

/* Кружок белый, знак — цвет фона кнопки */
.btn-add-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ffffff;
    color: #c89580;
    font-size: 1.2em;
    line-height: 1;
}

.btn-add:hover .btn-add-icon {
    background: var(--msf-field-input-color);
    color: #fff;
}

.btn-submit {
    width: 100%;
    margin: 0;
    display: flex;
    padding: 16px 24px;
    font-size: var(--msf-btn-font-size);
    font-weight: 900;
    border-radius: var(--msf-fborder-radius);
    background: var(--msf-btn-bg-color);
    color: #fff;
}

.btn-submit:hover {
    background: #ffffff;
    color: var(--msf-field-input-color);
}

.btn-submit-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: #ffffff;
    color: #b06d42;
    font-size: 1.1em;
    line-height: 1;
}

.btn-submit:hover .btn-submit-arrow {
    background: var(--msf-field-input-color);
    color: #fff;
}

/* Сетка участников: первая ячейка — всегда кнопка «Добавить участника», остальные — карточки */
.participants-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--msf-two-col-gap);
    row-gap: 20px;
}

/* Кнопка «Добавить участника» на всю ширину, как в оригинале */
.participants-add-cell {
    grid-column: 1 / -1;
    align-self: start;
}

.participant-file-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.participant-file-wrap .file-label {
    width: 100%;
    font-size: var(--msf-inp-hint-size, 12px);
    color: var(--msf-field-title-color);
}

.participant-file-wrap .participant-file-input {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.participant-file-wrap .btn-choose-file {
    padding: 8px 14px;
    font-size: 13px;
    background: var(--msf-active-elem-color, #888);
    color: #fff;
    border: none;
    border-radius: var(--msf-fborder-radius);
    cursor: pointer;
    font-family: inherit;
}

.participant-file-wrap .btn-choose-file:hover {
    background: #1B1B1B;
    color: #fff;
}

.participant-file-wrap .file-info {
    width: 100%;
    font-size: 12px;
}

/* Блок участника как на макете — не выделяется, фон как у формы */
.participant-card {
    background: var(--msf-bg-color);
    border: none;
    border-radius: 0;
    padding: 0;
}

.participant-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.participant-title {
    font-size: 14px;
    font-weight: 700;
    color: #080808;
}

.btn-remove-participant {
    padding: 10px 28px;
    min-width: 120px;
    background: #c89580;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
    font-family: inherit;
}

.btn-remove-participant:hover {
    background: #ffffff;
    color: var(--msf-field-input-color);
}

/* Кружок белый, знак — цвет фона кнопки; на ховере круг белый (как фон кнопки), знак остаётся цветом кнопки */
.btn-remove-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-right: 6px;
    border-radius: 50%;
    background: #ffffff;
    color: #c89580;
    font-size: 1em;
    line-height: 1;
    vertical-align: middle;
}

.btn-remove-participant:hover .btn-remove-icon {
    background: var(--msf-field-input-color);
    color: #fff;
}

.participant-card .field-wrap,
.participant-card .msf-input__wrapper {
    margin-bottom: 12px;
}

.participant-card .msf-input__wrapper:last-of-type {
    margin-bottom: 12px;
}

.participant-card .msf-input {
    width: 100%;
    min-height: var(--msf-inp-height);
    padding: 12px 14px;
    border: none;
    border-radius: var(--msf-fborder-radius);
    font-size: var(--msf-inp-font-size);
    font-family: inherit;
    background: #ffffff !important;
    color: var(--msf-field-input-color);
    box-sizing: border-box;
}

.participant-card .msf-input::placeholder {
    color: #757575;
    font-weight: 300;
}

.participant-card .msf-input:focus {
    outline: none;
}

.participant-card select.msf-input {
    appearance: none;
    -webkit-appearance: none;
    background-color: #ffffff !important;
    color: #757575;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    height: 48px;
    min-height: 48px;
    line-height: 24px;
    padding-top: 0;
    padding-bottom: 0;
    box-sizing: border-box;
    vertical-align: middle;
}

/* Единые размеры всех НЕ файловых полей (верх + карточки участников) */
.row-fields .input,
.row-fields select.input,
.participant-card .msf-input,
.participant-card select.msf-input {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    padding: 0 14px !important;
    line-height: 24px !important;
    box-sizing: border-box !important;
}

/* Телефон: сохраняем увеличенный левый отступ под флаг после унификации полей */
.row-fields .field-wrap-phone .input[type="tel"] {
    padding-left: 102px !important;
    padding-right: 14px !important;
}

.participant-number {
    display: none;
}

.participant-card .file-row {
    margin-top: 0;
}

/* Кнопка отправки */
.form-section-submit {
    margin-top: 8px;
}

/* Согласие: по центру по горизонтали под кнопкой */
.consent {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    margin-top: 16px;
    margin-left: auto;
    margin-right: auto;
    min-height: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.consent input[type="hidden"] {
    display: none;
}

.consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin: 0;
    align-self: center;
    accent-color: #c89580;
}

.consent-text {
    font-size: 14px;
    color: #555;
    line-height: 1.4;
}

.consent-text a {
    color: #c89580;
    text-decoration: underline;
}

/* Прогресс загрузки */
.upload-progress {
    margin-top: 20px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 10px;
}

.upload-progress-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}

.upload-progress-bar {
    height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
}

.upload-progress-bar-fill {
    height: 100%;
    background: #c89580;
    transition: width 0.3s;
    width: 0%;
}

.upload-progress-details {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #888;
    margin-top: 6px;
}

/* Сообщения */
.message {
    padding: 12px 16px;
    border-radius: 6px;
    margin-top: 16px;
    font-size: 14px;
}

.message.error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.message.success {
    background: #efe;
    color: #3a3;
    border: 1px solid #cfc;
}

/* ——— Адаптив ——— */
@media (max-width: 768px) {
    .page-wrap {
        padding: 32px 20px 48px;
    }

    .form-card {
        padding: 24px;
    }

    .msf-input__options {
        margin-bottom: 16px;
    }

    .msf-input__option {
        padding: 10px 12px;
    }

    .msf-input__option-text {
        font-size: 12px;
    }

    .participants-grid {
        column-gap: var(--msf-two-col-gap);
        row-gap: 16px;
    }

    .participant-card {
        padding: 0;
    }
}

@media (max-width: 640px) {
    .page-wrap {
        padding: 20px 12px 40px;
    }

    .form-card {
        padding: 20px 16px;
        border-radius: 10px;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .msf-input__options {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 16px;
    }

    .customer-type-row__spacer {
        display: none;
    }

    .customer-type-row {
        flex-direction: row !important;
        gap: 0 !important;
        margin-bottom: 12px;
    }

    .customer-type-row .col {
        flex: 1 1 0 !important;
        width: 0 !important;
    }

    .customer-type-row .msf-input__options {
        flex-direction: row;
        gap: 8px;
        margin-bottom: 0;
    }

    .customer-type-row .msf-input__option {
        height: 32px;
        min-height: 32px;
        padding: 0 8px;
    }

    .customer-type-row .msf-input__option-text {
        font-size: 9px !important;
        line-height: 1;
        white-space: nowrap;
    }

    .msf-input__option {
        border-radius: 999px;
        border: 1px solid #707070;
        padding: 12px 14px;
    }

    .msf-input__option:has(.msf-input__option-check:checked) {
        border-color: #1B1B1B;
        background: #1B1B1B;
    }

    .msf-input__option-text {
        font-size: 13px;
    }

    .row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }

    .row-fields .col {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 100% !important;
        gap: 12px;
    }

    .row-files .col {
        flex: 1 1 auto !important;
        width: 100% !important;
        min-width: 100% !important;
    }

    .input {
        min-height: 44px;
        font-size: 16px;
    }

    .field-wrap-phone .input {
        padding-left: 106px;
    }

    .country-code-select {
        left: 10px;
        width: 88px;
        height: 32px;
        font-size: 12px;
    }

    .file-block {
        padding: 12px;
        min-height: 64px;
        gap: 12px;
    }

    .file-icon {
        width: 44px;
        height: 44px;
    }

    .file-hint {
        font-size: 12px;
    }

    .participants-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .participant-card {
        padding: 0;
    }

    .participant-header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .participant-title {
        font-size: 13px;
    }

    .btn-remove-participant {
        min-height: 44px;
        padding: 10px 16px;
    }

    .btn,
    .btn-add {
        min-height: 48px;
    }

    .btn-submit {
        min-height: 52px;
        padding: 16px 20px;
        font-size: 16px;
    }

    .btn-submit-arrow {
        margin-right: 8px;
    }

    .consent {
        margin-top: 14px;
    }

    .consent-text {
        font-size: 12px;
    }

    .upload-progress {
        padding: 12px;
        margin-top: 16px;
    }
}

/* Fallback for constructor iframe: mobile by container width class */
body.is-mobile-layout .row {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

body.is-mobile-layout .row-fields .col,
body.is-mobile-layout .row-files .col {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 100% !important;
}

body.is-mobile-layout .participants-grid {
    grid-template-columns: 1fr;
    gap: 16px;
}

body.is-mobile-layout .customer-type-row__spacer {
    display: none;
}

body.is-mobile-layout .customer-type-row {
    flex-direction: row !important;
    gap: 0 !important;
}

body.is-mobile-layout .customer-type-row .msf-input__options {
    flex-direction: row;
    gap: 8px;
    margin-bottom: 0;
}

@media (max-width: 380px) {
    .page-wrap {
        padding: 16px 10px 32px;
    }

    .form-card {
        padding: 16px 12px;
    }

    .msf-input__option-text {
        font-size: 12px;
    }

    .file-block {
        flex-wrap: wrap;
    }

    .file-icon {
        width: 40px;
        height: 40px;
    }
}
