/*
 * email-capture.css — neutral, per-site-CSS-friendly defaults for the public-site lead-capture
 * form. Loaded globally from /Sites/Shared/_SeoHead.cshtml so every public site picks it up.
 *
 * Each site can over-style by targeting `.email-capture` etc. in its own /sites/<name>/css/site.css
 * (per-site CSS loads AFTER this file in every layout).
 *
 * Goals:
 *   - Look reasonable on every brand without per-site work.
 *   - Inherit the host font and color scheme (color-scheme + currentColor) so it doesn't
 *     fight the dark/light themes used by sites like LLMOp (CRT) or Lesspoo (mud).
 *   - Honeypot field is OFF-screen for users + screen readers handle aria-hidden gracefully.
 */

.email-capture {
    margin: 3rem 0 2rem;
    padding: 2rem 1.25rem;
    border-radius: 12px;
    background: color-mix(in srgb, currentColor 6%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.email-capture-inner {
    max-width: 36rem;
    margin: 0 auto;
    text-align: center;
}

.email-capture-heading {
    font-size: 1.5rem;
    line-height: 1.2;
    margin: 0 0 .5rem;
    font-weight: 700;
}

.email-capture-sub {
    margin: 0 0 1.25rem;
    opacity: .75;
    font-size: .95rem;
    line-height: 1.5;
}

.email-capture-flash {
    margin: 0 0 1rem;
    padding: .6rem .9rem;
    border-radius: 8px;
    font-size: .9rem;
}

.email-capture-flash-ok {
    background: color-mix(in srgb, #16a34a 18%, transparent);
    color: color-mix(in srgb, currentColor 85%, transparent);
    border: 1px solid color-mix(in srgb, #16a34a 35%, transparent);
}

.email-capture-flash-err {
    background: color-mix(in srgb, #dc2626 18%, transparent);
    color: color-mix(in srgb, currentColor 85%, transparent);
    border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
}

.email-capture-form {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.email-capture-field {
    flex: 1 1 18rem;
    min-width: 0;
    text-align: left;
}

.email-capture-label {
    /* Visually hidden but reachable to screen readers. */
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.email-capture-input {
    width: 100%;
    box-sizing: border-box;
    padding: .75rem 1rem;
    font-size: 1rem;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    background: color-mix(in srgb, currentColor 4%, transparent);
    color: inherit;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.email-capture-input::placeholder {
    opacity: .5;
    color: inherit;
}

.email-capture-input:focus {
    outline: 2px solid color-mix(in srgb, currentColor 50%, transparent);
    outline-offset: 1px;
    background: color-mix(in srgb, currentColor 7%, transparent);
}

.email-capture-btn {
    flex: 0 0 auto;
    padding: .75rem 1.25rem;
    font-size: 1rem;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    background: color-mix(in srgb, currentColor 35%, black);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease;
}

.email-capture-btn:hover {
    filter: brightness(.9);
}

.email-capture-btn:focus {
    outline: 2px solid color-mix(in srgb, currentColor 60%, transparent);
    outline-offset: 2px;
}

.email-capture-fineprint {
    margin: .85rem 0 0;
    font-size: .8rem;
    opacity: .55;
}

.email-capture-hp {
    /* Honeypot: positioned off-screen so real users never see/tab into it. */
    position: absolute !important;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/*
 * contact-form — full Contact Us form (Name + Email + Message). Posts to /lead, persists into
 * contact_messages, viewed by admin in the back-office Messages page. NO emails sent.
 *
 * Mirrors the email-capture neutrals (currentColor + color-mix) so it inherits the host theme
 * without per-site work. Per-site CSS may override by targeting `.contact-form` etc.
 */

.contact-form {
    margin: 4rem 0 2rem;
    padding: 2.5rem 1.25rem;
    border-radius: 14px;
    background: color-mix(in srgb, currentColor 7%, transparent);
    border: 1px solid color-mix(in srgb, currentColor 16%, transparent);
}

.contact-form-inner {
    max-width: 42rem;
    margin: 0 auto;
}

.contact-form-heading {
    font-size: 1.85rem;
    line-height: 1.15;
    margin: 0 0 .55rem;
    font-weight: 700;
    text-align: center;
}

.contact-form-sub {
    margin: 0 auto 1.5rem;
    max-width: 30rem;
    text-align: center;
    opacity: .75;
    font-size: .98rem;
    line-height: 1.55;
}

.contact-form-flash {
    margin: 0 0 1.25rem;
    padding: .7rem 1rem;
    border-radius: 8px;
    font-size: .92rem;
    text-align: center;
}

.contact-form-flash-ok {
    background: color-mix(in srgb, #16a34a 18%, transparent);
    color: color-mix(in srgb, currentColor 85%, transparent);
    border: 1px solid color-mix(in srgb, #16a34a 35%, transparent);
}

.contact-form-flash-err {
    background: color-mix(in srgb, #dc2626 18%, transparent);
    color: color-mix(in srgb, currentColor 85%, transparent);
    border: 1px solid color-mix(in srgb, #dc2626 35%, transparent);
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem 1rem;
}

.contact-form-row {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 0;
}

.contact-form-row-full {
    grid-column: 1 / -1;
}

@media (max-width: 36rem) {
    .contact-form-grid { grid-template-columns: 1fr; }
}

.contact-form-label {
    font-size: .82rem;
    font-weight: 600;
    opacity: .8;
}

.contact-form-input,
.contact-form-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: .7rem .9rem;
    font-size: 1rem;
    line-height: 1.4;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
    background: color-mix(in srgb, currentColor 4%, transparent);
    color: inherit;
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.contact-form-textarea {
    resize: vertical;
    min-height: 6.5rem;
}

.contact-form-input::placeholder,
.contact-form-textarea::placeholder { opacity: .5; color: inherit; }

.contact-form-input:focus,
.contact-form-textarea:focus {
    outline: 2px solid color-mix(in srgb, currentColor 50%, transparent);
    outline-offset: 1px;
    background: color-mix(in srgb, currentColor 7%, transparent);
}

.contact-form-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: .35rem;
}

.contact-form-btn {
    padding: .8rem 1.5rem;
    font-size: 1rem;
    line-height: 1.25;
    border-radius: 8px;
    border: 1px solid color-mix(in srgb, currentColor 35%, transparent);
    background: color-mix(in srgb, currentColor 35%, black);
    color: #fff;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: filter .15s ease;
}

.contact-form-btn:hover { filter: brightness(.9); }
.contact-form-btn:focus {
    outline: 2px solid color-mix(in srgb, currentColor 60%, transparent);
    outline-offset: 2px;
}

.contact-form-fineprint {
    font-size: .8rem;
    opacity: .6;
}

.contact-form-hp {
    /* Honeypot: positioned off-screen so real users never see/tab into it. */
    position: absolute !important;
    left: -10000px;
    top: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
