/* ==========================================================================
   CÔNG TY CỔ PHẦN THỦY ĐIỆN BẮC HÀ (BHHC) - TRANG LIÊN HỆ & HỢP TÁC
   Theme: Pure Ocean Blue & Corporate Clean White (#0A4D68, #0077B6, #0096C7, #0A2647)
   ========================================================================== */

/* 1. CSS VARIABLES & SYSTEM RESET */
:root {
    --primary-blue: #0A4D68;       /* Xanh biển đậm chủ đạo */
    --royal-blue: #0077B6;         /* Xanh dương tươi sáng */
    --accent-cyan: #0096C7;        /* Xanh ngọc cyan */
    --sky-light: #EBF4F6;          /* Xanh nhạt nền */
    --ocean-deep: #0A2647;         /* Xanh thẫm thương hiệu */
    --cyan-neon: #05BFDB;
    
    /* Backgrounds */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --bg-glass-nav: rgba(255, 255, 255, 0.96);
    --bg-dark-glass: rgba(10, 77, 104, 0.85);

    /* Text Colors */
    --text-heading: #0A2647;
    --text-main: #1E293B;
    --text-muted: #475569;
    --text-dim: #64748B;
    --text-pure: #FFFFFF;

    /* Status Colors */
    --color-success: #059669;
    --color-success-bg: #ECFDF5;
    --color-warning: #D97706;
    --color-warning-bg: #FFFBEB;
    --color-danger: #EF4444;
    --color-danger-bg: #FEF2F2;

    /* Borders & Shadows */
    --border-subtle: #E2E8F0;
    --border-light: #EDF2F7;
    --border-accent: rgba(0, 119, 182, 0.3);
    --shadow-sm: 0 2px 8px rgba(10, 38, 71, 0.05);
    --shadow-md: 0 6px 20px rgba(10, 38, 71, 0.08);
    --shadow-lg: 0 12px 36px rgba(10, 38, 71, 0.12);
    --shadow-hover: 0 16px 40px rgba(0, 119, 182, 0.16);
    --glow-cyan: 0 0 25px rgba(0, 150, 199, 0.35);

    /* Typography */
    --font-heading: 'Montserrat', 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 700;
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
}

.gradient-text {
    background: linear-gradient(135deg, #0077B6 0%, #0096C7 50%, #05BFDB 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-cyan { color: #0096C7 !important; }
.text-primary { color: #0A4D68 !important; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

/* 2. TOPBAR */
.topbar {
    background-color: #0A4D68;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.82rem;
    padding: 9px 0;
    position: relative;
    z-index: 1001;
    color: #FFFFFF;
    box-shadow: 0 2px 12px rgba(10, 38, 71, 0.15);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #FFFFFF;
    font-weight: 500;
}

.topbar-item strong {
    color: #FFFFFF;
    font-weight: 700;
}

.topbar-item i {
    color: #05BFDB !important;
    font-size: 0.88rem;
    filter: drop-shadow(0 0 6px rgba(5, 191, 219, 0.5));
}

.topbar-search-form {
    display: flex;
    align-items: center;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 3px 10px 3px 14px;
    gap: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.3s var(--ease-out);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.search-input-wrap:focus-within {
    border-color: #FFFFFF;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.35);
}

.search-icon {
    color: #FFFFFF;
    font-size: 0.78rem;
    opacity: 0.9;
}

.topbar-search-input {
    background: transparent;
    border: none;
    outline: none;
    color: #FFFFFF;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 500;
    width: 180px;
    transition: width 0.3s ease;
}

.topbar-search-input::placeholder {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.76rem;
}

.topbar-search-input:focus {
    width: 220px;
}

.search-submit-btn {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 0.76rem;
    cursor: pointer;
    padding: 3px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s, transform 0.2s;
}

.search-submit-btn:hover {
    color: #05BFDB;
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(2px);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-switch .sep {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.lang-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    transition: color 0.2s ease;
}

.lang-btn.active, .lang-btn:hover {
    color: #05BFDB;
}

/* 3. MAIN NAVIGATION BAR (GLASSMORPHISM) */
.header.glass-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(10, 38, 71, 0.06);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 78px;
}

.logo-box {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bhhc-logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-main {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--ocean-deep);
    line-height: 1.15;
}

.logo-sub {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: var(--royal-blue);
    margin-top: 2px;
}

.desktop-nav .nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #334155;
    padding: 8px 2px;
    position: relative;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #0077B6, #05BFDB);
    border-radius: 2px;
    transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--royal-blue);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-glow-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0077B6, #0096C7);
    color: #FFFFFF;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: 25px;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.28);
    transition: all 0.25s ease;
}

.btn-glow-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.45);
    color: #FFFFFF;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    width: 100%;
    height: 2.5px;
    background-color: var(--ocean-deep);
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* 4. MOBILE DRAWER */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: #FFFFFF;
    z-index: 2000;
    box-shadow: -6px 0 24px rgba(10, 38, 71, 0.2);
    display: flex;
    flex-direction: column;
    padding: 24px;
    transition: right 0.35s var(--ease-out);
}

