/* =========================================
   CONTACT FORM STYLES (LINEAR DESIGN / NEYRODED)
   ========================================= */

.contact-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-page .section-header,
.contact-page .contact-form {
    width: min(700px, 100%);
}

.section-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 600;
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: #a0a0a0;
    max-width: 700px;
    margin: 0 auto 20px;
    line-height: 1.6;
}

/* Ссылка Назад */
.back-link {
    position: fixed;
    top: 30px;
    left: 30px;
    z-index: 10;
    color: #888;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: color .3s ease;
}

.back-link:hover {
    color: #fff;
}

/* Контейнер формы */
.contact-form {
    margin-top: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
    background: rgba(255, 255, 255, 0.02); /* Очень легкий фон для выделения области */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 60px 50px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-form {
        padding: 40px 25px;
    }
}

/* Лейблы полей */
.form-field label {
    display: block;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 11px;
    margin-bottom: 12px;
}

/* Поля ввода (Линии) */
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15); /* Тонкая линия снизу */
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    padding: 10px 2px;
    outline: none;
    border-radius: 0;
    transition: border-color .4s ease, box-shadow .4s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #555;
}

/* Фокус на поле (Подсветка линии) */
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-bottom-color: #8affc6; /* Брендовый зеленый */
    box-shadow: 0 15px 25px -20px rgba(138, 255, 198, 0.4); /* Мягкое свечение снизу */
}

textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.7;
}

/* Выпадающий список */
.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    pointer-events: none;
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.form-field select option {
    background: #0a0a0a;
    color: #fff;
}

/* Чекбокс согласия */
.consent-field {
    padding-top: 10px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    user-select: none;
}

/* Скрываем стандартный чекбокс */
.consent-checkbox {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

/* Кастомная рамка галочки */
.consent-check {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 3px;
    position: relative;
    transition: all .3s ease;
    margin-top: 2px;
}

/* Галочка при нажатии */
.consent-checkbox:checked + .consent-check {
    background: rgba(138, 255, 198, 0.15);
    border-color: #8affc6;
}

.consent-checkbox:checked + .consent-check::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #8affc6;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.consent-text {
    color: #888;
    font-size: 13px;
    line-height: 1.6;
}

.consent-text a {
    color: #c0c0c0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: color .3s ease, border-color .3s ease;
}

.consent-text a:hover {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}

/* Кнопка отправки */
.form-button {
    align-self: center;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    padding: 18px 52px;
    letter-spacing: 6px;
    cursor: pointer;
    transition: .4s;
    font-size: 14px;
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
}

.form-button:hover:not(:disabled) {
    background: #8affc6;
    color: #000;
    border-color: #8affc6;
    box-shadow: 0 0 30px rgba(138, 255, 198, 0.35);
}

.form-button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
}

.form-status {
    text-align: center;
    color: #8affc6;
    letter-spacing: 2px;
    font-size: 13px;
    min-height: 20px;
}

.form-status.error {
    color: #ff8a8a;
}

/* Экран успеха после отправки */
.form-success {
    text-align: center;
    padding: 60px 20px;
    border: 1px solid rgba(138, 255, 198, 0.2);
    background: rgba(138, 255, 198, 0.04);
    border-radius: 12px;
}

.form-success-title {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: #8affc6;
    letter-spacing: .1em;
    margin-bottom: 20px;
}

.form-success p {
    color: #c0c0c0;
    line-height: 1.8;
}

.form-success-note {
    margin-top: 20px;
    color: #666;
    font-size: 12px;
    letter-spacing: 2px;
}

/* Футер страницы контактов */
.contact-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 30px 20px 40px;
}

.contact-footer p {
    color: #555;
    font-size: 0.8rem;
    letter-spacing: 4px;
}