/* Payment Modal and Notification Styles */

/* Payment Modal Styles */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.payment-modal-content {
    background: white;
    border-radius: 8px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.payment-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.payment-modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.payment-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.payment-modal-close:hover {
    color: #333;
}

.quick-donation-form {
    padding: 20px;
}

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

.quick-donation-form .form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.quick-donation-form .form-group input,
.quick-donation-form .form-group textarea,
.quick-donation-form .form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.quick-donation-form .form-group input:focus,
.quick-donation-form .form-group textarea:focus,
.quick-donation-form .form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.quick-donation-form .checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-donation-form .checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.quick-donation-form .checkbox-group label {
    margin: 0;
    font-weight: normal;
    cursor: pointer;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: flex-end;
}

.form-actions .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.form-actions .btn-secondary:hover {
    background: #5a6268;
}

.form-actions .btn-primary {
    background: #007bff;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #0056b3;
}

/* Home Page Donation Section Enhancements */
.donation-amount-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 30px;
}

.donation-amount-options .amount-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 120px;
    text-align: center;
}

.donation-amount-options .amount-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.donation-amount-options .amount-btn.active {
    background: white;
    color: var(--primary-color, #27ae60);
    border-color: white;
}

.donation-amount-options .custom-amount {
    display: flex;
    align-items: center;
}

.donation-amount-options .custom-amount input {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 16px;
    min-width: 155px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease;
}

.donation-amount-options .custom-amount input:focus {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.donation-amount-options .custom-amount input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive adjustments for home page donation */
@media (max-width: 768px) {
    .donation-amount-options {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .donation-amount-options .amount-btn,
    .donation-amount-options .custom-amount input {
        width: 100%;
        max-width: 280px;
    }
}

/* Payment Notification Styles */
.payment-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    max-width: 400px;
    z-index: 10001;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.payment-notification.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.payment-notification.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
}

.notification-content i {
    font-size: 18px;
    flex-shrink: 0;
}

.notification-close {
    background: none;
    border: none;
    margin-left: auto;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Payment Fallback Styles */
.payment-fallback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    max-width: 400px;
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.payment-fallback h4 {
    margin-bottom: 10px;
    color: #333;
}

.payment-fallback p {
    margin-bottom: 15px;
    color: #666;
}

.payment-fallback .btn {
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    display: inline-block;
    transition: background 0.2s ease;
}

.payment-fallback .btn:hover {
    background: #0056b3;
    text-decoration: none;
}

/* Fade out animation */
.fade-out {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Loading spinner for payment buttons */
.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* Donation Form Amount Button Enhancements */
.donation-form .amount-buttons .amount-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    color: #495057;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 5px 5px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.donation-form .amount-buttons .amount-btn:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateY(-1px);
}

.donation-form .amount-buttons .amount-btn.active {
    background: var(--primary-color, #27ae60);
    border-color: var(--primary-color, #27ae60);
    color: white;
}

.donation-form .amount-buttons .amount-btn.active:hover {
    background: #2ecc71;
    border-color: #2ecc71;
} 