/* Donation Page Styles */
/* Body styles are handled by styles.css - no override needed */

/* Prevent horizontal overflow on mobile */
* {
    box-sizing: border-box;
}

.donation-methods {
    overflow-x: hidden;
}

/* Donation Hero Section */
.donation-hero {
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    padding: 140px 0 80px;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    margin-top: 0;
}

.donation-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 100 100"><defs><pattern id="hero-pattern" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="5" cy="15" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="15" cy="5" r="0.8" fill="%23ffffff" opacity="0.08"/></pattern></defs><rect width="100" height="100" fill="url(%23hero-pattern)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 25px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 30px;
    transition: all 0.4s ease;
}

.hero-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.badge-icon {
    font-size: 18px;
    animation: pulse 2s infinite;
}

.badge-text {
    font-size: 14px;
    /*   */
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    /*   */
    line-height: 1.2;
    margin-bottom: 25px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    min-width: 150px;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-number {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    /*   */
    color: #ffd700;
    line-height: 1;
    margin-bottom: 8px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 14px;
    /*   */
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Donation Methods Section */
.donation-methods {
    padding: 100px 0;
    background: #ffffff;
}

/* Container class to match existing styles.css structure */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    .container {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 1s ease-out;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    /*   */
    color: #2c3e50;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    font-size: 18px;
    color: #5a6c7d;
    line-height: 1.6;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
}

.method-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(44, 90, 160, 0.1);
    border: 1px solid rgba(0, 123, 255, 0.1);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.method-card:nth-child(1) { animation-delay: 0.1s; }
.method-card:nth-child(2) { animation-delay: 0.2s; }
.method-card:nth-child(3) { animation-delay: 0.3s; }

.method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(44, 90, 160, 0.15);
    border-color: rgba(44, 90, 160, 0.3);
}

.method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.02), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.method-card:hover::before {
    opacity: 1;
}

.method-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #ffffff;
    margin: 0 auto 25px;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.2);
}

.method-card:hover .method-icon {
    transform: scale(1.1) rotate(360deg);
}

/* Payment Logo Styles */
.method-logo {
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(44, 90, 160, 0.1);
    transition: all 0.4s ease;
    overflow: hidden;
}

.payment-logo {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.method-card:hover .method-logo {
    transform: scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: rgba(44, 90, 160, 0.3);
}

.method-card:hover .payment-logo {
    transform: scale(1.1);
}

/* Enhanced Card Styles for Different Payment Methods */
.bank-card {
    border-left: 4px solid #2c5aa0;
}

.bank-card:hover {
    border-left-color: #1e3a5f;
}

.jazzcash-card {
    border-left: 4px solid #ff6b35;
}

.jazzcash-card:hover {
    border-left-color: #e55a2b;
}

.easypaisa-card {
    border-left: 4px solid #00b894;
}

.easypaisa-card:hover {
    border-left-color: #00a085;
}

/* Featured Detail Styling */
.featured-detail {
    background: linear-gradient(135deg, rgba(44, 90, 160, 0.05), rgba(44, 90, 160, 0.02));
    border-radius: 8px;
    padding: 15px 12px !important;
    border: 1px solid rgba(44, 90, 160, 0.15) !important;
    margin: 10px 0;
}

.featured-detail .detail-label {
    color: #2c5aa0;
    /*   */
    font-size: 15px;
}

.featured-detail .detail-value {
    color: #2c5aa0;
    /*   */
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.method-title {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    /*   */
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
}

.bank-details,
.mobile-details {
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(44, 90, 160, 0.1);
    gap: 15px;
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-label {
    /*   */
    color: #5a6c7d;
    font-size: 14px;
    min-width: 120px;
}

.detail-value {
    /*   */
    color: #2c3e50;
    font-size: 14px;
    text-align: right;
    word-break: break-all;
}

.copy-btn {
    width: 100%;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 14px;
    /*   */
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.contact-info-d {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(44, 90, 160, 0.1);
}

.contact-info-d p {
    margin-bottom: 10px;
    color: #5a6c7d;
    font-size: 14px;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2c5aa0;
    text-decoration: none;
    /*   */
    font-size: 16px;
    transition: all 0.3s ease;
}

.phone-link:hover {
    color: #1a4480;
    transform: translateY(-1px);
}

/* Donation Form Styles */
.form-card {
    grid-column: 1 / -1;
    max-width: 700px;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid rgba(44, 90, 160, 0.15);
}

.donation-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    /*   */
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(44, 90, 160, 0.1);
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: all 0.4s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    background: #ffffff;
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.1);
    transform: translateY(-2px);
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.amount-btn {
    padding: 12px 20px;
    background: rgba(44, 90, 160, 0.1);
    border: 2px solid rgba(44, 90, 160, 0.2);
    border-radius: 10px;
    color: #2c5aa0;
    /*   */
    cursor: pointer;
    transition: all 0.4s ease;
}

.amount-btn:hover,
.amount-btn.active {
    background: #2c5aa0;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    transform: scale(1.2);
}

.checkbox-group label {
    margin: 0;
    /*   */
    text-transform: none;
    letter-spacing: normal;
    cursor: pointer;
}

.submit-donation-btn {
    width: 100%;
    background: linear-gradient(135deg, #2c5aa0 0%, #4a90e2 100%);
    color: #ffffff;
    border: none;
    padding: 20px 30px;
    border-radius: 50px;
    font-size: 18px;
    /*   */
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 8px 30px rgba(44, 90, 160, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-donation-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.6s;
}

.submit-donation-btn:hover::before {
    left: 100%;
}

.submit-donation-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.4);
}

.btn-icon {
    transition: transform 0.3s ease;
}

.submit-donation-btn:hover .btn-icon {
    transform: scale(1.2);
}

/* Impact Section */
.donation-impact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.impact-item {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(44, 90, 160, 0.08);
    border: 1px solid rgba(44, 90, 160, 0.1);
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out;
    animation-fill-mode: both;
}

.impact-item:nth-child(1) { animation-delay: 0.1s; }
.impact-item:nth-child(2) { animation-delay: 0.2s; }
.impact-item:nth-child(3) { animation-delay: 0.3s; }
.impact-item:nth-child(4) { animation-delay: 0.4s; }

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(44, 90, 160, 0.15);
}

.impact-amount {
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    /*   */
    color: #2c5aa0;
    margin-bottom: 15px;
}

.impact-description {
    color: #5a6c7d;
    font-size: 15px;
    line-height: 1.6;
}

/* Footer */
.donation-footer {
    background: #2c3e50;
    color: #ffffff;
    padding: 60px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.footer-text h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    /*   */
    margin-bottom: 15px;
    color: #ffd700;
}

.footer-text p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.9;
}

.footer-contact p {
    margin-bottom: 8px;
    font-size: 14px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
        padding: 0 20px;
    }
    
    .method-card {
        padding: 35px;
    }
}

