.form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.form-header-title {
    font-family: 'Days One', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #35003D;
    width: 100%;
}

.form-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.modal-content .form-content {
    flex-direction: column;
    flex-wrap: nowrap;
}

.form-component-group {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 20px;
}

@media (max-width: 1184px) {
    .form-content,
    .form-component-group {
        gap: 12px;
    }
}

.form-component {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-component--stack {
    flex-direction: row;
}

.modal-content .form-content .form-component {
    flex: 1;
    width: 100%;
}

.form-component-group-fields {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-component-group-fields-content > .form-component {
    flex: 1;
}

.form-component-group-fields-content > .form-component input,
.form-component-group-fields-content > .form-component select {
    flex: 1;
}

.form-component-group-fields-content > .form-component select {
    width: 100%;
}

.form-component-group-fields-content {
    display: flex;
    flex-direction: row;
    gap: 5px;
}

.form-component label {
    font-weight: 500;
    font-size: 13px;
}

.form-component input,
.form-component select,
.form-component textarea {
    -webkit-appearance: none;
    appearance: none;
    height: 28px;
    min-width: 100px;
    font-weight: 500;
    font-size: 11px;
    border-radius: 0;
    border-width: 1px;
    border-color: #505050;
    border-style: solid;
    background: #FFFFFF;
    padding: 5px;
    line-height: 14px;
}

.form-component textarea {
    resize: none;
    height: auto;
    min-height: 84px;
}

.form-component.form-component--invalid input,
.form-component.form-component--invalid select,
.form-component.form-component--invalid textarea {
    background: rgba(255, 103, 103, 0.2);
}

.form-component input:focus,
.form-component select:focus,
.form-component input:focus-within,
.form-component select:focus-within,
.form-component input:focus-visible,
.form-component select:focus-visible,
.form-component textarea:focus-visible {
    outline: none;
}

.form-component input::placeholder,
.form-component select::placeholder,
.form-component textarea::placeholder,
.form-component .tag-chooser-container-placeholder {
    color: #737373;
    font-weight: 500;
    font: 11px/1.2 'Montserrat', uppercase, sans-serif;
    line-height: 100%;
    padding: 5px;
}

.form-component input[type="date"],
.form-component input[type="month"] {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    background: #FFFFFF url(/images/form/calendar-5c5f73ba9f6e78b0d7fef0d9f51a4fc7.svg) right+4px center no-repeat;
    padding-right: 26px;
    text-transform: capitalize;
}

.form-component input[type="date"]::-webkit-calendar-picker-indicator,
.form-component input[type="month"]::-webkit-calendar-picker-indicator {
    position: absolute;
    right: 0;
    background: transparent;
    width: 100%;
    height: 100%;
}

.form-component input[type="checkbox"] {
    display: none;
}

.form-component input[type="checkbox"] + input[type="hidden"] + label {
    position: relative;
    padding-left: 20px;
}

.form-component input[type="checkbox"] + input[type="hidden"] + label:before {
    content: '';
    position: absolute;
    left: 0;
    top: calc(50% - 6px);
    width: 12px;
    height: 12px;
    background: white;
    border: 1px solid #35003D;
}

.form-component input[type="checkbox"]:checked + input[type="hidden"] + label:before {
    background: url(/images/form/check-2d0557f9b030cadb51e524744adad9a8.svg) center center no-repeat;
}

.form-component input[type="checkbox"]:active + input[type="hidden"] + label:before,
.form-component input[type="checkbox"]:focus + input[type="hidden"] + label:before,
.form-component input[type="checkbox"]:focus-within + input[type="hidden"] + label:before,
.form-component input[type="checkbox"]:focus-visible + input[type="hidden"] + label:before {
    border: 1px solid #35003D;
    opacity: 0.73;
}

.form-component select {
    width: max-content;
    background: url(/images/form/arrow-down-53ea3a5fe8b414836792c32dbeddb103.svg) right+4px center no-repeat;
    padding-right: 26px;
}

.form-component select::-ms-expand {
    display: none;
}

.form-component .error-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    max-width: 100%;
    font: 10px/1.2 'Montserrat', uppercase, sans-serif;
    font-weight: 400;
    line-height: 150%;
    color: #a11626;
    overflow-wrap: break-word;
    padding: 4px 6px;
    background: #FFFFFF;
    border-radius: 3px;
    box-shadow: 4px 2px 6px 4px #0000001F;
    margin-top: 6px;
    z-index: 99;
}

.error-feedback::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 20px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid #fff;
    width: 0;
    height: 0;
}

