/* =============================================================
   Donate Page – donate-page.css
   Scoped to .donate-page — loaded only on page-donate.php
   Color tokens: navy #1B365D | cyan #1EC7E2 | dark #092A43
   ============================================================= */

/* ── Reset / base ─────────────────────────────────────────── */
.donate-page *,
.donate-page *::before,
.donate-page *::after {
    box-sizing: border-box;
}

/* ── Page wrapper ─────────────────────────────────────────── */
.donate-page {
    width: 100%;
    background: #ffffff;
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.donate-page__hero {
    background-color: #1B365D;
    padding: 60px 20px 80px;
}

.donate-page__hero-inner {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Card column ──────────────────────────────────────────── */
.donate-page__card-col {
    flex: 0 1 60%;
    max-width: 660px;
    position: relative;
    z-index: 1;
}

.donate-page__card {
    background-color: #1d3461;
    border: 1px solid rgba(30, 199, 226, 0.35);
    border-radius: 12px;
    padding: 40px 44px 48px;
    text-align: center;
    position: relative;
    overflow: visible;
}

/* ── Icon centered above card ─────────────────────────────── */
.donate-page__card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: -72px;   /* lifts icon above card top edge */
}

.donate-page__card-icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.donate-page__card-heading {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.2;
}

.donate-page__card-desc {
    color: #c8d8e8;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

/* ── Gravity Form inside card ─────────────────────────────── */
.donate-page__form-wrap .gform_wrapper {
    margin: 0;
}

.donate-page__form-wrap,
.donate-page__form-wrap .gform_wrapper,
.donate-page__form-wrap .gform_wrapper form,
.donate-page__form-wrap .gform_body,
.donate-page__form-wrap .gform_page,
.donate-page__form-wrap .gform_page_fields,
.donate-page__form-wrap .gform_page_footer {
    max-width: 100%;
    height: auto;
    max-height: none;
    overflow: visible !important;
}

/* Override global fixed footer height so AJAX page transitions can grow naturally. */
.donate-page #gform_wrapper_6 .gform_footer,
.donate-page #gform_wrapper_6 .gform_page_footer {
    height: auto !important;
    min-height: 60px;
}

/* ── Scoped button alignment & containment ────────────────── */
/* Field spacing */
.donate-page #field_6_7,
.donate-page #field_6_11 {
    margin-bottom: 20px !important;
}

/* Align Recurrence (One Time/Monthly) and Amount buttons to the same edge.
   Both containers get full width and consistent padding so the button
   columns line up precisely. */
.donate-page #input_6_29,
.donate-page #input_6_35 {
    width: 100% !important;
    margin: 0 !important;
    padding: 5px 0 !important;
    box-sizing: border-box !important;
}

/* Force Amount choices into exactly 2 columns to match One Time / Monthly row. */
.donate-page #input_6_35 .gchoice {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    box-sizing: border-box !important;
}

/* Match amount button label width/margin to One Time / Monthly labels. */
.donate-page #input_6_35 .gchoice label {
    width: calc(100% - 10px) !important;
    margin: 5px !important;
    box-sizing: border-box !important;
}

/* Neutralise the global margin-left:15px on the next button
   and ensure all form buttons sit centered inside the card. */
.donate-page #gform_next_button_6_31 {
    margin-left: 0 !important;
}

.donate-page #gform_wrapper_6 .gform_page_footer,
.donate-page #gform_wrapper_6 .gform_footer {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-align: center;
}

/* Prevent 50px horizontal padding from overflowing on mobile.
   Use a max-width so the button shrinks but never escapes the card. */
.donate-page #gform_wrapper_6 .gform_next_button,
.donate-page #gform_wrapper_6 .gform_previous_button,
.donate-page #gform_wrapper_6 .gform_button,
.donate-page #gform_wrapper_6 input[type="submit"],
.donate-page #gform_wrapper_6 .gform_page_footer .button {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

/* ── Hero photo column ────────────────────────────────────── */
.donate-page__hero-photo-col {
    flex: 0 1 40%;
    max-width: 480px;
    align-self: center;
}

.donate-page__hero-photo {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

/* ═══════════════════════════════════════════════════════════
   OTHER METHODS SECTION
   ═══════════════════════════════════════════════════════════ */
.donate-page__methods {
    background: #ffffff;
    padding: 64px 20px 56px;
}

.donate-page__methods-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.donate-page__methods-heading {
    text-align: center;
    color: #1B365D;
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 40px;
}

.donate-page__methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.donate-page__method-box {
    border: 1px solid #d0d8e4;
    border-radius: 6px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-height: 200px;
}

/* PayPal + Venmo boxes: center their image content */
.donate-page__method-box--paypal,
.donate-page__method-box--venmo {
    align-items: center;
    justify-content: center;
}

.donate-page__method-title {
    color: #1B365D;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 12px;
}

.donate-page__method-body {
    color: #333333;
    font-size: 14px;
    line-height: 1.7;
}

.donate-page__method-body p {
    margin: 0 0 8px;
}

.donate-page__method-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.donate-page__method-img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    display: block;
}

/* Placeholder label shown when image is not yet set */
.donate-page__method-placeholder {
    color: #8899aa;
    font-size: 14px;
    font-weight: 600;
}

/* ═══════════════════════════════════════════════════════════
   LEGAL / DISCLAIMER SECTION
   ═══════════════════════════════════════════════════════════ */
.donate-page__legal {
    background: #ffffff;
    padding: 0 20px 56px;
}

.donate-page__legal-inner {
    max-width: 1100px;
    margin: 0 auto;
    border-top: 1px solid #e0e8f0;
    padding-top: 32px;
}

.donate-page__legal-inner p,
.donate-page__legal-inner a {
    font-size: 13px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.donate-page__legal-inner a {
    color: #1B365D;
    text-decoration: underline;
}

.donate-page__legal-inner a:hover {
    color: #1EC7E2;
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .donate-page__hero-inner {
        flex-direction: column;
        align-items: center;
    }

    .donate-page__hero-photo-col--hide-mobile {
        display: none;
    }

    .donate-page__hero-photo-col {
        order: 1;
    }

    .donate-page__card-col {
        order: 2;
    }

    .donate-page__card-col {
        max-width: 100%;
        width: 100%;
    }

    .donate-page__card-icon {
        margin-top: 0;
    }

    .donate-page__hero-photo-col {
        max-width: 100%;
        width: 100%;
    }

    .donate-page__methods-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .donate-page__hero {
        padding: 40px 16px 56px;
    }

    .donate-page__card {
        padding: 32px 16px 36px;
    }

    .donate-page__methods-heading {
        font-size: 22px;
    }

    .donate-page__card-heading {
        font-size: 22px;
    }

    /* On very narrow screens collapse button padding so they fit */
    .donate-page #gform_wrapper_6 .gform_next_button,
    .donate-page #gform_wrapper_6 .gform_previous_button,
    .donate-page #gform_wrapper_6 .gform_button,
    .donate-page #gform_wrapper_6 input[type="submit"],
    .donate-page #gform_wrapper_6 .gform_page_footer .button {
        padding: 5px 24px !important;
    }
}