.mobile-drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 20px;
}

.logo-drawer {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bhhc-logo-drawer {
    height: 38px;
}

.logo-main-drawer {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--ocean-deep);
    display: block;
}

.logo-sub-drawer {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--royal-blue);
    display: block;
}

.close-drawer-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #64748B;
    cursor: pointer;
    line-height: 1;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mob-link {
    font-size: 1.02rem;
    font-weight: 600;
    color: #334155;
    padding: 8px 0;
    display: block;
    border-bottom: 1px solid #F1F5F9;
}

.mob-link.active {
    color: var(--royal-blue);
    font-weight: 700;
}

.btn-drawer-cta {
    background: linear-gradient(135deg, #0077B6, #0096C7);
    color: #FFFFFF !important;
    text-align: center;
    border-radius: 8px;
    padding: 10px;
    margin-top: 10px;
    border: none;
}

.drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 38, 71, 0.45);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-backdrop.show {
    opacity: 1;
    pointer-events: auto;
}

/* 5. SUBPAGE STATIC HERO (BỐ CỤC ĐỒNG BỘ 100% VỚI CÁC TRANG CON) */
.subpage-hero {
    position: relative;
    background-color: #0A2647;
    background-image: linear-gradient(180deg, rgba(10, 38, 71, 0.05) 0%, rgba(10, 38, 71, 0.20) 55%, rgba(10, 38, 71, 0.88) 100%), url('AnhPoster.JPG');
    background-size: cover;
    background-position: center 24%;
    background-repeat: no-repeat;
    min-height: 460px;
    padding: 160px 0 45px;
    display: flex;
    align-items: flex-end;
    border-bottom: 4px solid var(--accent-cyan);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 38, 71, 0.15);
}

.subpage-hero::before {
    display: none;
}

.subpage-hero::after {
    display: none;
}

.subpage-hero .container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 28px;
}

.subpage-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.subpage-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(10, 38, 71, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 14px;
    width: fit-content;
}

.subpage-breadcrumb a {
    color: #05BFDB;
    text-decoration: none;
    font-weight: 500;
}

.subpage-breadcrumb a:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

.subpage-breadcrumb .crumb-sep {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.subpage-breadcrumb .crumb-current {
    color: #FFFFFF;
    font-weight: 600;
}

.subpage-title {
    font-family: var(--font-heading);
    font-size: 2.7rem;
    font-weight: 900;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.95), 0 1px 4px rgba(0, 0, 0, 0.95);
    display: block;
}

/* 6. STICKY SUBPAGE QUICK NAVIGATION */
.subpage-nav-bar {
    position: sticky;
    top: 78px;
    z-index: 990;
    background: #FFFFFF;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 14px rgba(10, 38, 71, 0.04);
}

