@import url('https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,400;0,600;0,700;0,800;1,400;1,600&display=swap');

:root {
  /* Authentic hungdong.com.vn Color System (Flat Corporate — No AI Gradients) */
  --hd-primary: #1871BF;       /* .base_bg_color */
  --hd-primary-dark: #125A99;  /* hover / deep bar */
  --hd-accent: #34CCFF;        /* .secondary_bg_color */
  --hd-dark: #183650;          /* corporate heading slate */
  --hd-text: #555555;          /* body text */
  --hd-muted: #777777;
  --hd-bg: #FFFFFF;
  --hd-gray-light: #F7F7F7;
  --hd-gray-band: #F2F2F2;
  --hd-border: #E2E8F0;
  --hd-white: #FFFFFF;
  --hd-success: #0F766E;
  --hd-warn: #B45309;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Mulish', 'Open Sans', 'Segoe UI', Arial, sans-serif;
  color: var(--hd-text);
  background: var(--hd-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

.hd-container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==================== TOP INFO BAR (hungdong.com.vn style) ==================== */
.hd-topbar {
  background: var(--hd-primary);
  color: rgba(255, 255, 255, 0.92);
  font-size: 12.5px;
  padding: 7px 0;
}
.hd-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.hd-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hd-topbar-badge {
  background: var(--hd-accent);
  color: var(--hd-dark);
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 3px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.hd-topbar a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
}
.hd-topbar a:hover { color: var(--hd-accent); }

/* ==================== MAIN HEADER ==================== */
.hd-header {
  background: #FFFFFF;
  border-bottom: 1px solid #E5EBF2;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(24, 54, 80, 0.06);
}
.hd-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 16px;
}
.hd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--hd-dark);
}
.hd-brand img {
  height: 48px;
  width: auto;
  object-fit: contain;
}
.hd-brand-title {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: var(--hd-dark);
}
.hd-brand-sub {
  font-size: 11.5px;
  color: var(--hd-primary);
  font-style: italic;
  font-weight: 600;
}
.hd-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hd-nav-btn {
  border: none;
  background: transparent;
  color: var(--hd-dark);
  font-family: inherit;
  font-weight: 700;
  font-size: 13.5px;
  padding: 10px 13px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  transition: all 0.15s;
}
.hd-nav-btn:hover { color: var(--hd-primary); border-bottom-color: var(--hd-accent); }
.hd-nav-btn.active { color: var(--hd-primary); border-bottom-color: var(--hd-accent); }
.hd-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==================== HERO BANNER (Clean Corporate Maritime) ==================== */
.hd-hero {
  position: relative;
  min-height: 575px;
  background:
    linear-gradient(90deg, rgba(24, 54, 80, 0.86) 0%, rgba(24, 113, 191, 0.72) 55%, rgba(24, 54, 80, 0.82) 100%),
    url('/static/img/hero-banner.jpg') center center / cover no-repeat;
  background-color: var(--hd-dark);
  color: #FFFFFF;
  padding: 44px 0 54px;
  display: flex;
  align-items: center;
}
.hd-hero-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}
.hd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(24, 113, 191, 0.85);
  border-left: 3px solid var(--hd-accent);
  padding: 5px 14px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hd-hero h1 {
  margin: 0 0 14px;
  font-size: 36px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.hd-hero h1 .hl { color: var(--hd-accent); }
.hd-hero-desc {
  margin: 0 0 20px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 530px;
}

.hd-slanted-bar {
  display: inline-block;
  background: #FFFFFF;
  color: var(--hd-dark);
  padding: 9px 22px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.2px;
  transform: skewX(-12deg);
  border-left: 5px solid var(--hd-accent);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  margin-bottom: 20px;
}
.hd-slanted-bar > span {
  display: inline-block;
  transform: skewX(12deg);
}

.hd-hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.hd-hero-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #FFFFFF;
}
.hd-mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  background: var(--hd-primary);
  border: 1px solid var(--hd-accent);
  color: #FFFFFF;
}
.hd-mode-pill.internal {
  background: #FEF3C7;
  color: #92400E;
  border-color: #F59E0B;
}

