/* --- FULLY ISOLATED & FUNCTIONAL CONTACT STYLES --- */

#contact {
    padding: 100px 0 !important;
    background-color: #ffffff !important;
}

/* 1. The Wrapper (Fixes site-wide alignment and left-cramping) */
.contact-section-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 10px !important;
    box-sizing: border-box !important;
}

/* 2. Header & Subtitle alignment */
#contact .contact-header {
    text-align: center !important;
    margin-bottom: 10px !important;
}

#contact .section-subtitle {
    display: block !important;
    margin: 15px auto 40px auto !important;
    max-width: 800px !important;
    line-height: 1.8 !important;
    color: #666 !important;
}

/* 3. The Tabs Styling */
#contact .contact-tabs {
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    margin-bottom: 50px !important;
    border-bottom: 2px solid #f0f0f0 !important;
}

#contact .contact-tab-btn {
    padding: 15px 25px !important;
    border: none !important;
    background: none !important;
    cursor: pointer !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    color: #999 !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

#contact .contact-tab-btn.active {
    color: var(--brand-navy) !important;
}

#contact .contact-tab-btn::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 0 !important;
    width: 0;
    height: 3px !important;
    background-color: var(--brand-gold) !important;
    transition: width 0.3s ease !important;
}

#contact .contact-tab-btn.active::after {
    width: 100% !important;
}

/* 4. TAB LOGIC (This is what was missing!) */
.contact-pane {
    display: none !important;
}

.contact-pane.active {
    display: block !important;
    animation: contactFadeIn 0.5s ease;
}

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

/* 5. Two-Column Layout */
#contact .contact-row {
    display: flex !important;
    gap: 60px !important;
    flex-wrap: wrap !important;
    align-items: flex-start !important;
}

#contact .contact-left,
#contact .contact-right {
    flex: 1 !important;
    min-width: 350px !important;
}

/* 6. Info & Map Polish */
#contact .info-box h3 {
    font-size: 1.8rem !important;
    color: var(--brand-navy) !important;
    margin-bottom: 20px !important;
}

#contact .info-box p {
    line-height: 1.9 !important;
    margin-bottom: 30px !important;
    font-size: 1.1rem !important;
}

#contact .contact-details {
    list-style: none !important;
    padding: 0 !important;
}

#contact .contact-details li {
    margin-bottom: 15px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

#contact .map-container {
    height: 350px !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid #eee !important;
    margin-top: 30px !important;
}

#contact .map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

/* 7. Form Container & Inputs */
#contact .contact-form-container {
    background: #fdfdfd !important;
    padding: 40px !important;
    border-radius: 15px !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03) !important;
}

#contact input, #contact select, #contact textarea {
    width: 100% !important;
    padding: 15px !important;
    margin-bottom: 25px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 1rem !important;
}

#contact .btn-submit {
    width: 100% !important;
    padding: 18px !important;
    background-color: var(--brand-navy) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

#contact .btn-submit:hover {
    background-color: var(--brand-gold) !important;
}

/* 8. Mobile Adjustments */
@media (max-width: 768px) {
    .contact-section-container {
        padding: 0 20px !important;
    }
    #contact .contact-row {
        gap: 40px !important;
    }
}