
/* =========================================
   DONATION HERO SECTION
========================================= */

.donation-hero {
    background:
        linear-gradient(
            110deg,
            rgba(9, 25, 48, 0.91),
            rgba(31, 60, 136, 0.78)
        ),
        url('../images/donation/donation-banner.jpg')
        center / cover no-repeat;

    min-height: 340px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 70px 22px;
}

.donation-hero-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.donation-eyebrow,
.donation-kicker {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    color: #e31e24;
}

.donation-hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.1;
    max-width: 760px;
    margin: 16px 0;
}

.donation-hero p {
    font-size: 1.1rem;
    max-width: 620px;
    line-height: 1.7;
    color: #f1f5f9;
}

.donation-primary-link {
    display: inline-flex;
    gap: 16px;
    align-items: center;
    background: #e31e24;
    color: #ffffff;
    padding: 14px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    margin-top: 12px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.donation-primary-link:hover {
    background: #c71920;
    transform: translateY(-2px);
    color: #ffffff;
}


/* =========================================
   MAIN DONATION PAGE
========================================= */

.donation-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 48px 20px 70px;
    color: #142238;
}

.donation-intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    align-items: end;
    margin-bottom: 28px;
}

.donation-intro h2,
.donation-admin-head h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin: 8px 0;
}

.donation-intro p {
    color: #536176;
    line-height: 1.75;
    margin: 0;
}

.donation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr);
    gap: 24px;
    align-items: start;
}


/* =========================================
   DONATION CARDS
========================================= */

.donation-card,
.donation-side-card {
    background: #ffffff;
    border: 1px solid #e4eaf1;
    border-radius: 16px;
    padding: 26px;
    box-shadow: 0 8px 28px rgba(17, 36, 67, 0.055);
}

.donation-card h1,
.donation-card h2 {
    margin-top: 0;
    color: #132746;
}

.donation-muted,
.donation-small {
    color: #697789;
    font-size: 0.88rem;
    line-height: 1.6;
}

.donation-small {
    margin-bottom: 0;
}


/* =========================================
   FORM LABELS AND INPUTS
========================================= */

.donation-label {
    display: block;
    font-weight: 700;
    font-size: 0.93rem;
    margin: 18px 0 8px;
}

.donation-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 13px;
    border: 1px solid #ccd5e0;
    border-radius: 8px;
    background: #ffffff;
    color: #142238;
    font: inherit;
    min-height: 45px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.donation-input:focus {
    outline: none;
    border-color: #1f3c88;
    box-shadow: 0 0 0 3px rgba(31, 60, 136, 0.12);
}

.donation-input::placeholder {
    color: #8a96a6;
}

textarea.donation-input {
    resize: vertical;
    min-height: 80px;
}


/* =========================================
   DONATION AMOUNT BUTTONS
========================================= */

.donation-amounts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
    margin: 10px 0;
}

.amount-choice {
    padding: 12px 4px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-weight: 700;
    color: #1f3c88;
    cursor: pointer;
    transition: all 0.25s ease;
}

.amount-choice:hover,
.amount-choice.selected {
    border-color: #e31e24;
    background: #fff4f4;
    color: #c71920;
}


/* =========================================
   DONOR DETAILS
========================================= */

.donation-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.donation-radio {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    border: 1px solid #e0e6ed;
    border-radius: 8px;
    margin: 8px 0;
    line-height: 1.5;
    cursor: pointer;
}

.donation-radio input,
.donation-consent input {
    margin-top: 4px;
    accent-color: #e31e24;
    flex-shrink: 0;
}

.donation-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    color: #536176;
    font-size: 0.87rem;
    line-height: 1.5;
    margin: 18px 0;
    cursor: pointer;
}


/* =========================================
   SUBMIT BUTTON
========================================= */

.donation-submit {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 9px;
    background: #e31e24;
    color: #ffffff;
    padding: 14px 18px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    margin-top: 18px;
    transition: background 0.25s ease, transform 0.25s ease;
}

.donation-submit:hover {
    background: #c71920;
    transform: translateY(-1px);
}

.donation-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    transform: none;
}

.donation-secondary-link {
    display: block;
    text-align: center;
    color: #1f3c88;
    text-decoration: none;
    font-weight: 700;
    margin-top: 18px;
}