.subpage-nav-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 8px;
    padding: 10px 0;
}

.subpage-nav-list::-webkit-scrollbar {
    display: none;
}

.subpage-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    padding: 8px 18px;
    border-radius: 20px;
    white-space: nowrap;
    background: transparent;
    transition: all 0.2s ease;
}

.subpage-nav-link:hover, .subpage-nav-link.active {
    background: #E0F2FE;
    color: var(--royal-blue);
}

.subpage-nav-link i {
    color: var(--accent-cyan);
    font-size: 0.9rem;
}

/* 7. CONTENT SECTIONS COMMON */
.content-section {
    padding: 58px 0;
}

.section-head-bar {
    margin-bottom: 34px;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--royal-blue);
    background: #E0F2FE;
    padding: 4px 12px;
    border-radius: 14px;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 820px;
}

/* 8. SECTION: SUMMARY CONTACT CARDS (3 COLUMNS) */
.contact-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--royal-blue), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(0, 119, 182, 0.4);
}

.contact-card:hover::before {
    opacity: 1;
}

.contact-card-icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    color: var(--royal-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.contact-card:hover .contact-card-icon-wrap {
    background: linear-gradient(135deg, #0077B6, #05BFDB);
    color: #FFFFFF;
    box-shadow: var(--glow-cyan);
}

.contact-card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 12px;
}

.contact-card-text {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 18px;
    flex: 1;
}

.contact-card-highlight {
    background: #F8FAFC;
    border-radius: 8px;
    padding: 14px;
    border-left: 3px solid var(--accent-cyan);
}

.highlight-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.highlight-row:last-child {
    margin-bottom: 0;
}

.highlight-label {
    color: var(--text-dim);
}

.highlight-val {
    font-weight: 700;
    color: var(--ocean-deep);
}

.highlight-val a {
    color: var(--royal-blue);
}

.highlight-val a:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

/* 9. SECTION: DEPARTMENTS (4 COLUMNS) */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dept-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.dept-card:hover {
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.dept-badge {
    align-self: flex-start;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    background: #E0F2FE;
    color: #0369A1;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.dept-badge.urgent {
    background: #FEE2E2;
    color: #B91C1C;
}

.dept-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.dept-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 16px;
    flex: 1;
}

.dept-contact-list {
    border-top: 1px solid var(--border-light);
    padding-top: 14px;
    margin-bottom: 16px;
}

.dept-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    color: #334155;
    margin-bottom: 8px;
}

.dept-contact-item:last-child {
    margin-bottom: 0;
}

.dept-contact-item i {
    color: var(--accent-cyan);
    width: 16px;
    text-align: center;
}

.btn-dept-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px 12px;
    background: #F0F9FF;
    border: 1px solid #BAE6FD;
    border-radius: 6px;
    color: var(--royal-blue);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-dept-action:hover {
    background: var(--royal-blue);
    color: #FFFFFF;
    border-color: var(--royal-blue);
}

/* 10. SECTION: INTERACTIVE FORM & EMERGENCY BANNER */
.form-section-wrap {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

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

.form-info-col {
    background: linear-gradient(145deg, #0A2647 0%, #0A4D68 100%);
    color: #FFFFFF;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.form-info-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.form-info-desc {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    line-height: 1.65;
    margin-bottom: 30px;
}

.form-commitment-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.commitment-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.commitment-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(5, 191, 219, 0.2);
    border: 1px solid rgba(5, 191, 219, 0.4);
    color: #05BFDB;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.commitment-text h4 {
    font-size: 0.95rem;
    color: #FFFFFF;
    margin-bottom: 2px;
}

.commitment-text p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.45;
}

.form-info-bottom {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 16px;
}

.form-info-badge-icon {
    font-size: 2rem;
    color: #05BFDB;
}

.form-info-badge-text strong {
    display: block;
    font-size: 0.9rem;
    color: #FFFFFF;
}

.form-info-badge-text span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

.form-fields-col {
    padding: 48px;
}

