/* --- Donation Page Styles --- */

.donate-hero {
    min-height: 40vh;
    background: #0f172a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 100px;
    overflow: hidden;
}

.donate-hero .hero-bg {
    opacity: 0.6;
}

.donate-container {
    margin-top: -100px;
    position: relative;
    z-index: 10;
    margin-bottom: 100px;
}

.donation-form-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.donation-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.form-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Amount Selection */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.amount-btn {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.amount-btn:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

.amount-btn.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.2);
}

.custom-amount-wrapper {
    position: relative;
    margin-bottom: 2.5rem;
}

.currency-symbol {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.custom-amount-input {
    width: 100%;
    padding: 1.2rem 1.2rem 1.2rem 3.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.custom-amount-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.1);
}

/* Form Groups */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input, .form-select {
    padding: 1rem 1.2rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-input:focus, .form-select:focus {
    outline: none;
    border-color: var(--primary);
}

.donate-submit-btn {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.secure-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.85rem;
}

.secure-tag i {
    color: #d4af37;
}

@media (max-width: 768px) {
    .donation-card {
        padding: 2rem 1.5rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .form-group.full-width {
        grid-column: span 1;
    }
    
    .donate-hero {
        min-height: 30vh;
    }
}

/* Field validation error state */
.form-input.field-error,
.custom-amount-input.field-error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
    animation: shake 0.3s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25%       { transform: translateX(-6px); }
    75%       { transform: translateX(6px); }
}


/* --- Payment Verification Overlay --- */
.verify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}

.verify-overlay.active {
    display: flex;
    animation: fadeInOverlay 0.5s ease forwards;
}

@keyframes fadeInOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
}

.verify-content {
    max-width: 500px;
}

.verify-loader {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2.5rem;
}

.loader-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 6px solid #e2e8f0;
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.loader-inner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: var(--primary);
    animation: pulse 2s ease-in-out infinite;
}

.verify-title {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
}

.verify-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.verify-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
}

.step {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: #94a3b8;
    font-weight: 600;
}

.step i {
    font-size: 1.4rem;
}

.step.active {
    color: #059669;
}

.step.in-progress {
    color: var(--primary);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}