/* Floating Quote Widget */
.hd-quote-widget {
  background: #FFFFFF;
  color: var(--hd-dark);
  border-radius: 8px;
  border-top: 4px solid var(--hd-accent);
  box-shadow: 0 18px 42px rgba(10, 26, 48, 0.34);
  overflow: visible;
}
.hd-widget-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #F2F6FA;
  border-bottom: 1px solid var(--hd-border);
}
.hd-wtab {
  border: none;
  background: transparent;
  font-family: inherit;
  padding: 12px 8px;
  font-size: 12.5px;
  font-weight: 800;
  color: #64748B;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border-bottom: 3px solid transparent;
  transition: all 0.15s;
}
.hd-wtab small { font-size: 11px; font-weight: 600; opacity: 0.8; }
.hd-wtab:hover { color: var(--hd-primary); }
.hd-wtab.active {
  background: #FFFFFF;
  color: var(--hd-primary);
  border-bottom-color: var(--hd-accent);
}
.hd-widget-body { padding: 20px 22px 22px; }

/* ==================== FORM CONTROLS ==================== */
.hd-form-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 12px;
}
.col-2 { grid-column: span 2; }
.col-3 { grid-column: span 3; }
.col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; }
.col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.hd-field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.hd-field label {
  font-size: 11px;
  font-weight: 800;
  color: var(--hd-dark);
  text-transform: uppercase;
  letter-spacing: 0.35px;
}
.hd-input, .hd-select {
  width: 100%;
  padding: 9px 11px;
  border: 1.5px solid #D5DFE9;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--hd-dark);
  background: #FFFFFF;
  transition: border-color 0.15s;
}
.hd-input:focus, .hd-select:focus {
  outline: none;
  border-color: var(--hd-primary);
  box-shadow: 0 0 0 2px rgba(24, 113, 191, 0.15);
}

