/* Page Background */
.payment-page {
    background: linear-gradient(135deg, 
        rgba(47, 49, 147, 0.03) 0%, 
        rgba(245, 130, 32, 0.03) 50%, 
        rgba(255, 255, 255, 1) 100%);
    min-height: 80vh;
    padding: 2rem 0;
}

/* Main Card Styling */
.donation-card {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
    transition: transform 0.3s ease;
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

/* Header Styling */
.donation-header {
    background: linear-gradient(135deg, #2f3193 0%, #1a1c66 100%);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.1;
    animation: patternMove 20s linear infinite;
}

@keyframes patternMove {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.donation-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.donation-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

.donation-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Body Styling */
.donation-body {
    padding: 2.5rem;
}

@media (max-width: 768px) {
    .donation-body {
        padding: 1.5rem;
    }
}

/* Quick Donation Options */
.quick-donation-section {
    background: linear-gradient(135deg, rgba(245, 130, 32, 0.05) 0%, rgba(245, 130, 32, 0.02) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.quick-donation-title {
    color: #2f3193;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.quick-donation-title i {
    margin-right: 10px;
    color: #f58220;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

@media (max-width: 576px) {
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

.amount-btn {
    background: white;
    border: 2px solid #e0e0e0;
    color: #2f3193;
    font-weight: 600;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
}

.amount-btn:hover {
    border-color: #2f3193;
    color: #2f3193;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 49, 147, 0.1);
}

.amount-btn.active {
    background: linear-gradient(135deg, #2f3193 0%, #1a1c66 100%);
    border-color: #2f3193;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(47, 49, 147, 0.2);
}

.amount-btn .currency {
    font-size: 0.9em;
    opacity: 0.9;
}

/* Form Styling */
.donation-form .form-label {
    color: #2f3193;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.donation-form .form-control, .donation-form .form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.donation-form .form-control:focus, .donation-form .form-select:focus {
    border-color: #2f3193;
    box-shadow: 0 0 0 3px rgba(47, 49, 147, 0.1);
}

.donation-form .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-right: none;
    color: #2f3193;
    font-weight: 600;
}

.donation-form .input-group:focus-within .input-group-text {
    border-color: #2f3193;
    background: rgba(47, 49, 147, 0.05);
}

.amount-input-wrapper {
    position: relative;
}

.amount-input-wrapper::after {
    content: '₹';
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2f3193;
    font-weight: 600;
    z-index: 3;
}

.amount-input {
    padding-left: 35px !important;
}

/* Submit Button */
.donate-btn {
    background: linear-gradient(135deg, #f58220 0%, #e67300 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 18px 24px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.donate-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.donate-btn:hover::before {
    left: 100%;
}

.donate-btn:hover {
    background: linear-gradient(135deg, #e67300 0%, #f58220 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(245, 130, 32, 0.3);
}

/* Alert Messages */
.donation-alert {
    border-radius: 12px;
    border: none;
    padding: 1rem 1.25rem;
    margin-top: 1.5rem;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.donation-alert-success {
    background: linear-gradient(135deg, rgba(25, 135, 84, 0.1) 0%, rgba(25, 135, 84, 0.05) 100%);
    border-left: 4px solid #198754;
    color: #0f5132;
}

.donation-alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    border-left: 4px solid #dc3545;
    color: #842029;
}

/* Footer Styling */
.donation-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #e0e0e0;
    padding: 1.5rem;
    text-align: center;
}

.security-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2f3193;
    font-weight: 500;
}

.security-badge i {
    color: #198754;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Trust Indicators */
.trust-indicators {
    margin-top: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(47, 49, 147, 0.03) 0%, rgba(47, 49, 147, 0.01) 100%);
    border-radius: 12px;
}

.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    transition: transform 0.3s ease;
}

.trust-item:hover {
    transform: translateY(-3px);
}

.trust-item i {
    color: #2f3193;
    font-size: 1.25rem;
}

.trust-item span {
    color: #2f3193;
    font-weight: 500;
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .donation-title {
        font-size: 1.75rem;
    }
    
    .donation-icon {
        font-size: 2.5rem;
    }
    
    .donate-btn {
        padding: 16px 20px;
        font-size: 16px;
    }
    
    .trust-item {
        flex-direction: column;
        text-align: center;
    }
    
    .trust-item i {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
}

@media (max-width: 576px) {
    .donation-header {
        padding: 2rem 1.5rem;
    }
    
    .donation-title {
        font-size: 1.5rem;
    }
    
    .donation-subtitle {
        font-size: 0.9rem;
    }
}

/* Custom Form Validation */
.form-control.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.form-control.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.8;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Sacred Elements */
.sacred-lotus {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: radial-gradient(circle at 30% 30%, #f58220, transparent 70%);
    border-radius: 50%;
    opacity: 0.2;
    z-index: 1;
}

.donation-progress {
    height: 4px;
    background: linear-gradient(90deg, #2f3193, #f58220);
    width: 0;
    transition: width 0.5s ease;
}

/* Donation Type Badge */
.donation-type-badge {
    display: inline-block;
    background: rgba(245, 130, 32, 0.1);
    color: #f58220;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-left: 10px;
    border: 1px solid rgba(245, 130, 32, 0.2);
}