/*
Theme Name: Hợp Nhất Land
Theme URI: https://staging.hopnhatland.vn
Author: Hợp Nhất Land
Description: Theme marketing Hợp Nhất Land — editorial, photo-forward.
Version: 1.4.18
Text Domain: hopnhatland
*/

/*
 * Thang cỡ chữ (site marketing: sàn 14px, thân bài 16px). Mọi cỡ chữ trong file này lấy từ đây —
 * không thêm cỡ lẻ; cần bậc mới thì thêm biến kèm lý do. Lỗi gốc (UAT 2026-11-12, U7): nhãn thẻ 12,5px,
 * menu 13,4px, tiêu đề chân trang 12,8px — mỗi chỗ bớt một chút cho vừa, cộng lại thành chữ phải nheo mắt.
 */
:root {
  --fs-sm: 0.875rem; /* 14px — nhãn, menu, chân trang */
  --fs-base: 1rem; /* 16px — thân bài, nút */
  --fs-lg: 1.125rem; /* 18px — tiêu đề thẻ, lời dẫn */
  --fs-xl: 1.5rem; /* 24px — tiêu đề mục */
  --fs-2xl: clamp(1.75rem, 3vw, 2.4rem); /* tiêu đề trang */
  --fs-hero: clamp(2.35rem, 5.2vw, 3.75rem); /* tiêu đề ảnh đầu trang chủ */

  --hnl-blue: #0a58a0;
  --hnl-blue-deep: #062f56;
  /* Đỏ thương hiệu #ed1b24 với chữ trắng chỉ 4,39:1 — nút dùng nấc đậm hơn (5,5:1). U9. */
  --hnl-red: #d0121b;
  --hnl-red-hover: #a90e16;
  --hnl-ink: #101820;
  --hnl-muted: #556677; /* 5,6:1 trên trắng */
  --hnl-line: #e6ebf0;
  --hnl-paper: #f7f9fb;
  --hnl-max: 1320px;
  --hnl-sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
  --hnl-display: "Pinyon Script", "Segoe Script", cursive;
  --z-header: 40;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--hnl-sans);
  color: var(--hnl-ink);
  background: #fff;
  line-height: 1.6;
  font-size: var(--fs-base);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--hnl-blue);
  text-decoration: none;
}

a:hover {
  color: var(--hnl-red);
}

:focus-visible {
  outline: 3px solid var(--hnl-blue);
  outline-offset: 2px;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  width: min(100% - 2.5rem, var(--hnl-max));
  margin-inline: auto;
}

/* ---------- Đầu trang: logo + menu (CRM nằm trong menu; hotline ở chân trang). ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--hnl-line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--hnl-ink);
  font-weight: 700;
  font-size: var(--fs-lg);
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--hnl-line);
  background: #fff;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
  color: var(--hnl-ink);
  cursor: pointer;
}

.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.primary-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--hnl-ink);
  font-weight: 500;
  font-size: var(--fs-sm);
  white-space: nowrap;
}

.primary-menu a:hover,
.primary-menu .current-menu-item > a {
  color: var(--hnl-blue);
}

/* CRM: nút trong menu, nổi hơn mục thường. */
.primary-menu .menu-crm a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hnl-red);
  border-radius: 6px;
  color: var(--hnl-red);
  font-weight: 600;
}

.primary-menu .menu-crm a:hover {
  background: var(--hnl-red);
  color: #fff;
}

/* ---------- Ảnh đầu trang chủ. U1 ---------- */

.hero {
  position: relative;
  color: #fff;
  min-height: min(72vh, 620px);
  display: grid;
  align-items: center;
  /* Lớp phủ đậm bên trái: chữ luôn đọc được bất kể ảnh dự án sáng hay tối. */
  background:
    linear-gradient(90deg, rgba(6, 47, 86, 0.94) 0%, rgba(6, 47, 86, 0.78) 42%, rgba(6, 47, 86, 0.2) 100%),
    var(--hero-image, none) center / cover no-repeat,
    var(--hnl-blue-deep);
}

