/* Donate Page Styles */

/* Hero Section */
.donate-hero {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    padding: 120px 0 80px;
    color: white;
    position: relative;
    overflow: hidden;
}

.donate-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z" opacity=".1" fill="white"/></svg>') no-repeat;
    background-size: cover;
    opacity: 0.1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeInUp 1.2s ease;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Donation Card */
.donation-section {
    margin-top: -50px;
    position: relative;
    z-index: 10;
}

.donation-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 3rem;
    animation: fadeInUp 0.8s ease;
}

.donation-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #f8f9fa;
}

.donation-header h2 {
    color: #dc3545;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.donation-header p {
    color: #666;
    font-size: 1.1rem;
}

/* Amount Selection */
.amount-selection {
    margin-bottom: 2rem;
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.amount-btn {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.amount-btn:hover {
    border-color: #dc3545;
    color: #dc3545;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.2);
}

.amount-btn.active {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-color: #dc3545;
    color: white;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

.amount-btn.active::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 0.9rem;
}

/* Custom Amount Input */
.custom-amount-input {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.custom-amount-input:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
    outline: none;
}

.input-group-text {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-left: none;
    border-radius: 0 12px 12px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #dc3545;
}

/* Form Sections */
.personal-info-section,
.payment-info-section {
    margin-bottom: 2rem;
}

.section-subtitle {
    color: #333;
    font-weight: 600;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #f8f9fa;
}

.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.15);
    outline: none;
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Card Input */
.card-input-wrapper {
    position: relative;
}

.card-icons {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 8px;
    pointer-events: none;
}

.card-icons i {
    font-size: 1.8rem;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.card-input-wrapper:focus-within .card-icons i {
    opacity: 0.8;
}

/* Recurring Donation */
.recurring-section {
    background: linear-gradient(135deg, #fff5f5, #fff);
    border-radius: 12px;
    padding: 1.5rem;
    border: 2px solid #ffe0e0;
}

.custom-checkbox .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    border: 2px solid #dc3545;
    cursor: pointer;
    transition: all 0.3s ease;
}

.custom-checkbox .form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.custom-checkbox .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
    outline: none;
}

.custom-checkbox .form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Submit Button */
.btn-donate {
    background: linear-gradient(135deg, #dc3545, #c82333);
    border: none;
    border-radius: 12px;
    padding: 1.2rem 2rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s ease;
}

.btn-donate:hover::before {
    left: 100%;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333, #bd2130);
}

.btn-donate:active {
    transform: translateY(0);
    box-shadow: 0 5px 20px rgba(220, 53, 69, 0.3);
}

/* Payment Methods */
.payment-methods {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f8f9fa;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.payment-logos img {
    height: 35px;
    opacity: 0.7;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.payment-logos img:hover {
    opacity: 1;
    transform: scale(1.1);
    filter: grayscale(0%);
}

/* Security Notice */
.security-notice {
    background: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    color: #2e7d32;
}

.security-notice i {
    color: #4caf50;
    margin-right: 0.5rem;
}

/* Impact Section */
.impact-section {
    background: linear-gradient(to bottom, #f8f9fa, white);
}

.impact-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
}

.impact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.15);
    border-color: #dc3545;
}

.impact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(220, 53, 69, 0.3);
    transition: all 0.3s ease;
}

.impact-card:hover .impact-icon {
    transform: scale(1.1) rotate(5deg);
}

.impact-icon i {
    font-size: 2rem;
    color: white;
}

.impact-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.impact-card p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Input validation states */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:valid:not(:placeholder-shown) {
    border-color: #28a745;
}

/* Loading state for submit button */
.btn-donate:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .donation-card {
        padding: 2.5rem;
    }
}

@media (max-width: 768px) {
    .donate-hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .donation-card {
        padding: 2rem 1.5rem;
        margin-top: -30px;
        border-radius: 15px;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .donation-header h2 {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .btn-donate {
        padding: 1rem 1.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .donate-hero {
        padding: 90px 0 50px;
    }
    
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .donation-card {
        padding: 1.5rem 1rem;
    }
    
    .donation-header {
        margin-bottom: 1.5rem;
        padding-bottom: 1.5rem;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .amount-btn {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .custom-amount-input {
        font-size: 1.1rem;
        padding: 0.875rem 1rem;
    }
    
    .payment-logos {
        gap: 1rem;
    }
    
    .payment-logos img {
        height: 28px;
    }
    
    .impact-icon {
        width: 70px;
        height: 70px;
    }
    
    .impact-icon i {
        font-size: 1.75rem;
    }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn-donate {
        display: none;
    }
    
    .donation-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}