/* Autocomplete */
.ac-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(24, 54, 80, 0.2);
  max-height: 260px;
  overflow-y: auto;
  z-index: 80;
  margin-top: 3px;
  display: none;
}
.ac-list.open { display: block; }
.ac-item {
  padding: 9px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #F1F5F9;
  font-size: 13px;
}
.ac-item:hover { background: #EEF6FD; }
.ac-code {
  font-family: Consolas, monospace;
  font-weight: 700;
  font-size: 11.5px;
  background: var(--hd-dark);
  color: #FFFFFF;
  padding: 2px 6px;
  border-radius: 3px;
}
.ac-rate-badge {
  font-size: 11px;
  font-weight: 700;
  color: #0F766E;
  background: #CCFBF1;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.hd-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hd-chips-label { font-size: 11.5px; color: var(--hd-muted); font-weight: 700; }
.hd-chip {
  border: 1px solid #D5DFE9;
  background: #F7FAFC;
  color: var(--hd-dark);
  font-family: inherit;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.15s;
}
.hd-chip:hover { border-color: var(--hd-primary); background: #EBF5FF; color: var(--hd-primary); }

/* ==================== BUTTONS (hungdong.com.vn flat pill style) ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px solid transparent;
  border-radius: 50px;
  padding: 10px 22px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition: all 0.16s;
  text-decoration: none;
}
.btn-primary {
  background: var(--hd-primary);
  color: #FFFFFF;
  border-color: var(--hd-primary);
}
.btn-primary:hover { background: var(--hd-primary-dark); border-color: var(--hd-primary-dark); }
.btn-cyan {
  background: transparent;
  color: var(--hd-primary);
  border-color: var(--hd-accent);
}
.btn-cyan:hover { background: var(--hd-accent); color: #FFFFFF; }
.btn-navy {
  background: var(--hd-dark);
  color: #FFFFFF;
  border-color: var(--hd-dark);
}
.btn-navy:hover { background: var(--hd-primary); border-color: var(--hd-primary); }
.btn-outline {
  background: #FFFFFF;
  color: var(--hd-dark);
  border-color: #CBD5E1;
}
.btn-outline:hover { border-color: var(--hd-primary); color: var(--hd-primary); }
.btn-sm { padding: 7px 15px; font-size: 12px; }
.btn-danger { background: #DC2626; color: #FFFFFF; border-color: #DC2626; }
.btn-full { width: 100%; }

/* ==================== RESULTS BAND ==================== */
.hd-results-band { padding: 28px 0 8px; }
.hd-results-band:empty { display: none; padding: 0; }
.hd-card {
  background: #FFFFFF;
  border: 1px solid var(--hd-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(24, 54, 80, 0.05);
}
.hd-card-body { padding: 22px; }

.hd-estimate-box {
  background: var(--hd-primary);
  border-left: 6px solid var(--hd-accent);
  color: #FFFFFF;
  border-radius: 8px;
  padding: 26px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  box-shadow: 0 10px 26px rgba(24, 113, 191, 0.22);
}
.hd-estimate-price { font-size: 34px; font-weight: 800; color: #FFFFFF; margin: 6px 0; }
.hd-estimate-meta { font-size: 13.5px; color: rgba(255, 255, 255, 0.9); }

.hd-pkg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.hd-pkg-card {
  border: 1.5px solid var(--hd-border);
  border-radius: 8px;
  padding: 18px;
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.hd-pkg-card.best { border-color: var(--hd-primary); border-top: 4px solid var(--hd-accent); }
.hd-pkg-price { font-size: 24px; font-weight: 800; color: var(--hd-primary); }

/* ==================== SECTION TITLES ==================== */
.hd-sec-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 38px;
}
.hd-sec-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--hd-dark);
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.hd-sec-title span { color: var(--hd-primary); }
.hd-title-line {
  width: 56px;
  height: 3px;
  background: var(--hd-accent);
  margin: 0 auto 14px;
}
.hd-title-line.left { margin: 0 0 18px; }
.hd-sec-sub { margin: 0; font-size: 15px; color: var(--hd-muted); }

/* ==================== SECTION 2: WELCOME & REAL TEAM PHOTO ==================== */
.hd-welcome-sec {
  padding: 66px 0 54px;
  background: #FFFFFF;
}
.hd-welcome-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.1fr;
  gap: 44px;
  align-items: center;
}
.hd-welcome-visual {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #E2E8F0;
  box-shadow: 0 12px 30px rgba(24, 54, 80, 0.12);
}
.hd-welcome-visual img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hd-anniversary-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--hd-primary);
  color: #FFFFFF;
  padding: 9px 16px;
  border-radius: 5px;
  border-left: 4px solid var(--hd-accent);
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}
.hd-anniversary-num { font-size: 24px; font-weight: 900; color: var(--hd-accent); line-height: 1; }
.hd-welcome-text { font-size: 15px; color: var(--hd-text); margin: 0 0 14px; }
.hd-cert-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hd-cert-chip {
  font-size: 12px;
  font-weight: 700;
  color: var(--hd-dark);
  background: #F2F7FC;
  border: 1px solid #D3E4F4;
  padding: 5px 12px;
  border-radius: 4px;
}

/* 4 Value Pillars */
.hd-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 48px;
  padding-top: 38px;
  border-top: 1px solid #E5EBF2;
}
.hd-pillar {
  text-align: center;
  padding: 6px 18px;
  border-right: 1px solid #E5EBF2;
}
.hd-pillar:last-child { border-right: none; }
.hd-pillar-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--hd-accent);
  color: var(--hd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-pillar h4 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 800;
  color: var(--hd-dark);
  text-transform: uppercase;
}
.hd-pillar p { margin: 0; font-size: 13px; color: var(--hd-muted); }

/* ==================== SECTION 3: GLOBAL LOGISTICS NETWORKS (SLIDE 24) ==================== */
.hd-networks-sec {
  padding: 62px 0;
  background: var(--hd-gray-light);
  border-top: 1px solid #E8EDF3;
  border-bottom: 1px solid #E8EDF3;
}
.hd-network-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.hd-net-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  padding: 18px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  transition: border-color 0.16s, box-shadow 0.16s;
}
.hd-net-card:hover {
  border-color: var(--hd-primary);
  box-shadow: 0 8px 22px rgba(24, 113, 191, 0.1);
}
.hd-net-card.new-member {
  border-color: var(--hd-primary);
  border-top: 3px solid var(--hd-accent);
}
.hd-net-new-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--hd-primary);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
}
.hd-net-logo-box {
  height: 108px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-bottom: 10px;
}
.hd-net-logo-box img {
  max-height: 92px;
  max-width: 195px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.hd-net-year {
  font-size: 12px;
  font-weight: 800;
  color: var(--hd-primary);
  background: #EDF5FC;
  padding: 2px 10px;
  border-radius: 50px;
  margin-bottom: 4px;
}
.hd-net-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--hd-dark);
}

