/*
 * Shared Forms plugin CSS. Status and honeypot states are class-driven
 * so form scripts do not need CSP-blocked inline style updates.
 */



.va-honeypot-container {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
    clip-path: inset(50%) !important;
}

:where(.va-forms-interest) {
    --va-forms-interest-gap: 0.75rem;
    --va-forms-interest-control-height: 2.75rem;
    --va-forms-interest-inline-max: 42rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, var(--va-forms-interest-inline-max));
    gap: var(--va-forms-interest-gap);
}

:where(.va-forms-interest__label) {
    display: block;
    margin: 0;
    font-weight: 600;
}

:where(.va-forms-interest__controls) {

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0.625rem;
    width: 100%;
}

.va-forms-interest__input {
    min-width: 12rem;
    min-height: var(--va-forms-interest-control-height);
    width: 100%;
    max-width: 100%;

    margin: 0;
    padding: 0.625rem 0.875rem;
    box-sizing: border-box;

    border-radius: 0.625rem;
}

:where(.va-forms-interest__button) {
    min-height: var(--va-forms-interest-control-height);
    min-width: 10rem;
    max-width: 100%;
    padding: 0.625rem 1rem;
    box-sizing: border-box;
    align-self: stretch;
}


:where(.va-forms-interest__status) {
    margin: 0;
    width: 100%;

    --va-forms-interest-status-font-family: inherit;
    --va-forms-interest-status-font-size: inherit;
    --va-forms-interest-status-font-weight: 600;
    --va-forms-interest-status-processing-color: #a16207;
    --va-forms-interest-status-success-color: #16a34a;
    --va-forms-interest-status-error-color: #dc2626;
}

:where(.va-forms-interest__note) {
    margin: 0;
}


:where(form[data-va-forms-form="true"]) .va-forms-interest__status-message {
    margin-top: 0;
    font-family: var(--va-forms-interest-status-font-family, inherit);
    font-size: var(--va-forms-interest-status-font-size, inherit);
    font-weight: var(--va-forms-interest-status-font-weight, 600);
}

:where(form[data-va-forms-form="true"]) .va-forms-interest__status--success,
:where(form[data-va-forms-form="true"]) .message.success {
    color: var(--va-forms-interest-status-success-color, #16a34a);
}

:where(form[data-va-forms-form="true"]) .va-forms-interest__status--error,
:where(form[data-va-forms-form="true"]) .message.error {
    color: var(--va-forms-interest-status-error-color, #dc2626);
}

:where(form[data-va-forms-form="true"]) .va-forms-interest__status--processing,
:where(form[data-va-forms-form="true"]) .message.processing {
    color: var(--va-forms-interest-status-processing-color, #a16207);
}


:where(form[data-va-forms-form="true"]) [data-forms-status] {
    position: static !important;
    display: block;
    width: 100%;
    clear: both;
    flex-basis: 100%;
    z-index: auto;
}

.va-forms-result-page {
    min-height: 100dvh;
    margin: 0;
    background: var(--motif-background-page, Canvas);
    color: var(--motif-color-text-primary, CanvasText);
    font-family: var(--motif-font-body, var(--font-body, system-ui, sans-serif));
}

.va-forms-result-main {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(1.5rem, 6vw, 4rem) 1rem;
}

.va-forms-result-card {
    width: min(100%, 38rem);
    padding: clamp(1.5rem, 5vw, 3rem);
    border: 1px solid var(--motif-border-subtle, color-mix(in srgb, CanvasText 20%, transparent));
    border-radius: var(--motif-radius-card, 0.5rem);
    background: var(--motif-color-canvas-800, var(--motif-background-surface, Canvas));
    text-align: center;
}

.va-forms-result-kicker {
    margin: 0 0 0.75rem;
    color: var(--motif-color-accent-primary, currentColor);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.va-forms-result-title {
    margin: 0;
    color: var(--motif-color-display, currentColor);
    font-family: var(--motif-font-display, var(--font-display, inherit));
    font-size: clamp(2rem, 6vw, 3.25rem);
    line-height: 1.05;
}

.va-forms-result-message {
    margin: 1rem 0 0;
    color: var(--motif-color-text-muted, currentColor);
    line-height: 1.7;
}

.va-forms-result-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    margin-top: 1.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--motif-color-accent-primary, currentColor);
    border-radius: var(--motif-radius-control, 0.5rem);
    background: var(--motif-color-accent-primary, currentColor);
    color: var(--motif-color-on-accent, Canvas);
    font-weight: 700;
    text-decoration: none;
}

.va-forms-result-footer {
    padding: 0 1rem 1.5rem;
    text-align: center;
    color: var(--motif-color-text-muted, currentColor);
}


@media (max-width: 520px) {
    :where(.va-forms-interest__controls) {
        grid-template-columns: minmax(0, 1fr);
    }

    :where(.va-forms-interest__button) {
        width: 100%;
    }
}
