/* Contact Page Styles */

/* Form Animations */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    transform: translateY(-2px);
}

/* Loading Animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Message Animations */
.message {
    animation: slideIn 0.3s ease-out;
}

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

/* Contact Card Hover Effects */
.contact-card {
    position: relative;
    overflow: hidden;
}

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

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

/* Form Validation Styles */
.form-group input:invalid,
.form-group textarea:invalid,
.form-group select:invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.form-group input:valid,
.form-group textarea:valid,
.form-group select:valid {
    border-color: rgba(34, 197, 94, 0.5);
}

/* Button Pulse Effect */
.submit-btn:not(:disabled):hover {
    animation: pulse 0.6s ease-in-out;
}

@keyframes pulse {
    0% { transform: translateY(-2px) scale(1); }
    50% { transform: translateY(-2px) scale(1.05); }
    100% { transform: translateY(-2px) scale(1); }
}

/* Responsive Improvements */
@media (max-width: 1024px) {
    .contact-form {
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .contact-form {
        padding: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1rem;
    }
}

/* Dark Mode Enhancements */
@media (prefers-color-scheme: dark) {
    .contact-form {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    }
    
    .contact-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    }
}

/* Accessibility Improvements */
.submit-btn:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .bg-gradient,
    .contact-form,
    .contact-info {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}
