/* ===== Contact Page Styles ===== */

/* Branch heading */
.branch-heading {
    font-size: 1.25rem;
    color: var(--dark);
    font-weight: 700;
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--red);
    display: flex;
    align-items: center;
    gap: 8px;
}

.branch-heading i {
    color: var(--red);
    font-size: 1rem;
}

/* Add spacing between branches */
.contact-top + .branch-heading,
.branch-heading + .contact-top {
    margin-top: 8px;
}

.contact-top {
    margin-bottom: 32px;
}

/* Make phone/email links inherit styling */
.touch-row .tval a {
    color: var(--muted);
    text-decoration: none;
    transition: color .18s ease;
}

.touch-row .tval a:hover {
    color: var(--red);
}

/* Page header */
.page-head {
    max-width: 1300px;
    margin: 0 auto;
    padding: 34px 28px 0;
}

.page-head h1 {
    font-size: 2.1rem;
    color: var(--dark);
    font-weight: 400;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.page-head h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.page-head .sub {
    color: var(--muted);
    font-size: .92rem;
    max-width: 520px;
}

.sub p {
    padding-top: 20px;
}

/* Layout */
.contact-wrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 26px 28px 50px;
}

.contact-top {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 24px;
}

/* Cards */
.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
}

.card h3 {
    font-size: 1rem;
    color: var(--dark);
    font-weight: 800;
    letter-spacing: .5px;
    margin-bottom: 18px;
}

.card h3 i {
    color: var(--red);
    margin-right: 8px;
}

/* Touch rows */
.touch-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.touch-row:last-of-type {
    border-bottom: none;
}

.touch-ico {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    background: var(--cream);
}

.touch-ico.red { color: var(--red); }
.touch-ico.gold { color: var(--gold-dark); }
.touch-ico.green { color: var(--green); }

.touch-row .tlbl {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .4px;
    color: var(--dark);
    margin-bottom: 3px;
}

.touch-row .tval {
    font-size: .86rem;
    color: var(--muted);
    line-height: 1.4;
}

/* Social row */
.social-row {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.social-row a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    transition: all .18s ease;
}

.social-row a:hover {
    background: var(--red);
    transform: translateY(-2px);
}

/* Map */
.map-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    min-height: 420px;
}

.map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
    display: block;
}

.map-pin-card {
    position: absolute;
    top: 44%;
    left: 38%;
    transform: translate(-30%, -100%);
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow-md);
    padding: 12px 16px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    max-width: 250px;
    pointer-events: none;
}

.map-pin-card i {
    color: var(--red);
    font-size: 1.1rem;
    margin-top: 2px;
}

.map-pin-card strong {
    display: block;
    font-size: .85rem;
    color: var(--dark);
    margin-bottom: 2px;
}

.map-pin-card span {
    font-size: .76rem;
    color: var(--muted);
    line-height: 1.35;
}

/* Bottom grid */
.contact-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* Hours */
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: .88rem;
}

.hours-row span:first-child {
    color: var(--dark);
    font-weight: 600;
}

.hours-row span:last-child {
    color: var(--muted);
    font-weight: 600;
}

.hours-note {
    color: var(--red);
    font-weight: 700;
    font-size: .85rem;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Form */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}

.field {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 13px 16px;
    font-size: .88rem;
    color: var(--text);
    background: var(--cream);
    width: 100%;
    transition: border-color .18s ease, background .18s ease;
}

.field:focus {
    outline: none;
    border-color: var(--red);
    background: #fff;
}

textarea.field {
    resize: vertical;
    min-height: 110px;
    font-family: inherit;
}

.field-full {
    margin-bottom: 14px;
}

/* Mobile accordions */
.accordion-toggle {
    display: none;
    align-items: center;
    justify-content: space-between;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px 18px;
    font-weight: 800;
    letter-spacing: .4px;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.accordion-toggle i.chev {
    transition: transform .2s ease;
}

details[open] .accordion-toggle i.chev {
    transform: rotate(180deg);
}

summary {
    list-style: none;
}

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

/* Responsive */
@media (max-width: 980px) {
    .contact-top {
        grid-template-columns: 1fr;
    }

    .contact-bottom {
        grid-template-columns: 1fr;
    }

    .map-card {
        min-height: 280px;
    }

    .map-card iframe {
        min-height: 280px;
    }
}

@media (max-width: 560px) {
    .page-head {
        padding: 24px 16px 0;
    }

    .page-head h1 {
        font-size: 1.6rem;
    }

    .contact-wrap {
        padding: 18px 16px 24px;
    }

    .card {
        padding: 18px;
    }

    .map-card {
        min-height: 220px;
    }

    .map-card iframe {
        min-height: 220px;
    }

    .map-pin-card {
        max-width: 200px;
        padding: 10px 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .accordion-toggle {
        display: flex;
    }

    details.mobile-accordion .acc-body {
        padding-top: 16px;
    }

    details.mobile-accordion .card-inner-title {
        display: none;
    }

    details.mobile-accordion[open] .acc-body {
        margin-top: 8px;
    }

    .branch-heading {
        font-size: 1.1rem;
    }
}