/* Основная форма */
.hero12 {
    width: min(100%, 580px);
    margin: 40px auto;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e7eaf0;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(20, 32, 55, 0.1);

    display: flex;
    flex-direction: column;
    gap: 18px;

    box-sizing: border-box;
}

/* Две колонки с полями */
.hero12 .btn33 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* Общие стили для полей */
.hero12 input,
.hero12 textarea,
.hero12 button {
    font: inherit;
    box-sizing: border-box;
}

.hero12 input,
.hero12 textarea {
    width: 100%;
    border: 1px solid #d9dee8;
    border-radius: 12px;
    background: #f8f9fb;
    color: #202735;
    outline: none;
    transition:
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

/* Поля input */
.hero12 input {
    min-height: 54px;
    padding: 0 16px;
}

/* Многострочное поле */
.hero12 textarea {
    min-height: 130px;
    padding: 15px 16px;
    line-height: 1.5;
    resize: vertical;
}

/* Placeholder */
.hero12 input::placeholder,
.hero12 textarea::placeholder {
    color: #8992a3;
    opacity: 1;
}

/* Состояние фокуса */
.hero12 input:focus,
.hero12 textarea:focus {
    border-color: #5b6cff;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.13);
}

/* Проверка обязательных полей */
.hero12 input:required:valid {
    border-color: #35ad75;
}

.hero12 input:required:invalid:not(:placeholder-shown) {
    border-color: #e05252;
}

/* Кнопка */
.hero12 .btn32 {
    width: 100%;
    min-height: 54px;
    padding: 0 24px;

    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #5b6cff, #7657e8);
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;
    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

/* Наведение на кнопку */
.hero12 .btn32:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(91, 108, 255, 0.3);
}

/* Нажатие */
.hero12 .btn32:active {
    transform: translateY(0);
}

/* Видимый focus для клавиатуры */
.hero12 .btn32:focus-visible {
    outline: 3px solid rgba(91, 108, 255, 0.35);
    outline-offset: 3px;
}

/* Мобильная версия */
@media (max-width: 600px) {
    .hero12 {
        margin: 20px 12px;
        padding: 22px 16px;
        border-radius: 16px;
        gap: 14px;
    }

    .hero12 .btn33 {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero12 input {
        min-height: 50px;
    }

    .hero12 textarea {
        min-height: 120px;
    }

    .hero12 .btn32 {
        min-height: 50px;
    }
}