/* contact.css - split from app.css. Load order is fixed in index.html. */
/* === CONTACT PAGE === */

.contact-layout {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    box-sizing: border-box;
}

.contact-card {
    padding: 1.75rem;
}

.contact-intro {
    margin: 0 0 1.25rem;
    color: #b3b3b3;
    line-height: 1.5;
}

.contact-privacy {
    margin: 1rem 0 0;
    color: #777;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-type-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

/* type chips - color-mix tints to the theme accent (purple/blue) */
.contact-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.85rem 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--surface-border);
    border-radius: 12px;
    color: #d6d6d6;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 120ms ease, background-color 160ms ease, border-color 160ms ease;
    will-change: transform;
}

    .contact-type:hover:not(:disabled) {
        transform: translateY(-1px);
        /* fallback first; color-mix overrides below */
        background: rgba(255, 255, 255, 0.06);
        background: color-mix(in srgb, var(--accent) 8%, transparent);
        border-color: var(--surface-border-hover);
    }

    .contact-type:active:not(:disabled) {
        transform: translateY(0);
    }

    .contact-type.active {
        background: rgba(255, 255, 255, 0.12);
        background: color-mix(in srgb, var(--accent) 16%, transparent);
        border-color: var(--accent);
        color: #fff;
    }

    .contact-type i {
        font-size: 1.3rem;
        color: var(--accent-soft);
    }

    .contact-type:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }

.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.contact-field-label {
    font-size: 0.85rem;
    color: #b8b8b8;
    letter-spacing: 0.01em;
}

.contact-field-hint {
    color: #777;
    font-weight: 400;
}

.contact-message {
    min-height: 140px;
    resize: vertical;
}

/* honeypot - hidden from humans; neutral class name on purpose */
.contact-aux-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.contact-turnstile {
    /* reserve the widget's height to avoid a layout jump on mount */
    min-height: 65px;
    display: flex;
    justify-content: center;
}

.contact-submit {
    align-self: stretch;
    min-width: 160px;
}

.contact-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(-4px);
    animation: contact-status-in 240ms ease-out forwards;
    will-change: transform, opacity;
}

@keyframes contact-status-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-status.ok {
    background: rgba(99, 201, 141, 0.12);
    border: 1px solid rgba(99, 201, 141, 0.35);
    color: #b5e9c9;
}

.contact-status.err {
    background: rgba(239, 111, 108, 0.12);
    border: 1px solid rgba(239, 111, 108, 0.35);
    color: #f4b9b7;
}

.contact-status i {
    font-size: 1.1rem;
}

@media (max-width: 540px) {
    .contact-layout {
        max-width: 100%;
        padding: 0;
    }

    .contact-card {
        padding: 1.25rem;
    }

    .contact-type {
        font-size: 0.78rem;
        padding: 0.7rem 0.4rem;
    }

        .contact-type i {
            font-size: 1.15rem;
        }
}