.hero-inner {
  padding: 4.5rem 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

.hero p.hero-tagline {
  margin: 0 0 1.75rem;
  font-size: var(--fs-xl);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.3rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: var(--fs-base);
  border: 0;
  cursor: pointer;
}

.btn-primary {
  background: var(--hnl-red);
  color: #fff;
}

.btn-primary:hover {
  color: #fff;
  background: var(--hnl-red-hover);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

/* ---------- Giá trị cốt lõi (Tâm – Tín – Tài – Tầm, lấy từ site cũ) ---------- */

.values {
  padding: 3.25rem 0 0.5rem;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: stretch;
}

.values-grid li {
  display: flex;
  flex-direction: column;
  border-bottom: 3px solid var(--hnl-blue);
  padding-bottom: 1rem;
  min-width: 0;
}

.values-grid h3,
.values-glyph {
  margin: 0 0 0.55rem;
  font-family: var(--hnl-display);
  font-style: normal;
  font-weight: 400;
  font-size: clamp(3rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--hnl-blue-deep);
  /* Pinyon Script không có weight đậm — làm đậm bằng stroke mỏng + bóng nhẹ */
  -webkit-text-stroke: 1.15px var(--hnl-blue-deep);
  paint-order: stroke fill;
  text-shadow: 0.7px 0 0 var(--hnl-blue-deep), -0.7px 0 0 var(--hnl-blue-deep), 0 0.7px 0 var(--hnl-blue-deep);
}

/* Khối chữ dưới tiêu đề: đúng 3 dòng (cố định bằng <br>) ở cả 4 cột */
.values-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: calc(0.875rem * 1.5 * 3);
}

.values-copy p {
  margin: 0;
  color: var(--hnl-muted);
  font-size: 0.875rem; /* 14px — đủ chỗ 3 dòng đều ở 4 cột */
  line-height: 1.5;
}
/* ---------- Lĩnh vực hoạt động ---------- */

.services {
  padding: 3.25rem 0;
}

.services-head {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.services-head h2 {
  margin: 0 0 0.65rem;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--hnl-blue-deep);
}

.services-lead {
  margin: 0;
  color: var(--hnl-muted);
  font-size: var(--fs-base);
  line-height: 1.6;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-grid li {
  min-width: 0;
}

.services-grid h3 {
  margin: 0 0 0.55rem;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hnl-ink);
}

.services-grid p {
  margin: 0;
  color: var(--hnl-muted);
  font-size: var(--fs-base);
  line-height: 1.55;
}

.services-grid p + p {
  margin-top: 0.4rem;
}

.services-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 88, 160, 0.12);
  border-bottom: 3px solid var(--hnl-blue);
  padding: 1.1rem 1.1rem 1.15rem;
}

.services-item--featured {
  border-color: rgba(10, 88, 160, 0.22);
}



.services-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  padding: 1.15rem 1.25rem;
  background: #fff;
  border: 1px solid var(--hnl-line);
  border-left: 4px solid var(--hnl-blue);
}

.services-cta-copy {
  max-width: 36rem;
}

.services-cta-title {
  margin: 0 0 0.2rem;
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--hnl-ink);
  letter-spacing: -0.02em;
}

.services-cta-copy p {
  margin: 0;
  color: var(--hnl-muted);
  font-size: var(--fs-base);
}

.services-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}



/* ---------- Mục + thẻ ---------- */

.section {
  padding: 3.75rem 0;
}

.section-muted {
  background: var(--hnl-paper);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--hnl-line);
}

.section-head h2 {
  margin: 0;
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-head a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--hnl-muted);
  white-space: nowrap;
}

.section-head a:hover {
  color: var(--hnl-blue);
}

/* minmax(0, …) + min-width: 0: cột không bị ảnh bên trong nong ra (UAT U14 — /tin-tuc/ tràn ngang 1.900px). */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

.card {
  min-width: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card-media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--hnl-paper);
  border-radius: 4px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Thẻ chưa có ảnh đại diện: nền nhạt + logo mờ, không phải ô xanh trơn trông như ảnh lỗi. U5 */
.card-media--empty {
  display: grid;
  place-items: center;
  background: #eef2f6;
  border: 1px solid var(--hnl-line);
}

.card-media--empty img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.35;
}

