/* Donation Page Styles */

.donation-page-wrapper {
    background: #f6f8f7;
}

.donation-hero {
    min-height: 240px;
}

.donation-hero .fms-system-page-overlay {
    padding: 76px 20px 58px;
}

.donation-hero .fms-system-page-inner h1 {
    font-size: 2.7rem;
}

.donation-page-wrapper .fms-system-page-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    color: inherit;
    font-size: inherit;
    line-height: inherit;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.donation-intro-section {
    padding: 30px 20px 26px;
    background: #fff;
    border-bottom: 1px solid #dde5e1;
}

.donation-intro-text {
    max-width: 820px;
    margin: 0 auto;
    color: #33443d;
    font-size: 1.04rem;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
}

.donation-fiscal-note {
    max-width: 760px;
    margin: 14px auto 0;
    padding: 10px 14px;
    color: #173d32;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.45;
    text-align: center;
    background: #edf4e8;
    border: 1px solid #d7e5cf;
    border-radius: 6px;
}

.section-title {
    margin: 0 0 36px;
    color: #173d32;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.donation-methods-section,
.donation-values-section,
.donation-cta-section {
    padding: 52px 20px;
}

.donation-fiscal-section {
    background: #f0f4f1;
    border-bottom: 1px solid #d8e2dc;
}

.fiscal-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 24px 28px;
    color: #34463f;
    font-size: 1rem;
    line-height: 1.8;
    background: #fff;
    border: 1px solid #d9e4df;
    border-radius: 8px;
}

.fiscal-content p {
    margin: 0 0 16px;
}

.fiscal-content p:last-child {
    margin-bottom: 0;
}

.donation-methods-section {
    background: #fff;
}

.donation-methods-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin: 0 auto;
}

.donation-method-card {
    position: relative;
    display: flex;
    min-height: 270px;
    flex-direction: column;
    align-items: flex-start;
    padding: 26px;
    overflow: hidden;
    color: #173d32;
    background: #ffffff;
    border: 1px solid #d9e3de;
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(24, 61, 50, 0.08);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.donation-method-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: #7c9b5d;
}

.donation-method-card::after {
    content: '';
    position: absolute;
    right: 24px;
    bottom: 24px;
    width: 46px;
    height: 46px;
    border-right: 2px solid rgba(124, 155, 93, 0.36);
    border-bottom: 2px solid rgba(124, 155, 93, 0.36);
    transform: translate(10px, 10px);
    transition: transform 220ms ease, opacity 220ms ease;
}

.donation-method-card:hover,
.donation-method-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(124, 155, 93, 0.55);
    background: #fbfdf9;
    box-shadow: 0 18px 42px rgba(24, 61, 50, 0.16);
}

.donation-method-card:hover::after,
.donation-method-card:focus-within::after {
    opacity: 1;
    transform: translate(0, 0);
}

.method-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 16px;
    padding: 5px 11px;
    color: #375c4f;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: #edf4e8;
    border-radius: 999px;
}

.donation-method-card h3 {
    margin: 0 0 12px;
    color: #173d32;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.12;
}

.method-description {
    margin: 0 0 20px;
    color: #43564e;
    font-size: 0.98rem;
    line-height: 1.7;
}

.donation-btn {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: auto;
    padding: 13px 22px;
    color: #173d32;
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.donation-btn::after {
    content: '›';
    margin-left: 10px;
    font-size: 1.2rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.donation-btn:hover::after,
.donation-btn:focus-visible::after {
    transform: translateX(3px);
}

.donation-btn-primary,
.donation-method-card .donation-btn-primary,
a.donation-btn-primary {
    color: #fff !important;
    background: #173d32;
    box-shadow: 0 8px 18px rgba(23, 61, 50, 0.18);
}

.donation-btn-primary:hover,
.donation-btn-primary:focus-visible,
.donation-method-card .donation-btn-primary:hover,
.donation-method-card .donation-btn-primary:focus-visible,
a.donation-btn-primary:hover,
a.donation-btn-primary:focus-visible {
    color: #fff !important;
    background: #244f42;
    box-shadow: 0 12px 24px rgba(23, 61, 50, 0.24);
    transform: translateY(-2px);
}

.donation-btn-secondary {
    color: #173d32;
    background: #fff;
    border-color: #7c9b5d;
}

.donation-btn-secondary:hover,
.donation-btn-secondary:focus-visible {
    color: #fff;
    background: #173d32;
    border-color: #173d32;
    transform: translateY(-2px);
}


.donation-check-modal[hidden] {
    display: none;
}

.donation-check-modal {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.donation-check-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.donation-check-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 31, 25, 0.62);
}

.donation-check-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: min(760px, calc(100vh - 48px));
    overflow: auto;
    padding: 34px;
    color: #34463f;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(12px);
    transition: transform 180ms ease;
}

.donation-check-modal.is-open .donation-check-modal__dialog {
    transform: translateY(0);
}

