/* Donation Form Pro - Styles */

/* Initial Form Container */
.donation-form-container {
    max-width: 600px;
    margin: 10px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
   
}

.donation-amount-selector h3 {
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.amount-option {
    position: relative;
    cursor: pointer;
}

.amount-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.amount-option .amount-label {
    display: block;
    padding: 20px;
    border: 2px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.amount-option input[type="radio"]:checked + .amount-label {
    border-color: #003f7f;
    background: #003f7f;
    color: #fff;
}

.amount-option:hover .amount-label {
    border-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.custom-amount-input {
    margin-bottom: 25px;
}

.custom-amount-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.custom-amount-input input[type="number"] {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.custom-amount-input input[type="number"]:focus {
    outline: none;
    border-color: #003f7f;
}

.donation-submit-btn {
    width: 100%;
    padding: 15px;
    background: #A82114 !important;
    color: #fff !important;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.donation-submit-btn:hover {
    background: #000 !important;
}

.donation-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Popup Overlay */
.donation-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
}

.donation-popup {
    position: relative;
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.3);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

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

.donation-popup h2 {
    margin-bottom: 25px;
    font-size: 26px;
    font-weight: 700;
    color: #333;
}

.donation-popup h3 {
    margin: 30px 0 20px;
    font-size: 20px;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #003f7f;
    padding-bottom: 10px;
}

.donation-popup h4 {
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.payment-option {
    flex: 1;
    cursor: pointer;
}

.payment-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-option .payment-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.payment-option input[type="radio"]:checked + .payment-logos {
    border-color: #003f7f;
    background: #e8f0f8;
}

.payment-option .payment-logos img {
    max-height: 30px;
}

/* Form Groups */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.required {
    color: #d32f2f;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #003f7f;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M0 0l6 8 6-8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Radio Group */
.radio-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
}

.radio-group input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Recurring Section */
.recurring-section {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 6px;
}

.recurring-section label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.recurring-section input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* Info Note */
.info-note {
    background: #f9f9f9;
    padding: 20px;
    border-left: 4px solid #003f7f;
    border-radius: 4px;
    margin-bottom: 25px;
    font-size: 13px;
    line-height: 1.6;
}

.info-note strong {
    display: block;
    margin-bottom: 10px;
    color: #333;
}

.info-note ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.info-note li {
    margin-bottom: 5px;
}

/* Donation Total */
.donation-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 18px;
}

.donation-total strong {
    color: #333;
}

#donation-total-display {
    font-size: 24px;
    font-weight: 700;
    color: #003f7f;
}

/* Submit Button */
.donate-now-btn {
    width: 100%;
    padding: 18px;
    background: #003f7f;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    text-transform: uppercase;
}

.donate-now-btn:hover {
    background: #002855;
}

.donate-now-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .donation-popup {
        margin: 20px auto;
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .amount-options {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}

/* Loading State */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #003f7f;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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