.general-form-self {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.general-form-self-inputs {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.general-form-self-inputs-min-1, .general-form-self-inputs-min-2 {
    display: flex;
    flex-direction: column;
}

.general-form-self-inputs-min-1 {
    width: 100%;
    gap: 30px;
}

.general-form-self-inputs-min-2 {
    gap: 29px;
}

.general-form-self-inputs-block {
    position: relative;
}

.general-form-self-inputs-block-field {
    border: none;
    background-color: transparent;
    width: 100%;
    height: 38px;
    padding: 0px 10px 10px 10px;
    border-bottom: 1px solid var(--color-foreground-primary);
    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-primary);
}

.file-label {
    cursor: pointer;
}

.file-placeholder {
    padding: 0px 10px 10px 10px;
    display: flex;
    align-items: center; /* Центрируем элементы по вертикали */
    gap: 10px;
    border-bottom: 1px solid var(--color-foreground-primary);
    height: 38px;
}

.file-text {
    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-opacity);
    flex: 1; /* Занимает доступное пространство */
}

.file-input {
    visibility: hidden;
    padding: 0;
    position: absolute;
    top: -10px;
}

.file-placeholder-img {
    width: 18px;
    height: 18px;
    flex-shrink: 0; /* Не сжимается */
}

.file-placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.file-remove-btn {
    background: none;
    border: none;
    color: var(--color-foreground-primary);
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.file-remove-btn:hover {
    color: var(--color-red-opacity);
}

/* Состояние, когда файл выбран (добавим класс через JS) */
.file-placeholder.selected .file-text {
    color: var(--color-foreground-primary);
}

.general-form-self-inputs-block-field:focus {
    outline: none;
}

.general-form-self-inputs-block-field::placeholder {
    outline: none;
    color: var(--color-foreground-opacity);
}

.submit-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 48px;
    width: fit-content;
    height: 48px;
    border: 0.8px solid var(--color-foreground-primary);
    background-color: transparent;
    border-radius: 24px;
    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-primary);
    font-weight: 600;
}

/* Обработка ошибок */
.general-form-self-inputs-block-field.error-border {
    color: var(--color-red-opacity);
}

.error-message {
    position: absolute;
    right: 10px;
    top: 10px;

    font-size: 16px;
    line-height: 110%;
    color: var(--color-foreground-opacity);
    text-transform: lowercase;
    letter-spacing: -0.2px;
}


@media screen and (max-width: 1575px) {
    .form-message-text {
        font-size: 48px;
    }
}

@media screen and (max-width: 725px) {
    .general-form-self-inputs-min-2 {
        gap: 24px;
    }

    .submit-btn {
        width: 100%;
        height: 39px;

        font-size: 14px;
    }

    .form-message-text {
        font-size: 32px;
    }

    .error-message {
        top: 4px;

        font-size: 14px;
    }

    .general-form-self-inputs-block-field {
        height: 35px;
        padding: 0px 10px 10px 10px;
        font-size: 14px;
    }

    .file-text {
        font-size: 14px;
    }

}