/* css/contact.css */

.contact-page-body {
    background-color: #f0f4f8;
}

.contact-page-container {
    display: flex;
    justify-content: center;
    align-items: flex-start; /* Выравнивание по верху */
    padding-top: 40px;
    padding-bottom: 40px;
    min-height: calc(100vh - 150px);
}

.contact-box {
    background-color: #fff;
    padding: 35px 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 650px; /* Можно сделать форму шире */
    text-align: center;
    border: 1px solid #e5eaf1;
}

.contact-box h1 {
    color: #2c3e50;
    font-size: 1.9em;
    margin-top: 0;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.contact-box h1 i {
    color: #3498db;
}

.contact-description {
    color: #556072;
    margin-bottom: 25px;
    font-size: 1.05em;
    line-height: 1.5;
}

/* Стили для формы наследуются из .modern-form и .auth.css */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px; /* Отступы между полями */
    margin-top: 20px;
    margin-bottom: 25px;
}

.contact-form .form-group {
    text-align: left;
}

.contact-form label {
    display: block;
    font-weight: 500;
    color: #4a5568;
    margin-bottom: 8px;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.contact-form label .icon-prefix {
    color: #95a5a6;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 13px 16px; /* Увеличим немного */
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
    background-color: #fdfdfe;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.15);
    background-color: #fff;
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px; /* Больше места для сообщения */
}

.contact-form .form-actions {
    margin-top: 15px;
    text-align: right; /* Кнопка справа */
}

.contact-submit-button {
    width: auto; /* Ширина кнопки по контенту */
    padding: 12px 30px; /* Увеличим кнопку */
    font-size: 1.05em;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contact-box {
        max-width: 95%;
        padding: 25px 30px;
    }
    .contact-box h1 { font-size: 1.7em; }
}

@media (max-width: 576px) {
    .contact-box {
        padding: 20px 15px;
        box-shadow: none;
        border: none;
        background: none;
    }
    .contact-page-container {
        align-items: flex-start;
        padding-top: 20px;
    }
    .contact-box h1 { font-size: 1.6em; }
    .contact-form input, .contact-form textarea { padding: 12px 15px; }
    .contact-submit-button { width: 100%; }
}
/* --- Стили для CAPTCHA --- */
.captcha-group {
    background-color: #f8f9fa; /* Легкий фон для выделения */
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 10px; /* Небольшой отступ сверху */
}

.captcha-group label {
    display: flex; /* Выравниваем иконку, текст и вопрос */
    align-items: center;
    flex-wrap: wrap; /* Разрешаем перенос */
    gap: 8px;
    margin-bottom: 10px; /* Отступ до поля ввода */
}

.captcha-group .icon-prefix {
    color: #6c757d; /* Цвет иконки щита */
}

.captcha-question {
    font-weight: bold;
    color: #34495e; /* Цвет самого вопроса */
    font-size: 1.1em;
    margin-left: 5px;
}

.captcha-group input[type="number"] {
    max-width: 150px; /* Ограничиваем ширину поля для ответа */
    padding: 10px 14px; /* Уменьшим padding для компактности */
    text-align: center;
    font-size: 1.1em; /* Крупнее шрифт для ответа */
}

/* Убираем стрелки у input number (опционально) */
.captcha-group input[type=number]::-webkit-inner-spin-button,
.captcha-group input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.captcha-group input[type=number] {
  -moz-appearance: textfield; /* Firefox */
}