.main-contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #1E293B;
}

.form-label .required-star {
    color: #EF4444;
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 11px 14px;
    font-size: 0.92rem;
    font-family: var(--font-body);
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    background-color: #FFFFFF;
    color: #0F172A;
    transition: all 0.2s ease;
    outline: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--royal-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 182, 0.15);
}

/* User-valid & User-invalid state enhancements */
.form-input:user-invalid, .form-textarea:user-invalid {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

.form-input:user-valid:not(:placeholder-shown) {
    border-color: #10B981;
}

.form-textarea {
    resize: vertical;
    min-height: 110px;
}

.file-upload-box {
    border: 1.5px dashed #CBD5E1;
    border-radius: 8px;
    padding: 14px;
    text-align: center;
    background: #F8FAFC;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.file-upload-box:hover {
    border-color: var(--royal-blue);
    background: #F0F9FF;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.file-upload-label i {
    color: var(--royal-blue);
    font-size: 1.1rem;
}

.file-selected-name {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
}

.form-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.45;
}

.form-privacy-check input[type="checkbox"] {
    accent-color: var(--royal-blue);
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.btn-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #0A4D68 0%, #0077B6 100%);
    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    padding: 13px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(10, 77, 104, 0.25);
    transition: all 0.25s ease;
    width: 100%;
}

.btn-form-submit:hover {
    background: linear-gradient(135deg, #0077B6 0%, #05BFDB 100%);
    box-shadow: 0 6px 20px rgba(0, 150, 199, 0.45);
    transform: translateY(-2px);
}

.btn-form-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* 11. SECTION: MAP & ROUTING GUIDE */
.map-routing-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 32px;
}

.map-card-wrapper {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.map-card-header {
    padding: 16px 22px;
    background: #F8FAFC;
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.map-header-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--ocean-deep);
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-gps-badge {
    font-size: 0.75rem;
    color: var(--royal-blue);
    background: #E0F2FE;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.map-iframe-container {
    width: 100%;
    height: 440px;
    position: relative;
    background: #E2E8F0;
}

.map-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.map-quick-links {
    padding: 14px 22px;
    background: #FFFFFF;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
}

.btn-open-gmaps {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--royal-blue);
}

.btn-open-gmaps:hover {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.routing-guide-card {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.routing-guide-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ocean-deep);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.route-steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 22px;
}

.route-step-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.route-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--royal-blue);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.route-step-content strong {
    display: block;
    font-size: 0.92rem;
    color: var(--ocean-deep);
    margin-bottom: 2px;
}

.route-step-content p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

.transport-note-box {
    margin-top: auto;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 8px;
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.82rem;
    color: #166534;
}

.transport-note-box i {
    font-size: 1rem;
    margin-top: 2px;
    color: #15803D;
}

/* 12. SECTION: FAQ ACCORDION */
.faq-accordion-wrap {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: #FFFFFF;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.25s ease;
}

.faq-item.active {
    border-color: var(--accent-cyan);
    box-shadow: 0 4px 16px rgba(0, 119, 182, 0.08);
}

.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ocean-deep);
    transition: color 0.2s ease;
    gap: 16px;
}

.faq-question:hover {
    color: var(--royal-blue);
}

.faq-icon {
    font-size: 0.9rem;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, padding 0.35s ease-out;
    padding: 0 22px;
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.7;
    background: #F8FAFC;
    border-top: 1px solid transparent;
}

.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 16px 22px 22px;
    border-top-color: var(--border-light);
}

