/**
 * Contact Page Styles
 * ------------------
 * Enhanced UI polish for the contact page (Chunk 44).
 * Extends the design system with contact-specific components
 * while maintaining consistency with global styles.
 *
 * Features:
 * - Contact method cards with hover states
 * - Enhanced form layout with validation feedback
 * - Office location cards with consistent styling
 * - Social media grid with interactive states
 * - Emergency support highlighting
 */

/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0 3rem;
    position: relative;
}

.contact-hero .hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-hero .hero-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.contact-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

/* Contact Methods Grid */
.contact-methods {
    padding: 4rem 0;
    background: #fff;
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.method-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.method-card:hover,
.method-card:focus {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #3498db;
}

.method-card:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.method-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.method-description {
    color: #6c757d;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 768px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Form Styles */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

.form-help {
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

/* Office Sidebar */
.offices-sidebar {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.office-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    transition: background-color 0.3s ease;
}

.office-card:hover {
    background: #e9ecef;
}

.office-city {
    font-size: 1.25rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.office-details {
    font-style: normal;
}

.office-address,
.office-phone,
.office-hours {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    color: #495057;
}

.office-address span,
.office-phone span,
.office-hours span {
    margin-right: 0.5rem;
    flex-shrink: 0;
}

/* Emergency Support */
.emergency-support {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.emergency-title {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.emergency-text {
    color: #495057;
    margin-bottom: 1rem;
}

.emergency-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: #f8f9fa;
    padding: 4rem 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.faq-question {
    font-size: 1.125rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.faq-answer {
    color: #6c757d;
    line-height: 1.6;
}

/* Social Links Section */
.social-section {
    padding: 4rem 0;
    background: #fff;
    text-align: center;
}

.social-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.social-card:hover {
    background: #e9ecef;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.social-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.social-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.social-handle {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Chat Modal (Demo) */
#chat-modal .modal-content {
    max-width: 400px;
    width: 90%;
}

#chat-modal .modal-body {
    padding: 2rem;
    text-align: center;
    color: #6c757d;
}

/* Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* Focus and Accessibility Enhancements */
.method-card:focus-within {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.form-control:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn:focus {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .contact-methods,
    .social-section,
    .emergency-support,
    .btn,
    .modal {
        display: none;
    }

    .office-card {
        page-break-inside: avoid;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .theme-system .contact-hero {
        background: linear-gradient(135deg, #1a1a1a 0%, #2c2c2c 100%);
    }

    .theme-system .method-card,
    .theme-system .contact-form,
    .theme-system .faq-item {
        background: #2c2c2c;
        color: #e9ecef;
        border-color: #495057;
    }

    .theme-system .office-card,
    .theme-system .social-card {
        background: #343a40;
        color: #e9ecef;
    }

    .theme-system .emergency-support {
        background: #3c1f1f;
        border-color: #dc3545;
    }
}