/* ═══════════════════════════════════════════════════════════
   CONTACT PAGE
═══════════════════════════════════════════════════════════ */

.contact-section-header .sub-title {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--themeht-primary-color);
    margin-bottom: 10px;
}

.contact-section-header h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--themeht-secondary-color);
    margin-bottom: 12px;
}

.contact-section-header p {
    color: #777;
    font-size: 15px;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Branch Tabs Nav ──────────────────────────────────────── */

.contact-branch-tabs {
    display: flex;
    gap: 0;
    border: none;
    background: var(--themeht-light-color);
    border-radius: 16px;
    padding: 6px;
    margin-bottom: 0;
    justify-content: center;
}

.contact-branch-tabs .nav-item {
    flex: 1;
    max-width: 280px;
}

.contact-branch-tabs .nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s, box-shadow 0.2s;
    width: 100%;
    text-align: left;
}

.contact-branch-tabs .nav-link:hover {
    background: rgba(255,255,255,0.7);
}

.contact-branch-tabs .nav-link.active {
    background: #fff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.branch-tab-num {
    font-size: 22px;
    font-weight: 900;
    color: var(--themeht-primary-color);
    opacity: 0.3;
    line-height: 1;
    min-width: 36px;
    transition: opacity 0.2s;
}

.contact-branch-tabs .nav-link.active .branch-tab-num { opacity: 1; }

.branch-tab-name {
    font-size: 14px;
    font-weight: 600;
    color: #555;
    line-height: 1.3;
    transition: color 0.2s;
}

.contact-branch-tabs .nav-link.active .branch-tab-name {
    color: var(--themeht-secondary-color);
}

/* ── Tab Pane Content ─────────────────────────────────────── */

.contact-tab-content {
    border: none;
    margin-top: 16px;
}

.contact-tab-content .tab-pane {
    border: none;
    background: none;
}

.branch-tab-inner {
    display: flex;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.1);
    min-height: 480px;
}

/* Map */
.branch-map-wrap {
    flex: 0 0 60%;
    position: relative;
    min-height: 480px;
    background: #e8e8e8;
}

.branch-map-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.branch-map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    gap: 10px;
}

.branch-map-placeholder i { font-size: 48px; }

/* Info panel */
.branch-info-wrap {
    flex: 0 0 40%;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.branch-info-inner {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.branch-info-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding-bottom: 22px;
    border-bottom: 2px solid var(--themeht-light-color);
}

.branch-info-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--themeht-primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.branch-info-head h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--themeht-secondary-color);
    margin: 0 0 3px;
    line-height: 1.2;
}

.branch-info-head span {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

.branch-detail-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1;
}

.branch-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.branch-detail-list li > i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--themeht-light-color);
    color: var(--themeht-primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.branch-detail-list li > div strong {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #aaa;
    margin-bottom: 3px;
}

.branch-detail-list li > div p,
.branch-detail-list li > div a {
    margin: 0;
    font-size: 14px;
    color: var(--themeht-secondary-color);
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;
}

.branch-detail-list li > div a:hover { color: var(--themeht-primary-color); }

.branch-cta-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.branch-whatsapp-btn,
.branch-directions-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.branch-whatsapp-btn {
    background: #25D366;
    color: #fff;
}

.branch-whatsapp-btn:hover {
    background: #1ebe5d;
    color: #fff;
    text-decoration: none;
}

.branch-directions-btn {
    background: var(--themeht-light-color);
    color: var(--themeht-secondary-color);
    border: 1px solid rgba(0,0,0,0.08);
}

.branch-directions-btn:hover {
    background: var(--themeht-primary-color);
    color: #fff;
    border-color: var(--themeht-primary-color);
    text-decoration: none;
}

/* ── Contact Form Section ─────────────────────────────────── */

.contact-form-section {
    background: var(--themeht-light-color);
}

.contact-form-card {
    background: #fff;
    border-radius: 20px;
    padding: 48px 44px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.07);
}

.contact-form-header { margin-bottom: 32px; }

.contact-form-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--themeht-secondary-color);
    margin-bottom: 8px;
}

.contact-form-header p {
    color: #777;
    font-size: 15px;
    margin: 0;
}

/* CF7 input styling */
.contact-form-card .wpcf7-form input[type="text"],
.contact-form-card .wpcf7-form input[type="email"],
.contact-form-card .wpcf7-form input[type="tel"],
.contact-form-card .wpcf7-form textarea,
.contact-form-card .wpcf7-form select {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #e5e5e5;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    margin-bottom: 0;
}

.contact-form-card .wpcf7-form input:focus,
.contact-form-card .wpcf7-form textarea:focus {
    border-color: var(--themeht-primary-color);
    box-shadow: 0 0 0 4px rgba(8,129,68,0.08);
    background: #fff;
}

.contact-form-card .wpcf7-form textarea { resize: vertical; min-height: 140px; }

.contact-form-card .wpcf7-form .wpcf7-submit,
.contact-basic-form button[type="submit"] {
    background: var(--themeht-primary-color);
    color: #fff;
    padding: 14px 40px;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    letter-spacing: 0.5px;
}

.contact-form-card .wpcf7-form .wpcf7-submit:hover,
.contact-basic-form button[type="submit"]:hover {
    background: var(--themeht-secondary-color);
    transform: translateY(-2px);
}

.contact-form-card .wpcf7-form p { margin-bottom: 18px; }

/* ── Quick Contact Right Column ───────────────────────────── */

.contact-quick-info {
    padding: 12px 0;
}

.contact-quick-info h3 {
    font-size: 24px;
    font-weight: 800;
    color: var(--themeht-secondary-color);
    margin-bottom: 6px;
}

.quick-branch-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,0.07);
}

.quick-branch-item:last-of-type { border-bottom: none; }

.quick-branch-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--themeht-primary-color);
    opacity: 0.2;
    line-height: 1;
    min-width: 44px;
}

.quick-branch-details strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--themeht-secondary-color);
    margin-bottom: 6px;
}

.quick-branch-details a,
.quick-branch-details span {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: #666;
    text-decoration: none;
    margin-bottom: 4px;
}

.quick-branch-details a:hover { color: var(--themeht-primary-color); }

.quick-branch-details i { color: var(--themeht-primary-color); font-size: 13px; }

.contact-social-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.contact-social-row p {
    font-size: 13px;
    font-weight: 600;
    color: #aaa;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.contact-social-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--themeht-light-color);
    color: var(--themeht-secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.contact-social-row a:hover {
    background: var(--themeht-primary-color);
    color: #fff;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (max-width: 991px) {
    .contact-branch-tabs {
        flex-direction: column;
        background: none;
        padding: 0;
        gap: 8px;
    }

    .contact-branch-tabs .nav-item { max-width: 100%; }

    .contact-branch-tabs .nav-link {
        background: #fff;
        border: 1.5px solid rgba(0,0,0,0.07);
        box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    }

    .contact-branch-tabs .nav-link.active {
        border-color: var(--themeht-primary-color);
        background: #fff;
    }

    .branch-tab-inner {
        flex-direction: column;
        min-height: auto;
        border-top-left-radius: 20px;
    }

    .branch-map-wrap {
        flex: none;
        min-height: 280px;
    }

    .branch-info-wrap { flex: none; }
}

@media (max-width: 767px) {
    .contact-form-card {
        padding: 28px 20px;
    }

    .contact-section-header h2 { font-size: 26px; }

    .branch-map-wrap { min-height: 240px; }

    .branch-info-inner { padding: 24px 20px; }
}