/* 13. SECTION: EMERGENCY 24/7 HOTLINE STRIP */
.emergency-strip {
    background: linear-gradient(135deg, #7F1D1D 0%, #991B1B 50%, #B91C1C 100%);
    color: #FFFFFF;
    border-radius: 14px;
    padding: 26px 36px;
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    box-shadow: 0 10px 30px rgba(185, 28, 28, 0.25);
    border: 1px solid rgba(254, 202, 202, 0.2);
}

.emergency-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.emergency-icon-pulse {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #FEE2E2;
    animation: pulseBeacon 1.5s infinite;
    flex-shrink: 0;
}

@keyframes pulseBeacon {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { transform: scale(1.08); box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.emergency-text h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 4px;
}

.emergency-text p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.emergency-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.btn-emergency-call {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #FFFFFF;
    color: #991B1B;
    font-weight: 800;
    font-size: 1.05rem;
    padding: 12px 24px;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.btn-emergency-call:hover {
    background: #FEE2E2;
    transform: translateY(-2px);
    color: #7F1D1D;
}

/* 14. SUCCESS MODAL */
.contact-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.contact-modal.open {
    display: flex;
}

.contact-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 38, 71, 0.7);
    backdrop-filter: blur(6px);
}

.contact-modal-dialog {
    position: relative;
    z-index: 3001;
    background: #FFFFFF;
    width: 100%;
    max-width: 580px;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalPop 0.3s var(--ease-out);
    text-align: center;
    padding: 44px 36px;
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #ECFDF5;
    border: 2px solid #A7F3D0;
    color: #059669;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin: 0 auto 20px;
}

.modal-success-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--ocean-deep);
    margin-bottom: 8px;
}

.modal-success-desc {
    font-size: 0.94rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.ticket-receipt-box {
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 26px;
    text-align: left;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 6px;
}

.receipt-row:last-child {
    margin-bottom: 0;
}

.receipt-label {
    color: var(--text-dim);
}

.receipt-val {
    font-weight: 700;
    color: var(--ocean-deep);
}

.receipt-val.highlight {
    color: var(--royal-blue);
    font-family: monospace;
    font-size: 0.95rem;
}

.btn-modal-close {
    background: linear-gradient(135deg, #0077B6, #0096C7);
    color: #FFFFFF;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 10px 32px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 119, 182, 0.3);
    transition: all 0.2s ease;
}

.btn-modal-close:hover {
    background: #0A4D68;
    transform: translateY(-2px);
}

/* 15. FOOTER STYLES */
.footer {
    background: #0A2647;
    color: #FFFFFF;
    position: relative;
    z-index: 10;
}

.footer-cta-strip {
    background: linear-gradient(135deg, #0077B6 0%, #0A4D68 100%);
    padding: 35px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta-left .cta-subtitle {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    color: #05BFDB;
    display: block;
    margin-bottom: 6px;
}

.cta-left h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
}

.contact-cta-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 580px;
}

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

.cta-input {
    flex: 1;
    height: 42px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 0.88rem;
    color: #0F172A;
    outline: none;
}

.cta-submit-btn {
    height: 42px;
    padding: 0 20px;
    font-weight: 700;
    font-size: 0.9rem;
    background: #0A2647;
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.cta-submit-btn:hover {
    background: #0077B6;
    border-color: #FFFFFF;
    box-shadow: 0 0 16px rgba(0, 119, 182, 0.6);
}

.footer-main-body {
    padding: 56px 0 46px;
}

.footer-columns-grid {
    display: grid;
    grid-template-columns: minmax(360px, auto) 1fr minmax(320px, auto);
    gap: 50px;
    align-items: start;
}

.footer-col.col-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-box {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-logo-wrap {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 8px 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.footer-logo-wrap .bhhc-logo-img {
    height: 48px;
    width: auto;
}

.footer .logo-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #FFFFFF;
    line-height: 1.2;
}

.footer .logo-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 4px;
}

.social-pills {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.25s ease;
}

.social-link:hover {
    background: var(--royal-blue);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 119, 182, 0.4);
}

.footer-col-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.footer-nav-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 24px;
    row-gap: 12px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 0.88rem;
    color: #CBD5E1;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.footer-nav a:hover {
    color: var(--accent-cyan);
    transform: translateX(4px);
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.88rem;
    color: #CBD5E1;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.footer-contact-list i {
    margin-top: 3px;
    font-size: 0.95rem;
}

.footer-mail-link {
    color: #05BFDB;
}

.footer-mail-link:hover {
    text-decoration: underline;
}

.footer-bottom-bar {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 18px 0;
    font-size: 0.82rem;
    color: #94A3B8;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-legals {
    display: flex;
    gap: 10px;
    align-items: center;
}

.footer-legals a {
    color: #94A3B8;
}

.footer-legals a:hover {
    color: #FFFFFF;
}

/* 16. BACK TO TOP BUTTON */
.back-to-top-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--royal-blue);
    color: #FFFFFF;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: all 0.3s ease;
}

