/* ==========================================================================
   Donation Popup (Support Us)
   Recreates the legacy Farmers for Forests donation modals.
   Built on top of Bootstrap 5 modals already bundled with the project, so
   open / close / overlay / ESC / click-outside / responsive come for free.
   ========================================================================== */

.donation-modal .modal-content {
    border: 0;
    border-radius: 20px;
    overflow: hidden;
}

.donation-modal .modal-header {
    background: var(--accent-color, #2f5e3a);
    color: #fff;
    border-bottom: 0;
    padding: 22px 28px;
}

.donation-modal .modal-header .modal-title {
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0;
}

.donation-modal .modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: .9;
}

.donation-modal .modal-body {
    padding: 28px;
}

.donation-modal label {
    font-weight: 600;
    margin-bottom: 6px;
    display: block;
}

.donation-modal .form-control {
    border-radius: 10px;
    padding: 12px 16px;
}

/* Preset amount buttons --------------------------------------------------- */
.donation-amounts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.donation-amount-btn {
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 12px;
    padding: 14px 8px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.donation-amount-btn:hover {
    border-color: var(--accent-color, #2f5e3a);
}

.donation-amount-btn.active {
    background: var(--accent-color, #2f5e3a);
    border-color: var(--accent-color, #2f5e3a);
    color: #fff;
}

/* Theme selector (Grow Forests modal) ------------------------------------- */
.donation-themes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

.donation-theme-card {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 8px;
    cursor: pointer;
    text-align: center;
    transition: all .2s ease;
}

.donation-theme-card img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}

.donation-theme-card span {
    font-size: 13px;
    font-weight: 600;
}

.donation-theme-card.active {
    border-color: var(--accent-color, #2f5e3a);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}

.donation-theme-preview {
    text-align: center;
    margin-bottom: 18px;
}

.donation-theme-preview img {
    max-width: 100%;
    border-radius: 12px;
}

.donation-note {
    font-size: 13px;
    color: #6b6b6b;
    margin-top: 14px;
}

.donation-modal .btn-default {
    width: 100%;
    text-align: center;
    margin-top: 6px;
}

/* Build your Impact Story CTA --------------------------------------------- */
.impact-story-cta {
    background: var(--accent-color, #2f5e3a);
    color: #fff;
    border-radius: 24px;
    padding: 60px 40px;
    text-align: center;
}

.impact-story-cta h2 {
    color: #fff;
}

.impact-story-cta p {
    max-width: 760px;
    margin: 0 auto 24px;
    opacity: .92;
}

@media (max-width: 575.98px) {
    .donation-amounts,
    .donation-themes {
        grid-template-columns: repeat(2, 1fr);
    }
}
