﻿/* ═══════════════════════════════════════════
   contact.css — Contact page
   ═══════════════════════════════════════════ */

.contact-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 5rem;
}

/* ── Card ── */
.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

/* ── Alert ── */
.contact-alert {
    border-radius: 7px;
    padding: 0.65rem 0.9rem;
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.contact-alert-error {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

/* ── Row ── */
.contact-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* ── Field ── */
.contact-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}

.contact-row .contact-field {
    margin-bottom: 0;
}

.contact-field label {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.contact-field input,
.contact-field textarea {
    font-family: var(--font);
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    padding: 0.65rem 0.875rem;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    resize: vertical;
}

.contact-field textarea{
    min-height: 200px;
}

    .contact-field input {
        height: 42px;
        resize: none;
    }

    .contact-field input:focus,
    .contact-field textarea:focus {
        border-color: var(--accent);
        border-width: 2px;
    }

.contact-field-error {
    color: var(--error);
    margin-top: 0.35rem;
    min-height: 1em;
}

    .contact-field-error:empty {
        display: none;
    }

/* ── Form footer ── */
.contact-form-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.contact-email-alt {
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: center;
    margin-top: 40px;
    font-size: 17px;
}

.contact-email-link {
    color: var(--blue-500);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: opacity 0.15s;
}

    .contact-email-link:hover {
        /*opacity: 0.7;*/
        color: var(--orange-500);
    }

/* ── Submit button ── */
.btn-contact-send {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.5rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: var(--font);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    min-width: 130px;
    min-height: 42px;
}

    .btn-contact-send:hover {
        background: var(--accent-hover);
    }

    .btn-contact-send .btn-spinner,
    .btn-spinner-active {
        width: 18px;
        height: 18px;
        animation: spin 0.7s linear infinite;
        display: block;
    }

.char-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: right;
    margin-top: 0.35rem;
}

/* ── Responsive ── */
@media (max-width: 540px) {
    .contact-title {
        font-size: 1.75rem;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-row {
        grid-template-columns: 1fr;
    }

    .contact-form-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .btn-contact-send {
        width: 100%;
    }
}
