/* Fundraising One Sheet modal — scoped to /fundraising/ only. */

.fundraising-page .onesheet-modal {
    position: fixed;
    inset: 0;
    z-index: 10070;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: rgba(18, 22, 40, 0.58);
}

.fundraising-page .onesheet-modal[hidden] {
    display: none !important;
}

.fundraising-page .onesheet-modal__dialog {
    position: relative;
    width: min(100%, 440px);
    max-height: min(92vh, 640px);
    overflow: auto;
    margin: 0;
    padding: 1.4rem 1.35rem 1.25rem;
    border: none;
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 24px 60px rgba(16, 22, 40, 0.35);
}

.fundraising-page .onesheet-modal__close {
    position: absolute;
    top: 0.65rem;
    right: 0.7rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: #eef2f8;
    color: #2d2658;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.fundraising-page .onesheet-modal__eyebrow {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #2a8fa8;
}

.fundraising-page .onesheet-modal__title {
    margin: 0 0 0.55rem;
    padding-right: 1.5rem;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #2d2658;
}

.fundraising-page .onesheet-modal__copy {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5568;
}

.fundraising-page .onesheet-form {
    display: grid;
    gap: 0.75rem;
}

.fundraising-page .onesheet-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.fundraising-page .onesheet-field label {
    display: block;
    margin: 0 0 0.28rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #2d2658;
}

.fundraising-page .onesheet-field input {
    width: 100%;
    min-height: 2.65rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid rgba(45, 38, 88, 0.18);
    border-radius: 8px;
    background: #f8fafc;
    color: #1f2937;
    font: inherit;
    font-size: 0.95rem;
}

.fundraising-page .onesheet-field input:focus {
    outline: 3px solid rgba(42, 143, 168, 0.28);
    outline-offset: 1px;
    border-color: #2a8fa8;
    background: #ffffff;
}

.fundraising-page .onesheet-field input[aria-invalid="true"] {
    border-color: #c2410c;
}

.fundraising-page .onesheet-hp {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.fundraising-page .onesheet-error {
    margin: 0.35rem 0 0;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    background: #fff1f0;
    color: #9f1239;
    font-size: 0.86rem;
    line-height: 1.4;
}

.fundraising-page .onesheet-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 3rem;
    margin-top: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e88c2e;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8b85e 0%, #f5a64a 50%, #e88c2e 100%);
    color: #1c1917;
    font: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(232, 140, 46, 0.28);
}

.fundraising-page .onesheet-submit:hover,
.fundraising-page .onesheet-submit:focus {
    filter: brightness(1.04);
}

.fundraising-page .onesheet-submit:disabled {
    opacity: 0.72;
    cursor: wait;
}

.fundraising-page .onesheet-loading,
.fundraising-page .onesheet-success {
    text-align: center;
    padding: 0.75rem 0.25rem 0.35rem;
}

.fundraising-page .onesheet-loading__title,
.fundraising-page .onesheet-success__title {
    margin: 0 0 0.55rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: #2d2658;
}

.fundraising-page .onesheet-loading__copy,
.fundraising-page .onesheet-success__copy {
    margin: 0 0 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4b5568;
}

.fundraising-page .onesheet-success__email {
    font-weight: 700;
    color: #2d2658;
}

.fundraising-page .onesheet-success__actions {
    display: grid;
    gap: 0.55rem;
}

.fundraising-page .onesheet-success__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 8px;
    background: #2d2658;
    color: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.fundraising-page .onesheet-success__change {
    border: none;
    background: transparent;
    color: #2a8fa8;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
}

body.onesheet-modal-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .fundraising-page .onesheet-form__row {
        grid-template-columns: 1fr;
    }
}
