/* Donation Modal Styles */
.donation-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
}

.donation-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: modalFadeIn 0.5s;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: translateY(-20px);}
    to {opacity: 1; transform: translateY(0);}
}

.donation-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.donation-modal-close:hover {
    color: #6DBE66;
}

.donation-modal h2 {
    color: #6DBE66;
    margin-bottom: 15px;
    text-align: center;
}

.donation-modal p {
    text-align: center;
    margin-bottom: 25px;
}

.donation-form .form-group {
    margin-bottom: 20px;
}

.donation-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.donation-form input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: all 0.3s;
}

.donation-form input:focus {
    border-color: #6DBE66;
    box-shadow: 0 0 5px rgba(109, 190, 102, 0.5);
    outline: none;
}

.amount-buttons {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.amount-btn {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    padding: 10px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    width: 22%;
    margin-bottom: 10px;
    font-weight: bold;
}

.amount-btn:hover, .amount-btn.active {
    background-color: #6DBE66;
    color: white;
    border-color: #6DBE66;
}

.form-actions {
    text-align: center;
    margin-top: 30px;
}

.donate-submit-btn {
    background-color: #6DBE66;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

.donate-submit-btn:hover {
    background-color: #5aa057;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#donation-processing, #donation-success, #donation-error {
    text-align: center;
    padding: 20px 0;
}

#donation-processing .loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #6DBE66;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#error-list {
    color: #d9534f;
    text-align: left;
    padding-left: 20px;
    margin: 15px 0;
}

#retry-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

#retry-btn:hover {
    background-color: #5a6268;
}

.payment-details {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    text-align: left;
}

.payment-details p {
    margin: 5px 0;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .donation-modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .amount-btn {
        width: 48%;
    }
}