.donation-check-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    color: #173d32;
    font-size: 1.6rem;
    line-height: 1;
    background: #edf4e8;
    border: 1px solid #d7e5cf;
    border-radius: 999px;
    cursor: pointer;
}

.donation-check-modal__close:hover,
.donation-check-modal__close:focus-visible {
    color: #fff;
    background: #173d32;
    outline: none;
}

.donation-check-modal__dialog h3 {
    margin: 0 44px 22px 0;
    color: #173d32;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    line-height: 1.15;
}

.donation-check-modal__section {
    padding: 18px 0;
    border-top: 1px solid #dce6e1;
}

.donation-check-modal__section h4,
.donation-check-modal__reminder strong {
    display: block;
    margin: 0 0 8px;
    color: #173d32;
    font-size: 0.98rem;
    font-weight: 800;
}

.donation-check-modal__section p,
.donation-check-modal__lines,
.donation-check-modal__reminder p {
    margin: 0 0 10px;
    color: #43564e;
    line-height: 1.7;
}

.donation-check-modal__lines {
    padding-left: 14px;
    border-left: 3px solid #d7e5cf;
}

.donation-check-modal__reminder {
    margin-top: 8px;
    padding: 18px;
    background: #edf4e8;
    border: 1px solid #d7e5cf;
    border-radius: 8px;
}

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

.donation-btn-large {
    min-height: 52px;
    padding: 15px 28px;
    color: #173d32;
    background: #fff;
}

.donation-method-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.donation-info-box {
    padding: 26px 28px;
    color: #34463f;
    background: #f6f8f7;
    border: 1px solid #d9e3de;
    border-radius: 8px;
}

.donation-info-box h3 {
    margin: 0 0 14px;
    color: #173d32;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    line-height: 1.2;
}

.address-content,
.phone-hours,
.phone-number {
    color: #34463f;
    font-size: 0.96rem;
    line-height: 1.75;
}

.phone-number {
    margin: 0 0 12px;
    font-weight: 700;
}

.donation-detail-note {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #d7e1dc;
}

.donation-detail-note strong {
    display: block;
    margin-bottom: 8px;
    color: #173d32;
}

.donation-detail-note p {
    margin: 0;
    line-height: 1.7;
}

.donation-values-section {
    background: #f6f8f7;
    border-top: 1px solid #d9e3de;
    border-bottom: 1px solid #d9e3de;
}

.donation-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.value-card {
    min-height: 210px;
    padding: 30px;
    color: #34463f;
    background: #fff;
    border: 1px solid #d9e3de;
    border-radius: 8px;
    transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 155, 93, 0.55);
    box-shadow: 0 14px 30px rgba(24, 61, 50, 0.11);
}

.value-card h3 {
    margin: 0 0 12px;
    color: #173d32;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.15;
}

.value-card p {
    margin: 0;
    color: #43564e;
    font-size: 0.96rem;
    line-height: 1.75;
}

.donation-cta-section {
    color: #fff;
    text-align: center;
    background: #173d32;
}

.donation-cta-section h2 {
    max-width: 780px;
    margin: 0 auto 16px;
    color: #fff;
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.15rem;
    font-weight: 700;
    line-height: 1.15;
}

.donation-cta-section p {
    max-width: 760px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.04rem;
    line-height: 1.75;
}

.donation-cta-section .donation-btn-large:hover,
.donation-cta-section .donation-btn-large:focus-visible {
    color: #173d32;
    background: #edf4e8;
    transform: translateY(-2px);
}

.donation-btn:focus,
.donation-btn:focus-visible {
    outline: 2px solid #7c9b5d;
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .donation-methods-grid,
    .donation-values-grid {
        grid-template-columns: 1fr;
    }

    .donation-method-card {
        min-height: auto;
    }

    .donation-method-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .donation-intro-section,
    .donation-methods-section,
    .donation-values-section,
    .donation-cta-section {
        padding: 40px 16px;
    }

    .section-title {
        margin-bottom: 28px;
        font-size: 1.55rem;
    }

    .donation-intro-text,
    .donation-cta-section p {
        font-size: 0.98rem;
    }

    .donation-method-card,
    .value-card,
    .donation-info-box,
    .fiscal-content {
        padding: 24px;
    }

    .donation-method-card h3,
    .donation-cta-section h2 {
        font-size: 1.55rem;
    }

    .donation-check-modal {
        padding: 16px;
    }

    .donation-check-modal__dialog {
        padding: 28px 22px;
    }

    .donation-check-modal__dialog h3 {
        font-size: 1.5rem;
    }

    .donation-btn {
        width: 100%;
        padding-right: 16px;
        padding-left: 16px;
    }
}

@media print {
    .donation-btn {
        display: none;
    }

    .fms-system-page-hero,
    .donation-page-wrapper,
    .donation-fiscal-section,
    .donation-methods-section,
    .donation-values-section,
    .donation-cta-section {
        color: #111;
        background: #fff;
    }
}
