/* =================================================================
   DONATION FORM PAGE STYLES
   ================================================================= */

.donation-form-section {
    margin-top: 80px;
    padding: var(--space-8) 0 var(--space-16);
    background: var(--bg-primary);
    min-height: 50vh;
}

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

.form-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.form-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
    color: var(--bg-primary);
    font-size: var(--text-2xl);
}

.form-header h2 {
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.form-header p {
    color: var(--text-secondary);
    margin: 0;
}

.form-section {
    margin-bottom: var(--space-12);
}

.section-label {
    display: block;
    color: var(--text-primary);
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-6);
}

.custom-amount-wrapper {
    margin-bottom: var(--space-6);
}

#custom-amount {
    width: 100%;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-xl);
    transition: all var(--transition-normal);
    text-align: center;
    font-weight: 600;
}

#custom-amount:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--bg-elevated);
}

#custom-amount::placeholder {
    color: var(--text-muted);
    font-weight: normal;
}

.selected-amount {
    background: var(--bg-secondary);
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.selected-amount span:first-child {
    color: var(--text-secondary);
    font-weight: 500;
}

.amount-display {
    color: var(--accent-gold);
    font-size: var(--text-xl);
    font-weight: 700;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    margin-bottom: var(--space-6);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: var(--text-base);
}

.form-group input {
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: all var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-gold);
    background: var(--bg-elevated);
}

.donate-submit-btn {
    width: 100%;
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    padding: var(--space-6) var(--space-8);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-8);
}

.donate-submit-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.donate-submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    opacity: 0.6;
}

.security-info {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border-color);
}

.security-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.security-item i {
    color: var(--accent-green);
    font-size: var(--text-lg);
}

.security-item span {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
}

/* Project Info Section */
.project-info-section {
    padding: var(--space-16) 0;
    background: var(--bg-secondary);
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    box-shadow: var(--shadow-lg);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.project-card h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: var(--text-2xl);
}

.project-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-12);
    font-size: var(--text-lg);
}

.project-progress {
    margin-bottom: var(--space-12);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.progress-header span:first-child {
    color: var(--text-primary);
    font-weight: 500;
}

.progress-header span:last-child {
    color: var(--accent-gold);
    font-weight: 600;
}

.progress-bar {
    background: var(--bg-secondary);
    height: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    position: relative;
}

.progress-fill {
    background: var(--gradient-primary);
    height: 100%;
    transition: width var(--transition-slow);
    border-radius: var(--radius-lg);
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
    animation: progress-shine 3s infinite;
}

@keyframes progress-shine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.project-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.stat {
    text-align: center;
    padding: var(--space-6);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.stat-number {
    display: block;
    color: var(--accent-gold);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.stat-label {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
}

.impact-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-4);
}

.impact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-4);
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
}

.impact-item:hover {
    transform: translateY(-3px);
}

.impact-item i {
    color: var(--accent-green);
    font-size: var(--text-lg);
}

.impact-item span {
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: 500;
}

/* Success Modal */
.success-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 3000;
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
}

.success-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.success-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-2xl);
    padding: var(--space-16);
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: slideIn 0.3s ease;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.success-icon {
    width: 100px;
    height: 100px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-8);
    font-size: var(--text-4xl);
    color: white;
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 60%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    80% {
        transform: translateY(-5px);
    }
}

.success-content h3 {
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    font-size: var(--text-3xl);
}

.success-content p {
    color: var(--text-secondary);
    margin-bottom: var(--space-12);
    line-height: 1.7;
    font-size: var(--text-lg);
}

.close-success-btn {
    background: var(--gradient-primary);
    color: var(--bg-primary);
    border: none;
    padding: var(--space-4) var(--space-12);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-md);
}

.close-success-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .security-info {
        flex-direction: column;
        gap: var(--space-4);
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .impact-items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .form-container {
        padding: var(--space-8);
    }
    
    .project-card {
        padding: var(--space-8);
    }
}