/* ==================== SECTION 4: ACTIVE & LOYAL CUSTOMERS (SLIDE 23) ==================== */
.hd-customers-sec {
  padding: 64px 0;
  background: #FFFFFF;
}
.hd-cust-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.hd-cust-card {
  flex: 0 1 calc(20% - 15px);
  min-width: 195px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-right: 4px solid var(--hd-primary);
  border-bottom: 4px solid var(--hd-primary);
  border-radius: 4px;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.16s, border-color 0.16s;
}
.hd-cust-card:hover {
  transform: translateY(-3px);
  border-right-color: var(--hd-accent);
  border-bottom-color: var(--hd-accent);
}
.hd-cust-logo-box {
  height: 76px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #E5EBF2;
  margin-bottom: 9px;
}
.hd-cust-logo-box img {
  max-height: 62px;
  max-width: 145px;
  object-fit: contain;
}
.hd-cust-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--hd-primary);
}

/* ==================== SECTION 5: OUR CORE SERVICES (Solid #1871BF Band) ==================== */
.hd-services-sec {
  padding: 66px 0 72px;
  background: var(--hd-primary);
  color: #FFFFFF;
}
.hd-services-sec .hd-sec-title { color: #FFFFFF; }
.hd-services-sec .hd-sec-sub { color: rgba(255, 255, 255, 0.85); }
.hd-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.hd-svc-card {
  background: #FFFFFF;
  color: var(--hd-dark);
  border-radius: 8px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 26px rgba(10, 30, 60, 0.18);
  transition: transform 0.18s;
}
.hd-svc-card:hover { transform: translateY(-4px); }
.hd-svc-card h3 {
  margin: 2px 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: var(--hd-dark);
  text-transform: uppercase;
}
.hd-svc-img-wrap {
  width: 100%;
  height: 158px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 14px;
  background: #F7F9FC;
  border: 1px solid #E5EBF2;
}
.hd-svc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hd-svc-card p { font-size: 13px; color: var(--hd-muted); margin: 0 0 16px; flex: 1; }

/* ==================== SECTION 5.5: FAQ (GAE) ==================== */
.hd-faq-sec {
  padding: 62px 0;
  background: var(--hd-gray-light);
  border-top: 1px solid #E5EBF2;
}
.hd-faq-grid {
  max-width: 920px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hd-faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-left: 4px solid var(--hd-primary);
  border-radius: 6px;
  padding: 15px 20px;
}
.hd-faq-item[open] {
  border-left-color: var(--hd-accent);
  box-shadow: 0 6px 18px rgba(24, 54, 80, 0.06);
}
.hd-faq-item summary {
  font-weight: 800;
  font-size: 15px;
  color: var(--hd-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hd-faq-item summary::after {
  content: "+";
  font-size: 20px;
  font-weight: 700;
  color: var(--hd-primary);
}
.hd-faq-item[open] summary::after { content: "−"; color: var(--hd-accent); }
.hd-faq-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--hd-text);
  line-height: 1.65;
}

/* ==================== SECTION 6: CORPORATE FOOTER (hungdong.com.vn #1871BF) ==================== */
.hd-footer-main {
  background: var(--hd-dark);
  color: rgba(255, 255, 255, 0.84);
  padding: 52px 0 40px;
}
.hd-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.85fr 1.25fr 1fr;
  gap: 32px;
}
.hd-footer-logo-box {
  display: inline-block;
  background: #FFFFFF;
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.hd-footer-logo-box img { height: 42px; display: block; }
.hd-footer-title {
  font-size: 14px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--hd-accent);
  display: inline-block;
}
.hd-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.hd-footer-links a, .hd-footer-links button {
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13.5px;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}
.hd-footer-links a:hover, .hd-footer-links button:hover { color: var(--hd-accent); }
.hd-office-item { font-size: 13px; color: rgba(255, 255, 255, 0.8); margin-bottom: 10px; }
.hd-office-item strong { color: #FFFFFF; }
.hd-copyright {
  background: #10263A;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  padding: 14px 20px;
  font-size: 12.5px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== TABLES & ALERTS ==================== */
.hd-table-wrap { overflow-x: auto; border: 1px solid var(--hd-border); border-radius: 6px; background: #fff; }
table.hd-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.hd-table th {
  background: var(--hd-primary);
  color: #FFFFFF;
  text-align: left;
  padding: 11px 12px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  white-space: nowrap;
}
table.hd-table td { padding: 10px 12px; border-bottom: 1px solid #EEF2F6; vertical-align: top; }
table.hd-table tr:hover td { background: #F8FAFC; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cost-hl { font-weight: 800; color: var(--hd-dark); font-size: 14.5px; }
.sell-hl { font-weight: 800; color: var(--hd-primary); font-size: 14.5px; }

/* Compact 1-screen fit for Sea & Express results (Desktop + Mobile Card Stack) */
table.hd-compact-table { width: 100%; table-layout: auto; font-size: 13px; }
table.hd-compact-table th { padding: 9px 10px; font-size: 11px; letter-spacing: 0.25px; }
table.hd-compact-table td { padding: 9px 10px; vertical-align: middle; }
.hd-sub { font-size: 11px; color: var(--hd-muted); line-height: 1.35; margin-top: 2px; }
.hd-bk { font-size: 11.5px; color: var(--hd-text); line-height: 1.4; }
.hd-bk span { display: inline-block; margin-right: 8px; white-space: nowrap; }
.hd-bk b { color: var(--hd-dark); font-weight: 700; }
.hd-src-trunc { max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; font-size: 11px; color: var(--hd-muted); }

@media (max-width: 768px) {
  .hd-card-body { padding: 14px; }
  .hd-estimate-box { padding: 18px; gap: 14px; }
  .hd-estimate-price { font-size: 26px; }
  .hd-table-wrap.hd-compact-wrap { border: none; background: transparent; overflow-x: visible; }
  table.hd-compact-table,
  table.hd-compact-table tbody,
  table.hd-compact-table tr,
  table.hd-compact-table td { display: block; width: 100%; }
  table.hd-compact-table thead { display: none; }
  table.hd-compact-table tr {
    background: #FFFFFF;
    border: 1px solid var(--hd-border);
    border-left: 4px solid var(--hd-primary);
    border-radius: 8px;
    margin-bottom: 10px;
    padding: 6px 12px;
    box-shadow: 0 2px 8px rgba(24, 54, 80, 0.05);
  }
  table.hd-compact-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    border-bottom: 1px dashed #E8EDF3;
    text-align: right !important;
    white-space: normal !important;
  }
  table.hd-compact-table td:last-child { border-bottom: none; padding-top: 8px; }
  table.hd-compact-table td::before {
    content: attr(data-label);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--hd-muted);
    text-align: left;
    flex-shrink: 0;
  }
  table.hd-compact-table td > div { text-align: right; }
  .hd-src-trunc { max-width: 190px; margin-left: auto; }
}

.hd-alert {
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 13.5px;
  margin-top: 14px;
  border-left: 4px solid var(--hd-primary);
  background: #EEF6FD;
  color: var(--hd-dark);
}
.hd-alert.warn { background: #FFFBEB; border-left-color: #D97706; color: #92400E; }

/* ==================== FLOATING SUPPORT BUTTON ==================== */
.hd-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--hd-primary);
  color: #FFFFFF;
  border: 2px solid var(--hd-accent);
  border-radius: 50px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(24, 54, 80, 0.28);
  cursor: pointer;
}
.hd-fab:hover { background: var(--hd-primary-dark); }

/* ==================== MODALS & ADMIN ==================== */
.hd-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 54, 80, 0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.hd-modal-backdrop.open { display: flex; }
.hd-modal {
  background: #FFFFFF;
  border-radius: 8px;
  border-top: 4px solid var(--hd-accent);
  max-width: 500px;
  width: 100%;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.hd-modal-header {
  background: var(--hd-primary);
  color: #FFFFFF;
  padding: 15px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.hd-modal-header h3 { margin: 0; font-size: 15.5px; text-transform: uppercase; letter-spacing: 0.3px; }
.hd-modal-close { background: transparent; border: none; color: #fff; font-size: 24px; cursor: pointer; line-height: 1; }
.hd-modal-body { padding: 22px; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: #FFFFFF; border: 1px solid var(--hd-border); border-top: 3px solid var(--hd-primary); border-radius: 6px; padding: 16px 18px; }
.kpi-card .val { font-size: 26px; font-weight: 800; color: var(--hd-dark); }
.kpi-card .lbl { font-size: 12px; color: var(--hd-muted); font-weight: 700; text-transform: uppercase; }

.hidden { display: none !important; }

/* ==================== QUOTATION DRAFT PREVIEW MODAL (FULL COLOR A4) ==================== */
.hd-pdf-modal {
  background: #E2E8F0;
  border-radius: 8px;
  width: 100%;
  max-width: 900px;
  height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.hd-pdf-toolbar {
  background: var(--hd-dark);
  color: #FFFFFF;
  padding: 11px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.hd-pdf-title { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hd-pdf-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hd-pdf-stage {
  flex: 1;
  overflow: auto;
  padding: 20px 16px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.hd-pdf-paper {
  width: 100%;
  max-width: 210mm;
  min-height: 297mm;
  background: #FFFFFF;
  color: #000000;
  padding: 12mm 14mm;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
  font-family: 'Times New Roman', Times, serif;
  line-height: 1.26;
}
.hd-pdf-paper .q-letterhead { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2.5pt solid #1F4E79; padding-bottom: 5px; margin-bottom: 6px; }
.hd-pdf-paper .q-lh-logo { height: 74px; width: auto; display: block; }
.hd-pdf-paper .q-lh-right { text-align: right; font-size: 8.5pt; color: #000; line-height: 1.32; }
.hd-pdf-paper .q-lh-company { font-size: 10.5pt; font-weight: bold; color: #1F4E79; margin-bottom: 2px; }
.hd-pdf-paper .q-title-row { display: flex; justify-content: space-between; align-items: baseline; margin: 4px 0 6px; }
.hd-pdf-paper .q-title { font-size: 15pt; font-weight: bold; color: #FF0000; text-align: center; flex: 1; letter-spacing: 0.3px; }
.hd-pdf-paper .q-ref { font-size: 8.5pt; font-weight: bold; color: #000; white-space: nowrap; }
.hd-pdf-paper .q-tofrom { width: 100%; border-collapse: collapse; font-size: 9pt; margin-bottom: 8px; }
.hd-pdf-paper .q-tofrom td { padding: 1.5px 4px; vertical-align: top; }
.hd-pdf-paper .q-opening { font-size: 9pt; margin: 4px 0 8px; line-height: 1.32; }
.hd-pdf-paper .q-shipbox { width: 100%; border: 1.5pt solid #000000; border-collapse: collapse; font-size: 8.5pt; margin-bottom: 8px; }
.hd-pdf-paper .q-shipbox td { padding: 2.5px 6px; border: none; vertical-align: top; }
.hd-pdf-paper .q-table { width: 100%; border-collapse: collapse; border: 1.5pt solid #000000; font-size: 8pt; margin-bottom: 6px; }
.hd-pdf-paper .q-table th, .hd-pdf-paper .q-table td { border: 0.6pt solid #000000; padding: 3px 5px; vertical-align: middle; }
.hd-pdf-paper .q-sec-bar td { background: #B4C6E7; font-weight: bold; border-top: 1.5pt solid #000000; border-bottom: 1pt solid #000000; padding: 3.5px 5px; }
.hd-pdf-paper .q-total-col { background: #B4C6E7; color: #FF0000; font-weight: bold; text-align: center; }
.hd-pdf-paper .q-price-red { color: #FF0000; font-weight: bold; text-align: center; }
.hd-pdf-paper .q-remark { font-size: 7pt; text-align: left; vertical-align: top; line-height: 1.32; }
.hd-pdf-paper .q-red { color: #FF0000; font-weight: bold; }
.hd-pdf-paper .q-grand-total td { background: #F8CBAD; color: #FF0000; font-weight: bold; border-top: 1.2pt solid #000000; padding: 3.5px 5px; }
.hd-pdf-paper .q-note { font-size: 8pt; font-style: italic; color: #FF0000; margin: 5px 0 8px; }
.hd-pdf-paper .q-closing { font-size: 8.5pt; font-style: italic; margin: 4px 0 10px; line-height: 1.35; }
.hd-pdf-paper .q-sig { font-size: 8pt; line-height: 1.35; margin-bottom: 8px; }
.hd-pdf-paper .q-sig-co { font-size: 8.5pt; font-weight: bold; color: #1F4E79; margin: 2px 0; }
.hd-pdf-paper .q-net-banner { width: 100%; height: auto; max-height: 86px; object-fit: contain; object-position: left center; display: block; margin-top: 8px; }

/* ==================== OFFICIAL HUNG DONG SOP v2.17 PRINTABLE PDF QUOTATION ==================== */
#print-quote-sheet { display: none; }

@page {
  size: A4 portrait;
  margin: 12mm 14mm;
}

@media print {
  html, body {
    margin: 0 !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    width: 100% !important;
    height: auto !important;
  }
  /* Hide EVERYTHING except the 1-page A4 quotation sheet so zero blank pages ever appear */
  body > *:not(#print-quote-sheet) {
    display: none !important;
  }
  #print-quote-sheet, #print-quote-sheet * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }
  #print-quote-sheet {
    display: block !important;
    width: 100% !important;
    max-width: 182mm !important;
    margin: 0 auto !important;
    padding: 0 !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    font-family: 'Times New Roman', Times, serif !important;
    line-height: 1.26 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    page-break-after: avoid !important;
  }
  .q-letterhead {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 2.5pt solid #1F4E79;
    padding-bottom: 5px;
    margin-bottom: 6px;
  }
  .q-lh-logo { height: 74px; width: auto; display: block; }
  .q-lh-right { text-align: right; font-size: 8.5pt; color: #000; line-height: 1.32; }
  .q-lh-company { font-size: 10.5pt; font-weight: bold; color: #1F4E79; margin-bottom: 2px; }
  .q-title-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 4px 0 6px;
  }
  .q-title { font-size: 15pt; font-weight: bold; color: #FF0000; text-align: center; flex: 1; letter-spacing: 0.3px; }
  .q-ref { font-size: 8.5pt; font-weight: bold; color: #000; white-space: nowrap; }
  .q-tofrom { width: 100%; border-collapse: collapse; font-size: 9pt; margin-bottom: 8px; }
  .q-tofrom td { padding: 1.5px 4px; vertical-align: top; }
  .q-opening { font-size: 9pt; margin: 4px 0 8px; line-height: 1.32; }
  .q-shipbox {
    width: 100%;
    border: 1.5pt solid #000000;
    border-collapse: collapse;
    font-size: 8.5pt;
    margin-bottom: 8px;
  }
  .q-shipbox td { padding: 2.5px 6px; border: none; vertical-align: top; }
  .q-table {
    width: 100%;
    border-collapse: collapse;
    border: 1.5pt solid #000000;
    font-size: 8pt;
    margin-bottom: 6px;
  }
  .q-table th, .q-table td {
    border: 0.6pt solid #000000;
    padding: 3px 5px;
    vertical-align: middle;
  }
  .q-sec-bar td {
    background: #B4C6E7 !important;
    font-weight: bold;
    border-top: 1.5pt solid #000000 !important;
    border-bottom: 1pt solid #000000 !important;
    padding: 3.5px 5px !important;
  }
  .q-total-col {
    background: #B4C6E7 !important;
    color: #FF0000 !important;
    font-weight: bold;
    text-align: center;
  }
  .q-price-red { color: #FF0000 !important; font-weight: bold; text-align: center; }
  .q-remark { font-size: 7pt; text-align: left; vertical-align: top !important; line-height: 1.32; }
  .q-red { color: #FF0000 !important; font-weight: bold; }
  .q-grand-total td {
    background: #F8CBAD !important;
    color: #FF0000 !important;
    font-weight: bold;
    border-top: 1.2pt solid #000000 !important;
    padding: 3.5px 5px !important;
  }
  .q-note { font-size: 8pt; font-style: italic; color: #FF0000 !important; margin: 5px 0 8px; }
  .q-closing { font-size: 8.5pt; font-style: italic; margin: 4px 0 10px; line-height: 1.35; }
  .q-sig { font-size: 8pt; line-height: 1.35; margin-bottom: 8px; }
  .q-sig-co { font-size: 8.5pt; font-weight: bold; color: #1F4E79 !important; margin: 2px 0; }
  .q-net-banner {
    width: 100% !important;
    height: auto !important;
    max-height: 86px !important;
    object-fit: contain;
    object-position: left center;
    display: block;
    margin-top: 8px;
  }
}

@media (max-width: 1024px) {
  .hd-hero-layout, .hd-welcome-grid { grid-template-columns: 1fr; }
  .hd-services-grid, .hd-pillars, .hd-network-grid, .hd-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .hd-cust-grid { grid-template-columns: repeat(3, 1fr); }
  .hd-pillar { border-right: none; border-bottom: 1px solid #E5EBF2; padding: 14px; }
}
@media (max-width: 680px) {
  .col-2, .col-3, .col-4, .col-5, .col-6, .col-8 { grid-column: span 12; }
  .hd-services-grid, .hd-pillars, .hd-network-grid, .hd-cust-grid, .hd-footer-grid, .kpi-grid { grid-template-columns: 1fr; }
  .hd-nav-links, .hd-topbar { display: none; }
  .hd-hero h1 { font-size: 26px; }
}
