/*
 * DHTD Child — contact.css (Task 50, 05/09/2026 — cập nhật Task 50.1, 09/09/2026)
 * CSS riêng cho Page "Liên hệ" (/lien-he/) — chỉ enqueue trên chính Page này
 * (is_page('lien-he'), xem inc/enqueue.php). Dùng lại token màu
 * (brand-colors.css) và utility dùng chung (.dhtd-container/.dhtd-eyebrow/
 * .dhtd-section-title/.dhtd-section-head/.dhtd-btn* — tất cả đã có sẵn
 * trong main.css, KHÔNG định nghĩa lại ở đây) — chỉ bổ sung phần chưa có:
 * breadcrumb (bản sao rút gọn từ catalog.css, giống cách about.css đã làm ở
 * Task 15 vì trang này cũng không tải catalog.css), sizing riêng cho
 * circuit-art khi dùng ở Hero trang này, style Fluent Forms ID 3 (theo đúng
 * pattern đã dùng ở home.css .dhtd-cta__form — chỉ đổi tên class), và toàn
 * bộ layout riêng của từng section trang Liên hệ.
 *
 * Task 50.1 (09/09/2026) — chỉnh giao diện bám sát mockup "DHTD - Liên hệ.png":
 * TOÀN BỘ thay đổi ở bản cập nhật này chỉ nằm trong file CSS — không sửa
 * page-lien-he.php, vì mọi phần tử cần "gộp khung chung" (Form+Thông tin,
 * 4 card lý do) đã có sẵn 1 div bọc ngoài (.dhtd-contact-main-grid__inner,
 * .dhtd-contact-reasons__grid) từ Task 50 — chỉ cần chuyển style "khung
 * card" từ các phần tử con lên đúng div bọc ngoài đó + thêm đường phân
 * cách bằng border. Đường nhấn dưới H1 và các chi tiết map dùng
 * ::before/::after (thuần trang trí, đã nằm trong section aria-hidden) nên
 * không cần thêm markup mới. Không sửa home.css/catalog.css/about.css/main.css.
 *
 * Không sửa home.css/catalog.css/about.css/main.css.
 */

/* ---------------------------------- Breadcrumb (bản sao rút gọn từ catalog.css) ---------------------------------- */
.dhtd-crumb {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--dhtd-muted);
  padding: 22px 0 0;
}
.dhtd-crumb a { color: var(--dhtd-muted); text-decoration: none; }
.dhtd-crumb a:hover { color: var(--dhtd-sky); }
.dhtd-crumb .sep { margin: 0 6px; opacity: .5; }
.dhtd-crumb .current { color: var(--dhtd-text); }

/* Focus-visible rõ ràng cho toàn bộ link/button trong trang (yêu cầu accessibility Task 50). */
.dhtd-contact-main a:focus-visible,
.dhtd-contact-main button:focus-visible,
.dhtd-contact-main input:focus-visible,
.dhtd-contact-main select:focus-visible,
.dhtd-contact-main textarea:focus-visible {
  outline: 2px solid var(--dhtd-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ==================================================================
 * 1. Hero (Task 50.1 — tăng hiện diện hình minh hoạ, cân lại tỉ lệ 2 cột,
 *    thêm đường nhấn Gold→Sky dưới H1 bằng ::after, không thêm ảnh mới)
 * ================================================================== */
.dhtd-contact-hero {
  /* Task 54 (11/09/2026): bottom 88px giảm theo token chuẩn — khoảng cách
     Hero→khối Form/Info giờ chỉ còn đúng giá trị này (main-grid không có
     padding-top). */
  padding: 32px 0 var(--dhtd-hero-space);
  background: var(--dhtd-white);
  overflow: hidden;
}
.dhtd-contact-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  min-height: 380px;
}
.dhtd-contact-hero__title {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
  line-height: 1.18;
  color: var(--dhtd-navy);
  margin: 0 0 22px;
  max-width: 16ch;
  position: relative;
  padding-bottom: 22px;
}
/* Đường nhấn Sky Blue/Gold dưới tiêu đề — thuần CSS, không phải ảnh. */
.dhtd-contact-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 68px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--dhtd-gold), var(--dhtd-sky));
}
.dhtd-contact-hero__desc {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--dhtd-text);
  max-width: 48ch;
  margin: 0;
}
.dhtd-contact-hero__art {
  max-width: 100%;
  width: 100%;
  height: 100%;
  min-height: 340px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dhtd-contact-hero__art .dhtd-circuit-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
}

/* ==================================================================
 * 2. Form + Thông tin liên hệ — MỘT khung trắng chung (Task 50.1)
 *    Khung card (border/radius/shadow rất nhẹ) chuyển lên đúng div bọc
 *    ngoài .dhtd-contact-main-grid__inner (đã có sẵn từ Task 50, bọc cả
 *    2 cột) — không cần thêm markup. Form panel + info panel chỉ còn
 *    padding riêng; đường phân cách dọc (desktop)/ngang (tablet-mobile)
 *    nằm trên info panel.
 * ================================================================== */
