/*
 * =========================================
 * CSS FOR THE DONATION MODAL
 * =========================================
*/

/* 1. The Modal Background (Overlay) */
.donation-modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stays on top of the page content */
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    backdrop-filter: blur(5px);
    
    /* For centering the content box */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Smooth fade-in effect */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* This class will be added by JavaScript to show the modal */
.donation-modal.active {
    opacity: 1;
    visibility: visible;
}


/* 2. The Modal Content Box */
.donation-modal-content {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 500px; /* Set a maximum width */
    position: relative;
    
    /* Smooth "pop-in" effect */
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.donation-modal.active .donation-modal-content {
    transform: scale(1);
}


/* 3. Modal Header */
.donation-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e5e5e5;
}

.donation-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #1a365d; /* Match your theme */
}

.close-btn {
    font-size: 2rem;
    color: #aaa;
    cursor: pointer;
    font-weight: 300;
    line-height: 1;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: #333;
}


/* 4. Modal Body */
.donation-modal-body {
    padding: 25px;
    line-height: 1.6;
    color: #555;
}

.donation-modal-body p {
    margin: 0 0 1rem 0;
}


/* 5. Modal Footer and Donate Button */
.donation-modal-footer {
    padding: 20px 25px;
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    border-radius: 0 0 12px 12px;
}

.donate-now-btn {
    display: inline-block;
    background-color: #28a745; /* A strong, positive green */
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.donate-now-btn:hover {
    background-color: #218838; /* A slightly darker green */
    transform: translateY(-2px);
}