/* --- CONTACT SECTION --- */
/* --- PAGE BANNER WITH BACKGROUND IMAGE --- */
.page-banner {
    position: relative;
    background-image: url('images/contact.jpg');
    background-size: cover;
    background-position: center 25%;
    background-repeat: no-repeat;
    
    /* Increased padding so a larger part of the photo shows */
    padding: 160px 0; 
    
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(113, 112, 116, 0.1);
}

/* Dark overlay to make text clear and easy to read */
.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.75) 0%, rgba(20, 20, 20, 0.85) 100%);
    z-index: 1;
}

/* Ensure the content is above the overlay */
.page-banner .container {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* The title has a max-width so its box is narrower than the banner —
   without auto margins it hugs the left edge even though the text
   inside it is centered. This centers the box itself. */
.page-banner .page-banner-title {
    margin-left: auto;
    margin-right: auto;
}

/* Breadcrumb is a flex row that defaults to flex-start (left) —
   center it to match the rest of the banner content. */
.page-banner .breadcrumb {
    justify-content: center;
}

/* Ensure the Text Color for Dark Banner */
.page-banner .section-subtitle {
    color: var(--tdt-orange) !important;
    font-weight: 700;
}

.page-banner .page-banner-title,
.page-banner .page-banner-title span {
    color: #ffffff !important; /* Puting title */
}

.page-banner .breadcrumb a {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    transition: color 0.2s;
}

.page-banner .breadcrumb a:hover {
    color: var(--tdt-orange) !important;
}

.page-banner .breadcrumb span {
    color: rgba(255, 255, 255, 0.5) !important;
}

.page-banner .breadcrumb span.current {
    color: var(--tdt-orange) !important;
    font-weight: 600;
}

/* --- CHANGE ALL REMAINING SUB-HEADINGS AND BOLD TEXT TO GRAY --- */
.info-card h4,
.branch-details summary,
.branch-details summary span,
.branch-details-body strong,
.social-links-container h4 {
    color: var(--tdt-gray); /* Changes the black text to gray */
}

.info-card h4 {
    color: var(--tdt-gray) !important; 
}

.page-banner .breadcrumb a,
.page-banner .breadcrumb span {
    color: var(--tdt-orange) !important;
}
.contact-main-section {
    position: relative;
    background-image:
        linear-gradient(rgba(255,255,255,0.70), rgba(255,255,255,0.70)),
        url('/static/images/background2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid rgba(113, 112, 116, 0.1);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
h1 span {
    color: var(--tdt-gray);
}
h3 span {
    color: var(--tdt-orange);
}

h4 span {
    color: var(--tdt-orange);
}
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr 1.2fr;
    }
}

.contact-info-panel,
.contact-form-panel {
    background-color: var(--tdt-bg-light);
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 4px;
    padding: 40px;
}

.contact-info-panel h3,
.contact-form-panel h3 {
    font-family: var(--font-bebas);
    font-size: 32px;
    color: var(--tdt-dark);
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 16px;
    align-items: center;
}

.info-icon {
    font-size: 20px;
    background-color: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.2);
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-card h4 {
    font-family: var(--font-montserrat);
    font-size: 12px;
    font-weight: 700;
    color: var(--tdt-dark);
    text-transform: uppercase;
    margin-bottom: 2px;
}

.info-card p {
    font-size: 13px;
    color: var(--tdt-gray);
}

.map-container {
    margin-top: 30px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid rgba(113, 112, 116, 0.15);
}

.direct-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

/* --- CONTACT PAGE: LEFT/RIGHT COLUMN WRAPPERS --- */
.contact-left-col,
.contact-right-col {
    display: flex;
    flex-direction: column;
    gap: 30px;
    /* Grid items default to min-width: auto, so on narrow screens the
       track was growing ~13px past the container to fit content like
       the email address/phone number, pushing everything off-center
       and eating into the right-side padding. min-width: 0 lets the
       track (and its text) actually shrink to fit and wrap normally. */
    min-width: 0;
}
/* --- OUR BRANCHES ACCORDION (native <details>/<summary>, no JS needed) --- */
.branches-block {
    margin-top: 25px;
    border-top: 1px solid rgba(113, 112, 116, 0.15);
    padding-top: 20px;
}

.branches-heading {
    font-family: var(--font-montserrat);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--tdt-dark);
    margin-bottom: 14px;
}

.branch-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

/* --- OUR BRANCHES ACCORDION FIX --- */
.branch-details {
    background-color: #ffffff;
    border: 1px solid rgba(113, 112, 116, 0.15);
    border-radius: 4px;
    overflow: hidden;
    height: auto !important; /* Stops the outer box from crushing the contents */
    flex-shrink: 0; /* Stops flexbox from squishing items to fit inside .branch-list's max-height — lets it scroll instead */
    width: 100%;
}

.branch-details summary {
    list-style: none;
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--tdt-dark);
    
    /* THE FIX: Forcing the space open */
    padding: 14px 14px !important;
    height: auto !important;
    min-height: 48px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}

/* Ensure the text itself isn't being crushed */
.branch-details summary span {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: normal !important;
}

.branch-details summary::-webkit-details-marker {
    display: none;
}

.branch-details summary::marker {
    content: "";
}

.branch-details summary::after {
    content: "+";
    color: var(--tdt-orange);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
}

.branch-details[open] summary::after {
    content: "−";
}

.branch-dot {
    color: var(--tdt-orange);
    margin-right: 8px;
}

.branch-details-body {
    padding: 12px 14px 16px 14px;
    border-top: 1px solid rgba(113, 112, 116, 0.1);
    background-color: var(--tdt-bg-light);
    font-size: 12.5px;
    color: var(--tdt-gray);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.branch-details-body strong {
    color: var(--tdt-dark);
}