/* ══════════════════════════════════════════════════════════════════════════
   Public contact form — styled to match the theme via brand tokens. Loaded
   through the asset registry (register_asset in init_feature), never inline or
   from a CDN. Mirrors the comments form look.
   ══════════════════════════════════════════════════════════════════════════ */

.contact-form {
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    padding: 1.5rem;
    background: var(--brand-bg, #ffffff);
    border: 1px solid var(--brand-border, #e5e7eb);
    border-radius: var(--brand-radius, 8px);
}

.contact-form__flashes {
    max-width: 560px;
    margin-bottom: 1.25rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    margin: 0;
}

.contact-form label {
    font-weight: 600;
    font-size: .95rem;
    color: var(--brand-heading, #222222);
}

.contact-form .form-control {
    width: 100%;
    padding: .6rem .75rem;
    border: 1px solid var(--brand-border, #e5e7eb);
    border-radius: var(--brand-radius, 6px);
    background: var(--brand-bg, #ffffff);
    color: var(--brand-text, #2b2b2b);
    font: inherit;
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--brand-primary, #DD3333);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary, #DD3333) 20%, transparent);
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 140px;
}

.contact-form .btn {
    align-self: flex-start;
}

/* Captcha widget breathing room */
.contact-form .cf-turnstile,
.contact-form .g-recaptcha {
    margin: .25rem 0;
}

/* ── Admin inbox actions ────────────────────────────────────────────────────── */
.contact-actions {
    white-space: nowrap;
}

.contact-actions .btn svg {
    display: block;
}