.dhtd-contact-main-grid {
  padding: 0 0 var(--dhtd-section-space); /* Task 54: 96px→chuẩn (Form→"Vì sao liên hệ" từ 184px còn 128px) */
  background: var(--dhtd-white);
}
.dhtd-contact-main-grid__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  background: var(--dhtd-white);
  border: 1px solid var(--dhtd-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(22, 62, 124, 0.06);
  overflow: hidden;
}
.dhtd-contact-panel-title {
  font-size: 1.375rem;
  color: var(--dhtd-navy);
  margin: 0 0 8px;
}
.dhtd-contact-panel-lead {
  font-size: 0.9375rem;
  color: var(--dhtd-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.dhtd-contact-form-panel {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 40px;
}

/* Fluent Forms ID 3 — đồng bộ chiều cao input/select/textarea, khoảng cách
   field và trạng thái focus (Task 50.1). Theo đúng pattern đã dùng ở Trang
   chủ (home.css .dhtd-cta__form), chỉ đổi tên class để scope riêng trang này. */
.dhtd-contact-form .ff-el-group {
  margin-bottom: 18px;
}
.dhtd-contact-form .ff-el-input--label label,
.dhtd-contact-form label.ff-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dhtd-navy);
  margin-bottom: 6px;
}
.dhtd-contact-form .ff-el-form-control,
.dhtd-contact-form select.ff-el-form-control,
.dhtd-contact-form textarea.ff-el-form-control {
  border: 1px solid var(--dhtd-border);
  border-radius: 8px;
  background-color: var(--dhtd-white);
  min-height: 48px;
  padding: 10px 14px;
  font-size: 0.9375rem;
  color: var(--dhtd-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.dhtd-contact-form textarea.ff-el-form-control {
  min-height: 120px;
  padding-top: 12px;
}
.dhtd-contact-form select.ff-el-form-control {
  height: 48px;
}
.dhtd-contact-form .ff-el-form-control:focus {
  border-color: var(--dhtd-sky);
  box-shadow: 0 0 0 3px rgba(46, 143, 206, 0.15);
  outline: none;
}
.dhtd-contact-form .ff-btn-submit,
.dhtd-contact-form button[type="submit"] {
  display: block;
  width: 100%;
  background-color: var(--dhtd-gold) !important;
  border-color: var(--dhtd-gold) !important;
  color: var(--dhtd-navy) !important;
  font-weight: 700 !important;
  min-height: 50px;
  border-radius: 8px !important;
}
.dhtd-contact-form .ff-btn-submit:hover,
.dhtd-contact-form button[type="submit"]:hover {
  background-color: var(--dhtd-gold-hover) !important;
  border-color: var(--dhtd-gold-hover) !important;
}

.dhtd-contact-info-panel {
  padding: 40px;
  border-left: 1px solid var(--dhtd-border);
  background: var(--dhtd-light-bg);
  /* Task 50.1: panel bị kéo dãn bằng chiều cao form (align-items: stretch
   * trên .dhtd-contact-main-grid__inner) nên nội dung info thường ngắn hơn
   * form rất nhiều → căn giữa theo chiều dọc để khoảng trắng dư chia đều
   * trên/dưới thay vì dồn hết xuống đáy. */
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dhtd-contact-info-list {
  font-style: normal; /* <address> mặc định italic — không hợp design */
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
.dhtd-contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--dhtd-border);
}
.dhtd-contact-info-item:first-child {
  padding-top: 0;
}
.dhtd-contact-info-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}
.dhtd-contact-info-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--dhtd-white);
  border: 1px solid var(--dhtd-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dhtd-navy);
}
.dhtd-contact-info-icon .dhtd-icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}
.dhtd-contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 2px;
}
.dhtd-contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dhtd-muted);
}
.dhtd-contact-info-item a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dhtd-navy);
  text-decoration: none;
}
.dhtd-contact-info-item a:hover {
  color: var(--dhtd-sky);
  text-decoration: underline;
}
.dhtd-contact-info-text {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--dhtd-text);
}

@media (max-width: 900px) {
  .dhtd-contact-main-grid__inner {
    grid-template-columns: 1fr;
  }
  .dhtd-contact-form-panel { padding: 28px; }
  .dhtd-contact-info-panel {
    padding: 28px;
    border-left: 0;
    border-top: 1px solid var(--dhtd-border);
  }
}
@media (max-width: 600px) {
  .dhtd-contact-form-panel { padding: 22px; }
  .dhtd-contact-info-panel { padding: 22px; }
  .dhtd-contact-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .dhtd-contact-hero__art { max-width: 280px; min-height: 0; margin-top: 32px; }
}

/* ==================================================================
 * 3. Vì sao nên liên hệ DHTD? — MỘT container chung, 4 cột + đường
 *    phân cách nhẹ (Task 50.1). Khung card chuyển lên
 *    .dhtd-contact-reasons__grid (div bọc ngoài có sẵn từ Task 50);
 *    từng "card" con chỉ còn là ô nội dung, phân cách bằng border.
 * ================================================================== */