.back-to-top-btn.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-to-top-btn:hover {
    background: #05BFDB;
    transform: translateY(-3px);
}

/* 17. RESPONSIVE BREAKPOINTS */
@media (max-width: 1280px) {
    .dept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-columns-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 1024px) {
    .subpage-hero {
        padding: 140px 0 40px;
        min-height: 420px;
        background-position: center 24%;
    }
    .subpage-title {
        font-size: 2.2rem;
    }
    .desktop-nav {
        display: none;
    }
    .hamburger-btn {
        display: flex;
    }
    .contact-summary-grid {
        grid-template-columns: 1fr;
    }
    .form-layout-grid {
        grid-template-columns: 1fr;
    }
    .map-routing-grid {
        grid-template-columns: 1fr;
    }
    .footer-cta-card {
        flex-direction: column;
        align-items: stretch;
    }
    .contact-cta-form {
        max-width: 100%;
    }
    .emergency-strip {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .subpage-hero {
        padding: 120px 0 35px;
        min-height: 360px;
        background-position: center 24%;
    }
    .topbar-left .hide-mobile {
        display: none;
    }
    .topbar-search-form {
        display: none;
    }
    .subpage-title {
        font-size: 1.9rem;
    }
    .dept-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .form-fields-col {
        padding: 32px 20px;
    }
    .form-info-col {
        padding: 32px 20px;
    }
    .footer-nav-columns {
        grid-template-columns: 1fr;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}


/* =========================================================================
   FOOTER VISITOR STATS & CONTACT STRIP (THỐNG KÊ TRUY CẬP & DÒNG TRỤ SỞ NGANG)
   ========================================================================= */
.footer-col.col-stats {
    justify-self: end;
    width: 100%;
    max-width: 320px;
}

.footer-visitor-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 150, 199, 0.28);
    border-radius: 12px;
    padding: 16px 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.visitor-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: #E2E8F0;
}

.visitor-stat-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.visitor-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #CBD5E1;
    font-weight: 500;
}

.visitor-stat-val {
    font-size: 1.05rem;
    font-weight: 700;
    font-family: 'Outfit', 'Montserrat', sans-serif;
    color: #FFFFFF;
    letter-spacing: 0.5px;
}

.visitor-stat-val.text-emerald {
    color: #10B981;
}

.visitor-stat-val.text-cyan {
    color: #00D2D3;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10B981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* Dòng ngang Trụ sở & Liên hệ */
.footer-contact-strip {
    background: rgba(0, 20, 38, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 18px 0;
    margin-top: 40px;
    color: #CBD5E1;
    font-size: 0.88rem;
}

.footer-contact-flex {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    flex-wrap: wrap;
    text-align: center;
}

.contact-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.contact-strip-item strong {
    color: #FFFFFF;
}

.contact-strip-item a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.contact-strip-item a:hover {
    color: var(--cyan-neon, #00D2D3);
    text-decoration: underline;
}

.contact-sep {
    color: rgba(0, 150, 199, 0.5);
    font-weight: bold;
}

@media (max-width: 992px) {
    .footer-col.col-stats {
        justify-self: start;
        max-width: 100%;
    }
    .footer-contact-flex {
        flex-direction: column;
        gap: 10px;
    }
    .contact-sep {
        display: none;
    }
}
