/* Donation Page Styles */
.donation-hero {
    background: linear-gradient(135deg, #002d5b 0%, #004080 100%);
    padding: 120px 0 80px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.donation-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.donation-wrapper {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin-top: -60px;
    position: relative;
    z-index: 10;
    overflow: hidden;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.donation-steps {
    display: flex;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
}

.step-item {
    flex: 1;
    padding: 20px;
    text-align: center;
    color: #999;
    font-weight: 600;
    transition: all 0.3s;
    position: relative;
}

.step-item.active {
    color: #004080;
    background: white;
}

.step-item.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #D4AF37;
    /* Gold */
}

.step-number {
    display: inline-block;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ddd;
    color: white;
    font-size: 14px;
    line-height: 24px;
    margin-right: 8px;
}

.step-item.active .step-number {
    background: #004080;
}

.donation-form-container {
    padding: 40px;
}

/* Amount Selection */
.amount-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.amount-btn {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px 10px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.amount-btn:hover {
    border-color: #004080;
    background: #f0f7ff;
}

.amount-btn.selected {
    border-color: #004080;
    background: #004080;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 64, 128, 0.2);
}

.amount-value {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

.amount-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.custom-amount-input {
    width: 100%;
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}

.custom-amount-input:focus {
    border-color: #004080;
    outline: none;
}

/* Donation Type Toggle */
.donation-type-toggle {
    display: flex;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 30px;
    padding: 5px;
    margin-bottom: 30px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.type-btn {
    flex: 1;
    padding: 10px 20px;
    border-radius: 25px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.type-btn.active {
    background: white;
    color: #004080;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Impact Cards */
.impact-showcase {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    border-left: 4px solid #D4AF37;
}

.impact-icon {
    font-size: 2.5rem;
    color: #004080;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
}

.donate-submit-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #D4AF37 0%, #B48F1F 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    color: #666;
    font-size: 0.9rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Mobile */
@media (max-width: 768px) {
    .amount-grid {
        grid-template-columns: 1fr;
    }

    .donation-form-container {
        padding: 25px 15px;
    }

    .donation-steps {
        font-size: 0.9rem;
    }

    .step-item {
        padding: 15px 5px;
    }

    .step-number {
        display: block;
        margin: 0 auto 5px;
    }

    .donation-wrapper {
        margin-top: -30px;
        /* Less overlap on mobile */
    }
}

/* Success Animation */
.success-card {
    text-align: center;
    padding: 40px 20px;
    animation: fadeIn 0.5s ease;
}

.success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 25px;
    background: #e6fffa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-icon {
    font-size: 3.5rem;
    color: #38b2ac;
    /* Teal-500 */
    animation: scaleIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Confetti (Simple CSS only version) */
.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffd300;
    top: 0;
    opacity: 0;
}

.ref-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
    padding: 15px;
    display: inline-block;
    margin: 20px 0;
    font-family: monospace;
    font-size: 1.2rem;
    color: #475569;
}