.dhtd-contact-reasons {
  padding: var(--dhtd-section-space) 0; /* Task 54: 88px→chuẩn */
  background: var(--dhtd-light-bg);
}
.dhtd-contact-reasons__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--dhtd-white);
  border: 1px solid var(--dhtd-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(22, 62, 124, 0.06);
  overflow: hidden;
}
.dhtd-contact-reasons__card {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 36px 26px;
  text-align: center;
  border-right: 1px solid var(--dhtd-border);
}
.dhtd-contact-reasons__card:last-child {
  border-right: 0;
}
.dhtd-contact-reasons__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--dhtd-light-bg);
  color: var(--dhtd-navy);
  margin: 0 auto 18px;
}
.dhtd-contact-reasons__icon .dhtd-icon-svg {
  width: 24px;
  height: 24px;
  display: block;
}
.dhtd-contact-reasons__title {
  font-size: 1.0625rem;
  color: var(--dhtd-navy);
  margin: 0 0 10px;
}
.dhtd-contact-reasons__desc {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--dhtd-muted);
  margin: 0;
}
@media (max-width: 900px) {
  .dhtd-contact-reasons__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dhtd-contact-reasons__card {
    border-right: 1px solid var(--dhtd-border);
    border-bottom: 1px solid var(--dhtd-border);
  }
  .dhtd-contact-reasons__card:nth-child(2n) { border-right: 0; }
  .dhtd-contact-reasons__card:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 480px) {
  .dhtd-contact-reasons__grid { grid-template-columns: 1fr; }
  .dhtd-contact-reasons__card {
    border-right: 0;
    border-bottom: 1px solid var(--dhtd-border);
  }
  .dhtd-contact-reasons__card:last-child { border-bottom: 0; }
}

/* ==================================================================
 * 4. Vị trí văn phòng — minh hoạ bản đồ CSS/SVG chỉn chu hơn (Task 50.1)
 * ================================================================== */
.dhtd-contact-location {
  padding: var(--dhtd-section-space) 0; /* Task 54: 88px→chuẩn */
  background: var(--dhtd-white);
}
.dhtd-contact-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: center;
}
.dhtd-contact-location__address {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--dhtd-text);
  max-width: 42ch;
  margin: 16px 0 28px;
}

/* Minh hoạ bản đồ TĨNH (CSS/SVG) — không phải bản đồ thật, không nhúng
   Google Maps API/API key/plugin bản đồ (đúng yêu cầu ticket). Task 50.1:
   thêm mảng "công viên" (::before/::after, thuần CSS) + nhãn "DHTD" cạnh
   pin (content CSS, phần tử cha đã aria-hidden="true" nên không ảnh hưởng
   accessibility) để gần tinh thần mockup hơn, không thêm markup/ảnh mới. */
.dhtd-contact-map-illustration {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--dhtd-light-bg);
  border: 1px solid var(--dhtd-border);
}
/* "Công viên" — 2 mảng bo góc màu xanh lá nhạt, thuần trang trí. */
.dhtd-contact-map-illustration::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 6%;
  width: 22%;
  height: 30%;
  border-radius: 10px;
  background: #E4F2E9;
}
.dhtd-contact-map-illustration::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 8%;
  width: 26%;
  height: 24%;
  border-radius: 10px;
  background: #E4F2E9;
}
.dhtd-contact-map-illustration__road {
  position: absolute;
  background: var(--dhtd-white);
  box-shadow: 0 0 0 1px rgba(22, 62, 124, 0.04);
}
.dhtd-contact-map-illustration__road--1 {
  top: 26%;
  left: 0;
  width: 100%;
  height: 16px;
  transform: rotate(-4deg);
}
.dhtd-contact-map-illustration__road--2 {
  top: 0;
  left: 42%;
  width: 14px;
  height: 100%;
  transform: rotate(3deg);
}
.dhtd-contact-map-illustration__road--3 {
  bottom: 12%;
  left: 0;
  width: 68%;
  height: 12px;
  transform: rotate(2deg);
}
.dhtd-contact-map-illustration__road--4 {
  top: 0;
  right: 12%;
  width: 10px;
  height: 60%;
  transform: rotate(-6deg);
}
.dhtd-contact-map-illustration__pin {
  position: absolute;
  top: 48%;
  left: 50%;
  width: 44px;
  height: auto;
  transform: translate(-50%, -70%);
  filter: drop-shadow(0 4px 6px rgba(22, 62, 124, 0.35));
  z-index: 2;
}
.dhtd-contact-map-illustration__pin-label {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, 6px);
  background: var(--dhtd-navy);
  color: var(--dhtd-white);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 2;
}

@media (max-width: 900px) {
  .dhtd-contact-location__grid { grid-template-columns: 1fr; }
  .dhtd-contact-location__content { order: 1; }
  .dhtd-contact-location__map { order: 2; }
}
