/* ============================================================
   Формы (универсальные стили)
   ============================================================ */

/* --- Базовый контейнер формы --- */
.custom-form {
    display: flex;
    flex-direction: column;
    gap: 15px; /* Расстояние между полями */
    margin-top: 20px;
}

/* --- Все типы полей ввода (текст, email, телефон, пароль, URL) --- */
.custom-form input[type="text"],
.custom-form input[type="email"],
.custom-form input[type="tel"],
.custom-form input[type="url"],
.custom-form input[type="password"],
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 40px; /* Круглые края как в дизайне */
    font-family: inherit;
    font-size: 1rem;
    color: #1a202c;
    background-color: #ffffff;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease;
    -webkit-appearance: none; /* Убираем стандартные стили iOS */
    -moz-appearance: none;
    appearance: none;
}

/* --- Стили для выпадающего списка (select) --- */
.custom-form select {
    cursor: pointer;
    /* Добавляем кастомную стрелочку, чтобы не смотрелось как системное */
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 18px;
    padding-right: 50px; /* Отступ справа, чтобы текст не наезжал на стрелку */
}

/* --- Стили для многострочного поля (textarea) --- */
.custom-form textarea {
    border-radius: 20px; /* Чуть менее круглые края для удобства */
    min-height: 120px;
    resize: vertical;
}

/* --- Фокус (при клике на поле) --- */
.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 91, 158, 0.3); /* Синее свечение вокруг */
}

/* --- Плейсхолдеры (серая подсказка) --- */
.custom-form input::placeholder,
.custom-form textarea::placeholder {
    color: #a0aec0;
    opacity: 1;
}

/* --- Кнопка отправки (если она внутри формы) --- */
.custom-form button[type="submit"] {
    align-self: center;
    background-color: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    padding: 12px 36px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 10px;
    font-family: inherit;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.custom-form button[type="submit"]:hover {
    background-color: #ffffff;
    color: #1a5b9e; /* Цвет текста при наведении (синий) */
}

/* --- Сообщения (Успех / Ошибка) --- */
.sent-forms-message {
    padding: 15px 20px;
    border-radius: 10px;
    font-weight: 500;
    margin-bottom: 15px;
    background-color: #ffffff;
}

.sent-forms-message.success {
    color: #065f46;
    border-left: 4px solid #10b981;
}

.sent-forms-message.error {
    color: #991b1b;
    border-left: 4px solid #ef4444;
}