.donation-secondary-link:hover {
    color: #e31e24;
}


/* =========================================
   RIGHT SIDEBAR
========================================= */

.donation-sidebar {
    display: grid;
    gap: 16px;
}

.donation-side-card h3 {
    margin: 5px 0 14px;
    color: #132746;
}

.donation-side-card p,
.donation-side-card li {
    color: #566579;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.donation-side-card ul {
    padding-left: 20px;
}

.donation-side-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    background: #fff0f0;
    color: #e31e24;
    border-radius: 12px;
    font-size: 1.7rem;
}


/* =========================================
   ERROR / ALERT MESSAGE
========================================= */

.donation-alert {
    background: #fff0f0;
    border: 1px solid #f3b7b7;
    color: #9e1b1b;
    border-radius: 9px;
    padding: 13px 15px;
    margin: 16px 0;
    line-height: 1.5;
}


/* =========================================
   PAYMENT PAGE
========================================= */

.donation-narrow {
    max-width: 720px;
}

.donation-payment-total {
    font-size: 2.1rem;
    font-weight: 800;
    color: #1f3c88;
    padding: 12px 0;
}


/* =========================================
   DONATION RECEIPT
========================================= */

.receipt-card {
    max-width: 620px;
    margin: 0 auto;
}

.receipt-mark {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #e8f7ef;
    color: #167849;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 18px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid #e8edf3;
}

.receipt-row span {
    color: #64748b;
}

.receipt-row strong {
    text-align: right;
    overflow-wrap: anywhere;
}

.receipt-trust {
    margin-top: 22px;
    padding: 16px;
    background: #f6f8fb;
    border-radius: 9px;
    line-height: 1.7;
}


/* =========================================
   ADMIN DASHBOARD
========================================= */

.donation-admin-head {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.donation-admin-link,
.donation-secondary-button {
    display: inline-block;
    background: #1f3c88;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    transition: background 0.25s ease;
}

.donation-admin-link:hover,
.donation-secondary-button:hover {
    background: #152b65;
    color: #ffffff;
}

.donation-table-wrap {
    overflow-x: auto;
    padding: 0;
}

.donation-table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.9rem;
}

.donation-table th,
.donation-table td {
    text-align: left;
    padding: 13px 14px;
    border-bottom: 1px solid #e7edf3;
    white-space: nowrap;
}

.donation-table th {
    background: #f5f7fb;
    color: #243b5b;
}

.donation-table a {
    color: #1f3c88;
    font-weight: 700;
}

.donation-status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 6px;
    background: #eef2ff;
    color: #263f89;
    font-size: 0.78rem;
}

.donation-admin-actions {
    margin-top: 18px;
}

.donation-danger {
    background: #7f1d1d;
    color: #ffffff;
    border: 0;
    border-radius: 8px;
    padding: 12px 16px;
    cursor: pointer;
}

.donation-danger:hover {
    background: #5f1515;
}


/* =========================================
   CAMPAIGN MANAGEMENT
========================================= */

.campaign-admin-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid #e7edf3;
    padding: 15px 0;
}

.campaign-admin-row p {
    color: #64748b;
    line-height: 1.5;
    margin: 5px 0;
}

.campaign-admin-row form {
    flex-shrink: 0;
}


/* =========================================
   RESPONSIVE DESIGN — TABLET / MOBILE
========================================= */

@media (max-width: 760px) {

    .donation-hero {
        min-height: 300px;
        padding: 50px 20px;
    }

    .donation-intro,
    .donation-layout {
        grid-template-columns: 1fr;
    }

    .donation-intro {
        gap: 10px;
    }

    .donation-card,
    .donation-side-card {
        padding: 20px;
    }

    .donation-two-col {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .donation-amounts {
        grid-template-columns: repeat(2, 1fr);
    }

    .donation-admin-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .receipt-row {
        gap: 12px;
    }

    .campaign-admin-row {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* =========================================
   PRINT RECEIPT
========================================= */

@media print {

    header,
    footer,
    .no-print,
    .donation-submit {
        display: none !important;
    }

    .donation-page {
        padding: 0;
        max-width: 100%;
    }

    .donation-card {
        box-shadow: none;
        border: 0;
    }

    .receipt-card {
        max-width: 100%;
    }

    body {
        background: #ffffff !important;
    }
}
