/* assets/public/site/contacto.css
 *
 * Public contact page. Every rule prefixed with .contact-page so it can't
 * leak into other storefront pages. Uses design tokens exclusively.
 */

.contact-page {
    max-width: 760px;
    margin: 0 auto;
    padding: var(--space-8) var(--space-5) var(--space-10);
}

/* ── Page header ─────────────────────────────────────────────────── */

.contact-page__header {
    text-align: center;
    margin-bottom: var(--space-7);
}

.contact-page__title {
    margin: 0 0 var(--space-3) 0;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--color-brand-primary);
    letter-spacing: -0.01em;
}

.contact-page__subtitle {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-secondary-grey);
}

.contact-page__subtitle a {
    color: var(--color-secondary-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-page__subtitle a:hover {
    text-decoration: underline;
}

/* ── Form ────────────────────────────────────────────────────────── */

.contact-page__form .moon-form-section {
    /* The moon-form-section card already provides the surface, border
       and radius. No overrides needed. */
}

.contact-page__form .moon-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ── Honeypot — visually & assistive-tech hidden ─────────────────── */
/* Bots fill any text input that looks like a normal field. We render
   the field in the DOM so it's grabbable by automated form-fillers,
   but pull it off the page so humans never encounter it. */

.contact-page__honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ── Turnstile container ─────────────────────────────────────────── */
/* Most users never see anything here — Cloudflare's "managed" widget
   is invisible unless the request looks suspicious, in which case it
   inflates to show a checkbox or short challenge. The flexible size
   lets it expand naturally without forcing a fixed height when idle. */

.contact-page__turnstile {
    margin-top: var(--space-5);
    min-height: 0;     /* let it collapse to zero when idle/invisible */
}

.contact-page__turnstile:empty {
    display: none;
}

/* ── Mobile tweaks ───────────────────────────────────────────────── */

@media (max-width: 600px) {
    .contact-page {
        padding: var(--space-6) var(--space-4) var(--space-8);
    }
    .contact-page__form .moon-action-bar {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .contact-page__form .moon-action-bar .btn {
        width: 100%;
    }
}