.form-component .error-feedback:empty {
    display: none;
}

.form-component .file-input-wrapper {
    display: flex;
    flex-direction: column-reverse;
}

.form-component .file-input-load-area {
    position: relative;
    display: flex;
    height: 124px;
    padding: 5px;
    border: 1px solid #505050;
}

.form-component .file-input-load-area:has(input[type="file"]):before {
    content: "Перетащите файлы сюда или нажмите, чтобы выбрать";
    position: absolute;
    color: #888;
    font-size: 14px;
    text-align: center;
    padding-block: 45px;
    width: calc(100% - 10px);
    height: calc(100% - 10px);
    border: 1px dashed #505050;
    z-index: 1;
    pointer-events: none;
}

.form-component .file-input-load-area input[type="file"] {
    height: 100%;
    cursor: pointer;
    z-index: 2;
    flex: 1;
    opacity: 0;
}

.modal-content .form-component label {
    font-weight: 500;
    font-size: 14px;
    color: #35003D;
    line-height: 100%;
}

.form-component-group-fields-content .form-component.form-component--stack label {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.input-file-list-item {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: 11px;
    color: #737373;
    background: #6ec08333;
    line-height: 100%;
    vertical-align: middle;
    padding: 5px;
    border-bottom: 1px solid #505050;
    flex: 1;
    gap: 10px;
}

.input-file-list-item:last-child {
    margin-bottom: 10px;
}

.input-file-list-item:before {
    content: url(/images/form/document-e6e09160a37312f75fb8213946209d62.svg);
    width: 12px;
    height: 14px;
}

.input-file-list-item span {
    flex: 1;
}

.input-file-list-item.input-file-list-item--uploaded {
    background: transparent;
}

.input-file-list-item.input-file-list-item--removed {
    background: #ff676733;
}

.input-file-list-item-remove-button {
    width: 12px;
    height: 12px;
    background: url(/images/form/remove-ad7c20f0177c0b29afa0fdd508838ce3.svg) right center no-repeat;
    cursor: pointer;
}

.input-file-list-item-remove-button:hover {
    opacity: 0.8;
}

.input-file-list-item.input-file-list-item--removed .input-file-list-item-remove-button {
    background: url(/images/form/return-467f76e9fe44acacce400900406a56f2.svg) right center no-repeat;
}

.reset-button {
    font-weight: 500;
    font-size: 14px;
    color: #35003D;
    background: url(/images/form/reset-0075e59d0bbe8ecf9e6cda82a3929a9f.svg) right center no-repeat;
    padding-right: 20px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.reset-button:hover {
    opacity: 0.8;
}

.form-buttons {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    gap: 10px;
}

.modal-content .form-content .form-buttons {
    flex: 1;
    width: 100%;
}

.form-buttons .clear-button {
    display: flex;
    flex-direction: row;
    font-family: 'Montserrat', uppercase, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    background: transparent;
    border: none;
    gap: 5px;
}

.form-buttons .clear-button:before {
    content: url(/images/form/clear-25b52b128f81bee12b5da2e2e5c8bde6.svg);
    width: 12px;
    height: 12px;
}

.form-buttons .submit-button {
    display: flex;
    flex-direction: row;
    font-family: 'Montserrat', uppercase, sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 100%;
    text-transform: uppercase;
    color: #35003D;
    background: transparent;
    border: none;
    gap: 5px;
}

.form-buttons .submit-button:hover,
.form-buttons .clear-button:hover {
    opacity: 0.8;
}

@media (max-width: 594px) {
    .form-content > .form-component-group,
    .form-component-group > .form-component,
    .form-content > .form-component,
    .form-content > .form-component > *,
    .form-content > .form-component > * {
        width: -webkit-fill-available;
    }

    .form-component-group > .form-component > * {
        width: -webkit-fill-available;
        flex: 1;
    }
}

@media (max-width: 1184px) {
    .reset-button {
        font-size: 13px;
        text-transform: uppercase;
    }
}