/* Structural styles only — colors inherit from the theme/Elementor.
   Typography is pinned to the site UI sans (acumin-pro): the form is a UI
   element, so it should match buttons/nav/amount tabs, not the serif
   (freight-text-pro) used for body copy. The site loads acumin-pro via Typekit. */
.s291-form {
    max-width: 480px;
    font-family: "acumin-pro", sans-serif;
    /* Card presentation so the inline form (donate/membership pages) matches the
       popup. Inside the modal the dialog is already the card, so this is reset below. */
    background: #fff;
    color: #0C1C1F;
    padding: 2rem clamp(1.25rem, 4vw, 2.25rem);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(12, 28, 31, 0.12);
}

.s291-form fieldset {
    border: 0;
    padding: 0;
    margin: 0 0 1.25em;
}

.s291-tier,
.s291-interval-opt,
.s291-amount-opt {
    display: flex;
    align-items: flex-start;
    gap: 0.5em;
    padding: 0.6em 0.75em;
    border: 1px solid currentColor;
    border-radius: 6px;
    margin-bottom: 0.5em;
    cursor: pointer;
}

.s291-tier:has(input:checked),
.s291-interval-opt:has(input:checked),
.s291-amount-opt:has(input:checked) {
    outline: 2px solid currentColor;
}

.s291-interval,
.s291-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 1em;
}

.s291-interval-opt,
.s291-amount-opt {
    flex: 1 1 auto;
    justify-content: center;
    margin-bottom: 0;
}

.s291-interval-opt input,
.s291-amount-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.s291-field {
    margin: 0 0 1em;
}

.s291-field label {
    display: block;
    font-weight: 600;
}

.s291-field input {
    display: block;
    width: 100%;
    padding: 0.5em 0.65em;
    margin-top: 0.25em;
    border: 1px solid #999;
    border-radius: 4px;
    font: inherit;
}

.s291-button {
    display: inline-block;
    padding: 0.75em 1.5em;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.s291-button:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Primary submit (donate / pay dues) — site primary blue, full width.
   Scoped to .s291-form (0,1,1 specificity) so it beats Elementor's global
   ".elementor-kit-6 button" rule on the donate/membership pages; the footer
   modal isn't inside .elementor so it wins there regardless. Hex because the
   Elementor global color vars aren't in scope outside .elementor. */
.s291-form .s291-button {
    border: 0;
    border-radius: 6px;
    padding: 0.75em 1.5em;
}
.s291-form .s291-submit {
    background: #0064F0;
    color: #FFFEF7;
    border-radius: 6px;
    width: 100%;
    margin-top: 1.5rem;
}
.s291-form .s291-submit:hover:not(:disabled) {
    background: #0C1C1F;
}

.s291-error {
    font-weight: 600;
    color: #b00020;
}

.s291-note small,
.s291-note {
    font-size: 0.9em;
}

.s291-hp {
    position: absolute !important;
    left: -9999px !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* --- Donate modal --- */
.s291-modal[hidden] { display: none; }
.s291-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 1rem;
    overflow-y: auto;
}
.s291-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(12, 28, 31, 0.7); /* --secondary @ 70% */
}
.s291-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    margin: auto;
    background: #fff;
    color: #0C1C1F;
    border-radius: 10px;
    padding: 2.5rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}
.s291-modal__title {
    margin: 0 0 1.25rem;
    font-size: 1.6rem;
}
.s291-modal__close {
    position: absolute;
    top: 0.4rem;
    right: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    background: none;
    border: 0;
    font-size: 1.6rem;
    line-height: 1;
    color: inherit;
    cursor: pointer;
}
body.s291-modal-open { overflow: hidden; }
/* The modal dialog is already the white card, so strip the form's own card there. */
.s291-modal .s291-form {
    max-width: none;
    background: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.s291-optional {
    font-weight: 400;
    color: #6b7280;
    font-size: 0.85em;
}
