/* Contact Page - Modern Professional Design */

/* Header Fix - Ensure header is not transparent on contact page */
.contact-page #main-header {
    background: white !important;
    background-color: white !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-page #main-header nav,
.contact-page #main-header .header-content {
    background: transparent !important;
    background-color: white !important;
}

/* Contact Form Enhancements */
.contact-form-container {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    transition: all 0.3s ease;
}

.contact-form-container:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Form Input Styling */
.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fafafa;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: #7c3aed;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
    border-color: #c4b5fd;
    background: white;
}

/* Label Styling */
.contact-form label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    display: block;
}

/* Submit Button Enhancement */
.contact-form button[type="submit"] {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    border: none;
    border-radius: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-form button[type="submit"]:hover {
    background: linear-gradient(135deg, #6d28d9 0%, #9333ea 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
}

.contact-form button[type="submit"]:active {
    transform: translateY(0);
}

.contact-form button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Contact Info Cards */
.contact-info-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f3f4f6;
}

.contact-info-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
}

.contact-info-item:hover {
    background: #f9fafb;
}

.contact-info-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, #ede9fe 0%, #ddd6fe 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #7c3aed;
}

.contact-info-content h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.25rem;
}

.contact-info-content p {
    color: #6b7280;
    line-height: 1.5;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* FAQ Section */
.faq-container {
    max-width: 4xl;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid #f3f4f6;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    padding: 1.5rem;
    text-align: left;
    background: none;
    border: none;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f9fafb;
    color: #7c3aed;
}

.faq-question.active {
    background: #f3f4f6;
    color: #7c3aed;
}

.faq-icon {
    width: 1.5rem;
    height: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: #6b7280;
    line-height: 1.6;
    display: none;
}

.faq-answer.active {
    display: block;
    animation: fadeInDown 0.3s ease;
}

/* Map Section */
.map-container {
    background: white;
    border-radius: 1rem;
    padding: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.map-placeholder {
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-radius: 0.75rem;
    height: 24rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: #6b7280;
}

.map-placeholder svg {
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    color: #9ca3af;
}

/* Success Message Animation */
.success-message {
    animation: slideInUp 0.5s ease;
}

/* Loading States */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.loading-spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid #e5e7eb;
    border-top: 3px solid #7c3aed;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Additional Animations for Contact Page */
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styles */
.contact-form input.border-red-500,
.contact-form textarea.border-red-500,
.contact-form select.border-red-500 {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.error-message {
    animation: slideInError 0.3s ease;
}

@keyframes slideInError {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Enhanced hover effects for contact info */
.contact-info-item:hover .contact-info-icon {
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
}

.contact-info-item:hover .contact-info-icon svg {
    color: white;
    transform: scale(1.1);
}

/* Form field focus effects */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    background: white;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Success message animation */
#success-message {
    animation: successSlideIn 0.5s ease;
}

@keyframes successSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-form-container,
    .contact-info-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-info-item {
        padding: 0.75rem;
    }
    
    .contact-info-icon {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .contact-info-icon svg {
        width: 1.25rem;
        height: 1.25rem;
    }
    
    .faq-question {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
    }
    
    .social-links {
        gap: 0.75rem;
    }
    
    .social-link {
        width: 2rem;
        height: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    .contact-form button[type="submit"] {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .map-placeholder {
        height: 20rem;
    }
    
    .map-placeholder svg {
        width: 3rem;
        height: 3rem;
    }
}

/* Focus and Accessibility */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.faq-question:focus {
    outline: 2px solid #7c3aed;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-info-card,
    .faq-item {
        border: 2px solid #000;
    }
    
    .contact-form input,
    .contact-form textarea,
    .contact-form select {
        border-color: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
