.donation-form {
    color: white;
}

.donation-form input,
.donation-form select,
.donation-form textarea {
    color: white !important;
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%) !important;
    border: 1px solid #374151;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    width: 100%;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-form input:focus,
.donation-form select:focus,
.donation-form textarea:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1),
                0 0 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    outline: none;
}

.donation-form input::placeholder,
.donation-form select::placeholder,
.donation-form textarea::placeholder {
    color: #6B7280;
}

.donation-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.donation-form .btn {
    width: 100%;
    padding: 0.75rem 1rem;
    margin-top: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.donation-form .error-message {
    color: #EF4444;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.donation-form .success-message {
    color: #10B981;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.donation-form input:disabled {
    background-color: #374151 !important;
    cursor: not-allowed;
    opacity: 0.7;
}

.donation-form button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.hardware-card {
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%);
    border: 1px solid #374151;
    position: relative;
    overflow: hidden;
}

.hardware-card:hover {
    transform: translateY(-5px);
}

.hardware-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    transition: left 0.5s ease;
}

.hardware-card:hover::before {
    left: 100%;
}

.hardware-icon {
    transition: all 0.3s ease;
}

.hardware-card:hover .hardware-icon {
    transform: scale(1.1);
}

.impact-display {
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    border: 1px solid rgba(16, 185, 129, 0.3);
    position: relative;
    overflow: hidden;
}

.impact-display:hover {
    transform: translateY(-5px);
}

.impact-display::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 200%;
    background: conic-gradient(from 45deg, transparent, rgba(16, 185, 129, 0.1), transparent);
    animation: rotateGradient 8s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.impact-progress {
    transition: width 0.5s ease;
}

.submit-button {
    position: relative;
    overflow: hidden;
}

.submit-button::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(45deg);
    transition: all 0.3s ease;
    opacity: 0;
}

.submit-button:hover::after {
    left: 100%;
    opacity: 1;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Fix for hardware selection buttons */
.hardware-selector button {
    width: auto !important;
    max-width: 100%;
    display: inline-flex;
    overflow: visible;
    flex-shrink: 0;
}

/* Prevent button expansion */
button[type="button"] {
    width: auto !important;
    display: inline-flex;
    flex-shrink: 0;
}

/* Donation Information Page Styles */
.donation-info-container {
    max-width: 900px;
    margin: 0 auto;
}

.donation-notice {
    background-color: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.impact-section .grid-item {
    transition: all 0.3s ease;
}

.impact-section .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.benefits-section .grid-item {
    transition: all 0.3s ease;
}

.benefits-section .grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

.environmental-section .check-item {
    transition: all 0.3s ease;
}

.environmental-section .check-item:hover {
    transform: translateX(5px);
}

/* Prevent buttons from expanding in hardware selector */
.quantity-selector button {
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 auto;
}

.hardware-selector .quantity-value {
    width: 32px;
    text-align: center;
    flex: 0 0 auto;
}

/* PC Recycling Theme Enhancements */
.pc-recycling-gradient {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
}

.recycling-glow {
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.recycling-icon-animation {
    animation: recycleRotate 3s linear infinite;
}

@keyframes recycleRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.pc-card-hover {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.pc-card-hover:hover {
    transform: translateY(-8px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.2), 
                0 0 30px rgba(16, 185, 129, 0.1);
}

/* Enhanced Form Styling */
.donation-form input,
.donation-form select,
.donation-form textarea {
    background: linear-gradient(145deg, #1F2937 0%, #111827 100%) !important;
    border: 1px solid #374151;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.donation-form input:focus,
.donation-form select:focus,
.donation-form textarea:focus {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1),
                0 0 20px rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
}

/* PC Recycling Button Enhancements */
.voxel-button {
    background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.voxel-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.4),
                0 0 40px rgba(16, 185, 129, 0.2);
}

.voxel-button::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 ease;
}

.voxel-button:hover::before {
    left: 100%;
}

/* FAQ Section Enhancements */
.donation-faq-item {
    background: linear-gradient(145deg, rgba(31, 41, 55, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
    border: 1px solid #374151;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.donation-faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.donation-faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.donation-faq-question:hover {
    color: #10B981;
}

.donation-faq-answer {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(55, 65, 81, 0.5);
    animation: fadeInSlide 0.3s ease-out;
}

@keyframes fadeInSlide {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success Animation */
.success-checkmark {
    animation: successPulse 1.5s ease-in-out;
}

@keyframes successPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading States */
.loading-shimmer {
    background: linear-gradient(90deg, #1F2937 25%, #374151 50%, #1F2937 75%);
    background-size: 200% 100%;
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 768px) {
    .pc-card-hover:hover {
        transform: translateY(-4px);
    }
    
    .donation-faq-item {
        padding: 1rem;
    }
    
    .voxel-button:hover {
        transform: translateY(-2px) scale(1.01);
    }
}

/* Accessibility Enhancements */
.focus-ring:focus {
    outline: 2px solid #10B981;
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Dark Mode Optimizations */
@media (prefers-color-scheme: dark) {
    .donation-form {
        color: #F9FAFB;
    }
    
    .hardware-card {
        background: linear-gradient(145deg, #111827 0%, #0F172A 100%);
    }
    
    .donation-faq-item {
        background: linear-gradient(145deg, rgba(17, 24, 39, 0.9) 0%, rgba(15, 23, 42, 0.9) 100%);
    }
}
