/* Contact Page Styles */

/* Page Header */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #0f172a 0%, #1e40af 25%, #3b82f6 75%, #60a5fa 100%);
    color: white;
    padding: 4rem 0;
    margin-bottom: 3rem;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(245, 158, 11, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: headerBackground 15s ease-in-out infinite;
}

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

.page-header-content {
    position: relative;
    z-index: 2;
    animation: headerSlide 1s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes headerSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contact Cards */
.contact-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #f59e0b, #fbbf24);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 24px 24px 0 0;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.contact-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        0 0 50px rgba(59, 130, 246, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.contact-card:hover::before {
    transform: scaleX(1);
}

.contact-card:hover::after {
    opacity: 1;
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin: 0 auto 1.5rem;
    box-shadow: 
        0 15px 30px rgba(30, 64, 175, 0.3),
        0 0 0 4px rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.contact-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover .contact-icon {
    transform: scale(1.15) rotateY(180deg) translateY(-5px);
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    box-shadow: 
        0 20px 40px rgba(245, 158, 11, 0.4),
        0 0 0 4px rgba(255, 255, 255, 0.2),
        0 0 30px rgba(245, 158, 11, 0.3);
}

.contact-card:hover .contact-icon::before {
    opacity: 1;
}

.contact-card h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
    overflow: hidden;
}

.contact-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #f59e0b, #fbbf24);
    border-radius: 24px 24px 0 0;
}

.contact-form-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 2rem;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control, .form-select {
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    padding: 0.75rem 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.8);
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
    background: white;
}

/* Map Container */
.map-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    height: fit-content;
}

.map-container h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1.5rem;
}

.map-placeholder {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 16px;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    border: 2px dashed #cbd5e1;
    transition: all 0.3s ease;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    border-color: #94a3b8;
}

.map-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #3b82f6;
}

/* Business Hours */
.business-hours {
    margin-top: 2rem;
}

.business-hours h5 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1e40af;
    margin-bottom: 1rem;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
    transition: all 0.3s ease;
}

.hours-item:hover {
    background: rgba(59, 130, 246, 0.05);
    transform: translateX(5px);
}

.hours-item.emergency {
    border-left-color: #f59e0b;
    background: rgba(255, 251, 235, 0.8);
}

.hours-item.emergency:hover {
    background: rgba(245, 158, 11, 0.05);
}

/* FAQ Section */
.faq-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.1);
    margin-top: 3rem;
}

.faq-section h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #1e40af;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    background: rgba(248, 250, 252, 0.8);
    border: none;
    font-weight: 600;
    color: #1e40af;
    padding: 1.25rem;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #1e40af, #3b82f6);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(50px) scale(0.95);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .map-container {
        padding: 2rem;
        margin-top: 2rem;
    }
    
    .faq-section {
        padding: 2rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 3rem 0;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .map-container {
        padding: 1.5rem;
    }
    
    .faq-section {
        padding: 1.5rem;
    }
    
    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

.page-header h1 {
    color: #ffffff;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.page-header .lead {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

