/* Contact Page Specific Styles */

/* Contact Hero Section */
.contact-hero {
    position: relative;
    min-height: 60vh;
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #475569 100%);
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}

.contact-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('https://images.unsplash.com/photo-1423666639041-f56000c27a9a?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 1;
}

.contact-hero .container {
    position: relative;
    z-index: 10;
}

.contact-hero h1 {
    font-weight: 700;
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.contact-hero .lead {
    font-size: 1.2rem;
    opacity: 0.9;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

.contact-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s ease-out 0.6s both;
}

.contact-hero .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-hero .breadcrumb-item a:hover {
    color: white;
}

.contact-hero .breadcrumb-item.active {
    color: #fbbf24;
}

/* Contact Form Container */
.contact-form-container {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-form-container h2 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-form-container p {
    color: #64748b;
    line-height: 1.6;
}

/* Enhanced Form Styling */
.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.form-control:focus {
    border-color: #8B4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    background: white;
}

.form-control::placeholder {
    color: #9ca3af;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Submit Button */
#contactForm .btn-primary {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border: none;
    border-radius: 50px;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.3);
}

#contactForm .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(139, 69, 19, 0.4);
    background: linear-gradient(135deg, #A0522D, #CD853F);
}

/* Contact Info Card */
.contact-info-card {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: 20px;
    border: 1px solid #e5e7eb;
}

.contact-info-card h3 {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 2rem;
}

.contact-info-card h5 {
    color: #374151;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-info-card p {
    color: #64748b;
    line-height: 1.6;
}

/* Social Links in Contact Info */
.contact-info-card .social-link {
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

.contact-info-card .social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 8px 25px rgba(139, 69, 19, 0.4);
    color: white;
}

/* Map Container */
.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

/* FAQ Accordion Styling */
.accordion-item {
    border: none !important;
    border-radius: 15px !important;
    overflow: hidden;
    margin-bottom: 1rem !important;
}

.accordion-button {
    background: #f8fafc;
    border: none;
    padding: 1.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 1.1rem;
    border-radius: 15px !important;
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, #8B4513, #D2691E);
    color: white;
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
    border: none;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23374151'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transition: all 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    transform: rotate(180deg);
}

.accordion-body {
    background: white;
    padding: 1.5rem;
    color: #64748b;
    line-height: 1.6;
    border-top: 1px solid #e5e7eb;
}

/* Enhanced Section Styling */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0) !important;
}

/* Section Headers */
section h2.fw-bold {
    color: #1a202c;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

section h2.fw-bold::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #8B4513, #D2691E);
    border-radius: 2px;
}

section .lead {
    color: #64748b;
    font-size: 1.2rem;
    line-height: 1.6;
}

/* Contact Info Icons */
.bg-gradient-primary {
    background: linear-gradient(135deg, #8B4513, #D2691E) !important;
    box-shadow: 0 4px 15px rgba(139, 69, 19, 0.3);
}

/* Animation Classes */
.animate-fadeIn {
    animation: fadeInUp 0.8s ease-out both;
}

/* Hover Effects */
.contact-form-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-hero {
        min-height: 50vh;
        text-align: center;
    }
    
    .contact-hero h1 {
        font-size: 2.5rem;
    }
    
    .contact-form-container {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .contact-info-card {
        padding: 2rem !important;
    }
    
    .accordion-button {
        padding: 1.25rem;
        font-size: 1rem;
    }
    
    .accordion-body {
        padding: 1.25rem;
    }
}

@media (max-width: 576px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    
    .contact-hero .lead {
        font-size: 1.1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1.5rem !important;
    }
    
    #contactForm .btn-primary {
        width: 100%;
        padding: 1rem;
    }
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dot Flow Animation (reused) */
.dot-flow {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 2;
}

.dot-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: dotFloat 15s linear infinite;
}

.dot:nth-child(odd) {
    background: rgba(255, 255, 255, 0.5);
}

.dot-1 { left: 10%; animation-delay: 0s; }
.dot-2 { left: 20%; animation-delay: 1s; }
.dot-3 { left: 30%; animation-delay: 2s; }
.dot-4 { left: 40%; animation-delay: 3s; }
.dot-5 { left: 50%; animation-delay: 4s; }
.dot-6 { left: 60%; animation-delay: 5s; }
.dot-7 { left: 70%; animation-delay: 6s; }
.dot-8 { left: 80%; animation-delay: 7s; }
.dot-9 { left: 90%; animation-delay: 8s; }
.dot-10 { left: 15%; animation-delay: 9s; }
.dot-11 { left: 25%; animation-delay: 10s; }
.dot-12 { left: 35%; animation-delay: 11s; }
.dot-13 { left: 45%; animation-delay: 12s; }
.dot-14 { left: 55%; animation-delay: 13s; }
.dot-15 { left: 65%; animation-delay: 14s; }
.dot-16 { left: 75%; animation-delay: 15s; }
.dot-17 { left: 85%; animation-delay: 16s; }
.dot-18 { left: 95%; animation-delay: 17s; }
.dot-19 { left: 5%; animation-delay: 18s; }
.dot-20 { left: 95%; animation-delay: 19s; }

@keyframes dotFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0);
        opacity: 0;
    }
}