.card-body {
  padding: 0.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.card-meta {
  color: var(--hnl-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.card-body h3 a {
  color: inherit;
}

.card-body h3 a:hover {
  color: var(--hnl-blue);
}

.card-excerpt {
  display: none;
}

/* ---------- Trang trong ---------- */

.page-hero {
  background: var(--hnl-blue-deep);
  color: #fff;
  padding: 2.75rem 0;
}

.page-hero h1 {
  margin: 0;
  font-size: var(--fs-2xl);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.2;
}

/* Ngày đăng / lời dẫn trên nền xanh đậm: trắng 80% (U8 — trước là xám 2,94:1). */
.page-hero-meta {
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.8);
}

.page-hero-lede {
  margin: 0.5rem 0 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.85);
}

.content-panel {
  padding: 2.5rem 0 3.25rem;
}

.content-narrow {
  max-width: 820px;
}

.entry-thumb {
  margin-bottom: 1.25rem;
  border-radius: 8px;
  overflow: hidden;
}

.entry-content {
  font-size: var(--fs-base);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content h2,
.entry-content h3 {
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.entry-content img {
  border-radius: 4px;
  margin: 1.1rem 0;
}

/* Bảng trong bài nằm trong khung cuộn riêng — trang không trượt ngang trên điện thoại. U3 */
.table-scroll {
  overflow-x: auto;
  margin: 1.1rem 0;
  -webkit-overflow-scrolling: touch;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
}

.table-scroll table {
  min-width: 32rem;
}

.entry-content td,
.entry-content th {
  border: 1px solid var(--hnl-line);
  padding: 0.5rem 0.65rem;
  overflow-wrap: normal;
}

/* ---------- Liên hệ ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.75rem;
}

.contact-card,
.form-card {
  border: 1px solid var(--hnl-line);
  border-radius: 8px;
  padding: 1.4rem;
  background: #fff;
}

.contact-card dt {
  font-weight: 700;
  margin-top: 0.85rem;
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--hnl-muted);
}

.contact-card dd {
  margin: 0.25rem 0 0;
  font-size: var(--fs-lg);
}

.form-card label {
  display: block;
  font-weight: 600;
  margin: 0.7rem 0 0.3rem;
  font-size: var(--fs-sm);
}

.form-card input,
.form-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #c9d2db;
  border-radius: 6px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: var(--fs-base);
}

.form-card button {
  margin-top: 1rem;
}

/* ---------- Dải kêu gọi + chân trang ---------- */

.cta-strip {
  padding: 0 0 3.75rem;
}

.cta-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  background: var(--hnl-blue-deep);
  color: #fff;
  border-radius: 8px;
}

.cta-strip-inner h2 {
  margin: 0 0 0.3rem;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
}

.cta-strip-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
}

.cta-strip-inner a:not(.btn) {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cta-strip .btn-primary {
  flex-shrink: 0;
}

.site-footer {
  background: #0b1520;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
}

.footer-grid--slim {
  grid-template-columns: minmax(0, 1fr);
  max-width: 40rem;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  color: #fff;
}

.site-footer h3 {
  margin: 0 0 0.75rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li a,
.site-footer p a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.footer-hotline {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-hotline-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-height: 56px;
  justify-content: center;
  color: #fff;
  text-decoration: none;
}

.footer-hotline-link:hover {
  color: #fff;
}

.footer-hotline-label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
}

.footer-hotline-number {
  font-size: var(--fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.footer-bottom {
  margin-top: 1.1rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
}

.pagination {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 0.75rem;
  border: 1px solid var(--hnl-line);
  border-radius: 6px;
  font-size: var(--fs-sm);
}

/* ---------- Dưới 1360px: menu gập (logo + đủ mục + CRM). ---------- */

@media (max-width: 1359px) {
  .nav-toggle {
    display: inline-flex;
  }

  .header-inner {
    flex-wrap: wrap;
  }

  .primary-nav {
    display: none;
    width: 100%;
  }

  .primary-nav.is-open {
    display: block;
  }

  .primary-menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.25rem 0 0.75rem;
    border-top: 1px solid var(--hnl-line);
  }

  .primary-menu a {
    padding: 0.7rem 0;
    font-size: var(--fs-base);
    border-bottom: 1px solid var(--hnl-line);
  }

  .primary-menu .menu-crm {
    padding-top: 0.75rem;
  }

  .primary-menu .menu-crm a {
    justify-content: center;
    width: 100%;
    border-bottom: none;
    min-height: 48px;
  }
}

@media (max-width: 960px) {
  .card-grid,
  .contact-grid,
  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .values-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero h1 {
    max-width: 16ch;
  }
}

@media (max-width: 560px) {
  .values-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    padding: 3.5rem 0;
  }

  .footer-hotline-number {
    font-size: var(--fs-lg);
  }

  /* Ảnh dự án trên màn hẹp: phủ đều cả khung vì chữ chiếm hết bề ngang. */
  .hero {
    background:
      linear-gradient(180deg, rgba(6, 47, 86, 0.82) 0%, rgba(6, 47, 86, 0.9) 100%),
      var(--hero-image, none) center / cover no-repeat,
      var(--hnl-blue-deep);
  }
}

/* ---------- Bong bóng liên hệ + form lead (theo site cũ) ---------- */

.hnl-float {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}


.hnl-float > * {
  pointer-events: auto;
}

.hnl-float-bubbles {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.hnl-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 52px;
  padding: 0 0.9rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  box-shadow: none;
}

.hnl-bubble:hover {
  color: #fff;
  filter: brightness(1.06);
}

.hnl-bubble--phone {
  position: relative;
  width: 56px;
  height: 56px;
  padding: 0;
  background: var(--hnl-red);
}

.hnl-bubble-ring {
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(208, 18, 27, 0.45);
  border-radius: 999px;
  animation: hnl-pulse 1.8s ease-out infinite;
}

.hnl-bubble-ico {
  position: relative;
  z-index: 1;
  display: inline-flex;
}

.hnl-bubble--zalo {
  background: #0068ff;
}

.hnl-bubble--form {
  background: var(--hnl-blue);
}

@keyframes hnl-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  70% { transform: scale(1.2); opacity: 0; }
  100% { transform: scale(1.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hnl-bubble-ring {
    animation: none;
  }
}

.hnl-lead {
  width: min(320px, calc(100vw - 2rem));
  padding: 1rem 1rem 1.1rem;
  border-radius: 10px;
  background: var(--hnl-red);
  color: #fff;
}

.hnl-lead[hidden] {
  display: none !important;
}

.hnl-lead-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.hnl-lead-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  text-transform: none;
}

.hnl-lead-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.hnl-lead-desc {
  margin: 0 0 0.85rem;
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}

.hnl-lead-form {
  display: grid;
  gap: 0.55rem;
}

.hnl-lead-form input {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 0;
  border-radius: 6px;
  font: inherit;
  color: var(--hnl-ink);
}

.hnl-lead-form .btn {
  width: 100%;
  margin-top: 0.15rem;
  background: #fff;
  color: var(--hnl-red);
  border-color: #fff;
}

.hnl-lead-form .btn:hover {
  background: rgba(255, 255, 255, 0.92);
  color: var(--hnl-red-hover);
}

.hnl-lead-msg {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: var(--fs-sm);
}

.hnl-lead-msg--ok {
  background: rgba(255, 255, 255, 0.18);
}

.hnl-lead-msg--err {
  background: rgba(0, 0, 0, 0.22);
}

/* Khách đã đóng panel (nhớ trong localStorage, gắn từ <head>): không tự bật lại khi sang trang/tab khác. */
.hnl-lead-dismissed .hnl-lead {
  display: none;
}

/* Lời cảm ơn thay chỗ form sau khi gửi. */
.hnl-lead-thanks .hnl-lead-msg {
  margin: 0;
  padding: 0.85rem 0.9rem;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.5;
}

.hnl-lead-msg:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.hnl-lead-form button[disabled],
.form-card button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

/* Form Liên hệ nền trắng: nền mờ của panel đỏ không thấy được. */
.form-card .hnl-lead-msg--ok {
  background: #e7f4ea;
  color: #1d5a2c;
}

.form-card .hnl-lead-msg--err {
  background: #fbe9e9;
  color: #8a1f1f;
}

/* Ô bẫy bot: ngoài màn hình (không dùng display:none — vài bot bỏ qua ô ẩn kiểu đó). */
.hnl-hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 560px) {
  .hnl-float {
    right: 0.65rem;
    bottom: 0.65rem;
  }

  .hnl-bubble {
    min-width: 48px;
    min-height: 48px;
  }

  .hnl-lead {
    width: min(300px, calc(100vw - 5.5rem));
  }
}