@media (max-width: 1024px) {
    .methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .form-card {
        max-width: 100%;
        margin: 20px;
    }
}

@media (max-width: 768px) {
    .donation-hero {
        padding: 70px 0 50px;
    }
    
    .donation-methods {
        padding: 60px 0;
    }
    
    .donation-impact {
        padding: 60px 0;
    }
    
    .methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0;
    }
    
    .method-card {
        padding: 20px;
        margin: 0;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .hero-stats {
        gap: 15px;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .stat-item {
        padding: 18px 22px;
        min-width: 110px;
        flex: 1;
        max-width: 140px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .amount-buttons {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .form-card {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }
    
    .donation-form {
        padding: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
}

@media (max-width: 480px) {
    .donation-hero {
        padding: 60px 0 40px;
    }
    
    .donation-methods,
    .donation-impact {
        padding: 50px 0;
    }
    
    .methods-grid {
        gap: 15px;
    }
    
    .method-card {
        padding: 20px;
        margin: 0;
        max-width: 100%;
        overflow: hidden;
    }
    
    .method-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .method-logo {
        width: 80px;
        height: 80px;
    }
    
    .payment-logo {
        max-width: 50px;
        max-height: 50px;
    }
    
    .method-title {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .stat-item {
        max-width: 200px;
        margin: 0 auto;
    }
    
    .detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
        padding: 10px 0;
    }
    
    .detail-label {
        font-size: 13px;
        min-width: auto;
    }
    
    .detail-value {
        text-align: left;
        word-break: break-word;
        font-size: 13px;
    }
    
    .form-card {
        margin: 0;
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .amount-buttons {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .amount-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .submit-donation-btn {
        padding: 15px 25px;
        font-size: 16px;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .impact-item {
        padding: 20px;
    }
    
    .impact-amount {
        font-size: 1.5rem;
    }
    
    .copy-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .container {
        padding: 0 10px;
    }
    
    .method-card {
        padding: 15px;
    }
    
    .form-card {
        padding: 20px 15px;
    }
    
    .method-title {
        font-size: 16px;
    }
    
    .detail-label,
    .detail-value {
        font-size: 12px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .method-card {
        border: 2px solid #2c5aa0;
    }
    
    .impact-item {
        border: 2px solid #2c5aa0;
    }
    
    .hero-title,
    .section-title,
    .method-title {
        text-shadow: none;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-content,
    .section-header,
    .method-card,
    .impact-item {
        animation: none;
    }
    
    .method-card:hover,
    .impact-item:hover,
    .stat-item:hover {
        transform: none;
    }
    
    .method-icon {
        transition: none;
    }
    
    .badge-icon {
        animation: none;
    }
}

/* Loading Spinner for EmailJS */
.loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Submit button disabled state */
.submit-donation-btn:disabled {
    background: #6c757d !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Print styles */
@media print {
    .donation-hero {
        background: #2c5aa0;
        color: white;
    }
    
    .donation-hero::before {
        display: none;
    }
    
    .method-card,
    .impact-item {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .donation-form {
        display: none;
    }
    
    .copy-btn {
        display: none;
    }
}
