/* Donation Form Styles */
#siragugal-donation-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.donation-form {
    width: 100%;
}

.form-section {
    margin-bottom: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #2c5aa0;
}

.form-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c5aa0;
    font-size: 18px;
    font-weight: 600;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row input,
.form-row textarea {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.1);
}

.form-row textarea {
    resize: vertical;
    min-height: 80px;
}

/* Initiative Selection */
.initiative-selection {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.initiative-selection label {
    display: flex;
    align-items: center;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.initiative-selection label:hover {
    background: #f0f4f8;
    border-color: #2c5aa0;
}

.initiative-selection input[type="radio"] {
    margin-right: 10px;
    accent-color: #2c5aa0;
}

.initiative-selection label:has(input:checked) {
    background: #e8f0fe;
    border-color: #2c5aa0;
    font-weight: 600;
}

/* Amount Section */
.amount-section {
    text-align: center;
}

#donation_amount {
    width: 200px;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    border: 2px solid #2c5aa0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.amount-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.amount-btn {
    padding: 10px 20px;
    background: #fff;
    border: 2px solid #2c5aa0;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 600;
    color: #2c5aa0;
}

.amount-btn:hover {
    background: #f0f4f8;
}

.amount-btn.active {
    background: #2c5aa0;
    color: #fff;
}

/* Donate Button */
.donate-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2c5aa0 0%, #1a4480 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.donate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.donate-btn:active {
    transform: translateY(0);
}

/* Status Messages */
#donation-status {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
}

.status-message {
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.status-message.loading {
    background: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.status-message.success {
    background: #e8f5e8;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.status-message.error {
    background: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* Loading Spinner */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #2c5aa0;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Receipt Download Button */
.receipt-download-btn {
    display: inline-block;
    padding: 12px 25px;
    background: #4caf50;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: all 0.3s;
}

.receipt-download-btn:hover {
    background: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    #siragugal-donation-form {
        margin: 10px;
        padding: 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .initiative-selection {
        grid-template-columns: 1fr;
    }
    
    .amount-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .amount-btn {
        width: 100%;
        max-width: 200px;
    }
    
    #donation_amount {
        width: 100%;
        max-width: 200px;
    }
}

/* Integration with existing theme */
.content-block #siragugal-donation-form {
    background: transparent;
    box-shadow: none;
    max-width: 100%;
}

/* Override for existing donation section */
.payment-col,
.donation-col {
    position: relative;
}

.payment-col #siragugal-donation-form,
.donation-col #siragugal-donation-form {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.payment-col .form-section,
.donation-col .form-section {
    background: rgba(255, 255, 255, 0.1);
    border-left: 4px solid #fff;
}

.payment-col .form-section h3,
.donation-col .form-section h3 {
    color: #fff;
}

.payment-col .initiative-selection label,
.donation-col .initiative-selection label {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.payment-col .initiative-selection label:hover,
.donation-col .initiative-selection label:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Form validation styles */
.form-row input.error,
.form-row textarea.error {
    border-color: #f44336;
    background: #ffebee;
}

.form-row input.success,
.form-row textarea.success {
    border-color: #4caf50;
    background: #e8f5e8;
}

/* Accessibility improvements */
.form-row label {
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
    color: #333;
}

.form-row input:required::placeholder,
.form-row textarea:required::placeholder {
    color: #999;
}

.form-row input:required::placeholder::after,
.form-row textarea:required::placeholder::after {
    content: " *";
    color: #f44336;
}

/* Focus management */
.donate-btn:focus,
.amount-btn:focus,
.initiative-selection input:focus {
    outline: 2px solid #2c5aa0;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    #siragugal-donation-form {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .donate-btn {
        display: none;
    }
}