/*
 * Contact page styles (Phase W5.1).
 * Mobile-first. All rules scoped under .contact-page so they cannot affect
 * the homepage, the waitlist section, or any other page.
 *
 * The form is rendered by Fluent Forms (ID 4). This file intentionally does
 * NOT target Fluent Forms internal classes (.ff-*, .frm-fluent-form, etc.) --
 * the form is wrapped, not styled. Scoped overrides can be added in a
 * follow-up if the plugin output needs visual adjustment.
 *
 * Greys:
 * - Borders: var(--color-input-border) (defined in style.css :root).
 * - Muted text: var(--color-text) + opacity (waitlist.css has no standalone
 *   muted-grey hex; tertiary text uses the same pattern).
 */

/*
 * Global utility (unscoped, reusable from any template).
 * Visually hides content while keeping it available to screen readers.
 * Matches the WordPress core .screen-reader-text convention.
 */
.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
}

.contact-page .contact {
    background-color: var(--color-bg);
    padding: 64px 20px 48px;
}

.contact-page .contact-container {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

/* ---------- Left column copy ---------- */

.contact-page .contact-h1 {
    margin: 0 0 20px;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 600;
    color: var(--color-text);
    text-wrap: balance;
}

.contact-page .contact-sub {
    margin: 0 0 36px;
    max-width: 480px;
    font-size: 18px;
    line-height: 1.55;
    letter-spacing: -0.005em;
    color: var(--color-text);
    opacity: 0.75;
    text-wrap: pretty;
}

/* ---------- Channel tiles ---------- */

.contact-page .contact-channels {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-page .contact-channel {
    margin: 0;
}

.contact-page .contact-channel-link {
    display: block;
    padding: 16px 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-input-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--color-text);
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.contact-page .contact-channel-link:hover,
.contact-page .contact-channel-link:focus-visible {
    border-color: var(--color-primary);
    transform: translateY(-1px);
}

.contact-page .contact-channel-label {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
}

.contact-page .contact-channel-target {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
}

.contact-page .contact-channel-desc {
    display: block;
    font-size: 13px;
    /* Muted tertiary text. Pattern from waitlist.css: var(--color-text) + opacity (no standalone muted-grey hex exists). */
    color: var(--color-text);
    opacity: 0.7;
}

/* ---------- Trust strip ---------- */

.contact-page .contact-trust {
    margin: 8px 0 0;
    font-size: 13px;
    letter-spacing: 0.01em;
    color: var(--color-text);
    opacity: 0.7;
}

/* ---------- Right column (form) ---------- */

.contact-page .contact-form-heading {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    font-weight: 600;
    color: var(--color-text);
}

.contact-page .contact-response-strip {
    margin: 0 0 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
}

.contact-page .contact-form-wrap {
    padding: 24px 20px;
    background-color: var(--color-white);
    border: 1px solid var(--color-input-border);
    border-radius: 12px;
}

/* ---------- Form wrapper padding bump (>= 481px) ---------- */

@media (min-width: 481px) {
    .contact-page .contact-form-wrap {
        padding: 32px 28px;
    }
}

/* ---------- Two-column layout (>= 900px) ---------- */

@media (min-width: 900px) {
    .contact-page .contact {
        padding: 96px 24px 64px;
    }

    .contact-page .contact-container {
        grid-template-columns: 5fr 7fr;
        gap: 64px;
        align-items: start;
    }

    .contact-page .contact-h1 {
        font-size: 44px;
    }
}

/* ---------- Reduced-motion guard ----------
 * Drops the hover/focus transform and the transition for users who request
 * less motion at the OS level. WCAG 2.3.3 (Animation from Interactions).
 */

@media (prefers-reduced-motion: reduce) {
    .contact-page .contact-channel-link {
        transition: none;
    }

    .contact-page .contact-channel-link:hover,
    .contact-page .contact-channel-link:focus-visible {
        transform: none;
    }
}
