/* HZ Group v2 — Bổ sung cho trang Nhà ở xã hội KCN Hàm Kiệm II
   Kế thừa toàn bộ base.css, pages/company.css và pages/kcn.css để đồng bộ 100% giao diện. */

/* Đảm bảo mọi SVG trong nút/khung tùy chỉnh không bao giờ bị phóng to */
.noxh-orbit svg,
.noxh-modal svg,
.noxh-lightbox svg,
.hzs-formcard svg {
  width: 20px;
  height: 20px;
  flex: none;
}

/* ---------- Nút phụ trên Hero ---------- */
.co-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

/* ---------- Khung xoay 3D đa góc trong phần Tổng quan (.co-intro) ---------- */
.noxh-orbit {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid #cddce6;
  box-shadow: 0 12px 32px rgba(18, 50, 74, .08);
}
.noxh-orbit__stage {
  position: relative;
  aspect-ratio: 16 / 10;
  cursor: grab;
  user-select: none;
  overflow: hidden;
  background: #072238;
}
.noxh-orbit__stage.is-dragging { cursor: grabbing; }
.noxh-orbit__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
}
.noxh-orbit__frame.is-active { opacity: 1; }
.noxh-orbit__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(8, 43, 71, .82);
  border: 1px solid rgba(255, 255, 255, .2);
  font: 600 12px/1 var(--font);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.noxh-orbit__badge svg { width: 15px; height: 15px; color: var(--green); }
.noxh-orbit__expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(8, 43, 71, .85);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  transition: transform .2s, background-color .2s;
}
.noxh-orbit__expand:hover {
  background: var(--blue);
  transform: scale(1.05);
}
.noxh-orbit__expand svg { width: 18px; height: 18px; stroke: #fff; }
.noxh-orbit__hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(8, 43, 71, .82);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .94);
  font-size: 12px;
  pointer-events: none;
  transition: opacity .3s;
  white-space: nowrap;
}
.noxh-orbit__hint svg {
  width: 15px;
  height: 15px;
  flex: none;
  color: var(--green);
}
.noxh-orbit__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 8px;
  background: #0a263d;
}
.noxh-orbit__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 5px;
  font: 500 13px/1.3 var(--font);
  color: rgba(255, 255, 255, .75);
  text-align: center;
  transition: all .2s;
}
.noxh-orbit__btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.noxh-orbit__btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.noxh-orbit__btn.is-active {
  background: var(--blue);
  color: #fff;
  font-weight: 600;
}
.noxh-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.noxh-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid #cddce6;
  cursor: pointer;
}
.noxh-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s var(--ease);
}
.noxh-thumb:hover img { transform: scale(1.05); }
.noxh-thumb span {
  position: absolute;
  inset: auto 0 0 0;
  padding: 4px 6px;
  background: linear-gradient(180deg, transparent, rgba(8, 43, 71, .88));
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}
.noxh-thumb--more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--blue);
  font-weight: 600;
}
.noxh-thumb--more strong { font-size: 18px; }
.noxh-thumb--more small { font-size: 12px; color: var(--slate); }

/* ---------- Section 3: Danh mục 18 hạng mục tiện ích & 6 thẻ tiện ích (#tien-ich) ---------- */
.kcn-ind__list.noxh-ind-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.kcn-ind__list.noxh-ind-grid > li.noxh-ind-item,
.kcn-ind__list.noxh-ind-grid > li.noxh-ind-item:nth-child(even) {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 70px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid #e1ebf2;
  transition: transform .25s var(--ease), border-color .25s, box-shadow .25s;
}
.kcn-ind__list.noxh-ind-grid > li.noxh-ind-item:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(18, 50, 74, .07);
}
.noxh-ind-item .kcn-ind__num {
  display: grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eaf3fa;
  font: 700 13.5px/1 var(--font);
  color: var(--blue);
  transition: background-color .25s, color .25s, transform .25s;
}
.noxh-ind-item:hover .kcn-ind__num {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.06);
}
.noxh-ind-item__body {
  flex: 1;
  min-width: 0;
}
.noxh-ind-item__body h3 {
  max-width: none !important;
  margin: 0;
  font: 600 15.5px/1.3 var(--font);
  color: var(--navy);
  transition: color .2s;
}
.noxh-ind-item:hover .noxh-ind-item__body h3 {
  color: var(--blue);
}
.noxh-ind-item__body p {
  margin: 3px 0 0;
  font: 400 13px/1.4 var(--font);
  color: var(--slate-2);
}

/* 6 Thẻ phối cảnh tiện ích nội khu căn đều tiêu đề & mô tả */
.kcn-eco__grid.noxh-eco-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.kcn-eco__card.noxh-eco-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  cursor: pointer;
  transition:
    opacity .7s var(--ease) var(--eco-delay, 0ms),
    transform .35s var(--ease),
    box-shadow .35s var(--ease),
    border-color .35s var(--ease);
}
.kcn-eco__card.noxh-eco-card::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.kcn-eco__card.noxh-eco-card:hover {
  border-color: #b7d2e6;
  box-shadow: 0 18px 40px rgba(18, 50, 74, .11);
  transform: translateY(-5px);
}
.kcn-eco__card.noxh-eco-card:hover::after {
  transform: scaleX(1);
}
.noxh-eco-card__media {
  position: relative;
  width: 100%;
  height: 220px;
  flex: none;
  overflow: hidden;
  background: #dfe9f1;
}
.noxh-eco-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 43, 71, .28) 0%, rgba(8, 43, 71, 0) 42%, rgba(8, 43, 71, .35) 100%);
  pointer-events: none;
}
.noxh-eco-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--ease);
}
.kcn-eco__card.noxh-eco-card:hover .noxh-eco-card__media img {
  transform: scale(1.06);
}
.noxh-eco-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(8, 43, 71, .78);
  border: 1px solid rgba(255, 255, 255, .24);
  font: 600 11.5px/1.2 var(--font);
  color: var(--white);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.noxh-eco-card__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  box-shadow: 0 4px 12px rgba(8, 43, 71, .2);
  transition: background-color .25s, color .25s, transform .25s;
}
.noxh-eco-card__zoom svg {
  width: 17px;
  height: 17px;
  flex: none;
}
.kcn-eco__card.noxh-eco-card:hover .noxh-eco-card__zoom {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.08);
}
.noxh-eco-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}
.kcn-eco__card.noxh-eco-card .noxh-eco-card__body h3 {
  padding: 0;
  margin: 0 0 10px;
  min-height: 28px;
  display: flex;
  align-items: center;
  font: 600 20.5px/1.32 var(--font-head);
  letter-spacing: -.02em;
  color: var(--navy);
  transition: color .2s;
}
.kcn-eco__card.noxh-eco-card:hover .noxh-eco-card__body h3 {
  color: var(--blue);
}
.kcn-eco__card.noxh-eco-card .noxh-eco-card__body p {
  padding: 0;
  margin: 0;
  flex: 1;
  font: 400 15.5px/1.62 var(--font);
  color: var(--slate);
}

/* ---------- Section Block B2 & Các loại căn hộ (#can-ho) ---------- */
.noxh-apt-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
  margin-bottom: 24px;
}
.noxh-apt-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  min-height: 92px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: left;
  color: var(--slate);
  overflow: hidden;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.noxh-apt-tab__num {
  display: block;
  font: 600 12px/1.3 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}
.noxh-apt-tab__name {
  display: block;
  font: 600 17px/1.3 var(--font-head);
  color: var(--navy);
}
.noxh-apt-tab__meta {
  display: block;
  font: 400 13px/1.4 var(--font);
  color: var(--slate-2);
}
.noxh-apt-tab:hover {
  background: #e7f1f8;
  border-color: #c7dbe8;
}
.noxh-apt-tab:hover .noxh-apt-tab__name {
  color: var(--blue);
}
.noxh-apt-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(23, 114, 184, .2);
}
.noxh-apt-tab.is-active .noxh-apt-tab__num {
  color: rgba(255, 255, 255, .85);
}
.noxh-apt-tab.is-active .noxh-apt-tab__name {
  color: var(--white);
}
.noxh-apt-tab.is-active .noxh-apt-tab__meta {
  color: rgba(255, 255, 255, .88);
}
.noxh-apt-panel[hidden] {
  display: none !important;
}
.noxh-apt-panel:not([hidden]) {
  animation: kcn-fade .35s var(--ease);
}

.noxh-unit-card {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 44px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
  align-items: center;
}
.noxh-unit-card__plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.noxh-unit-card__plan:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 24px rgba(18, 50, 74, .07);
}
.noxh-unit-card__plan img {
  width: 100%;
  max-width: 380px;
  height: 340px;
  object-fit: contain;
  margin: 0 auto;
}
.noxh-unit-card__plan small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf6fc;
  font: 500 12.5px/1.3 var(--font);
  color: var(--blue);
  transition: background-color .2s, color .2s;
}
.noxh-unit-card__plan small svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.noxh-unit-card__plan:hover small {
  background: var(--blue);
  color: var(--white);
}
.noxh-unit-card__body {
  min-width: 0;
}
.noxh-unit-card__title {
  font: 500 28px/1.28 var(--font-head);
  letter-spacing: -.02em;
  color: var(--navy);
  margin-top: 8px;
}
.noxh-unit-card__desc {
  margin-top: 10px;
  font: 400 16px/1.62 var(--font);
  color: var(--slate);
}
.noxh-unit-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
  padding: 18px 20px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.noxh-unit-card__specs > div + div {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}
.noxh-unit-card__specs dt {
  font-size: 13px;
  color: var(--slate);
}
.noxh-unit-card__specs dd {
  margin-top: 4px;
  font: 600 19px/1.25 var(--font-head);
  color: var(--blue);
}
.noxh-unit-card__photos-label {
  margin-bottom: 10px;
  font: 600 12.5px/1.4 var(--font);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--slate);
}
.noxh-unit-card__photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.noxh-unit-card__photos img {
  display: block;
  width: 100%;
  height: 128px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .2s;
}
.noxh-unit-card__photos img:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  box-shadow: 0 6px 16px rgba(18, 50, 74, .1);
}
.noxh-unit-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Mặt bằng tầng điển hình trong Tab 04 */
.noxh-fp-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.noxh-fp-card__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.noxh-fp-card__img {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
}
.noxh-fp-card__img img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  margin: 0 auto;
}
.noxh-fp-card__img small {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #edf6fc;
  font: 500 12.5px/1.3 var(--font);
  color: var(--blue);
  transition: background-color .2s, color .2s;
}
.noxh-fp-card__img small svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.noxh-fp-card__img:hover small {
  background: var(--blue);
  color: var(--white);
}

/* ---------- 2 Công cụ tính (Kiểm tra điều kiện & Tính trả góp) ---------- */
.noxh-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.noxh-tool {
  padding: 32px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.noxh-tool h3 {
  font: 500 22px/1.3 var(--font-head);
  color: var(--navy);
}
.noxh-tool__sub {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--slate);
}
.noxh-tool__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 18px;
}
.noxh-tool__field label {
  display: block;
  margin-bottom: 6px;
  font: 500 13.5px/1.4 var(--font);
  color: var(--slate-3);
}
.noxh-tool__field select,
.noxh-tool__field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 14.5px;
  color: var(--navy);
}
.noxh-tool__result {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border-left: 3px solid var(--blue);
  font-size: 14.5px;
  color: var(--navy);
}
.noxh-tool__result.is-ok {
  background: #f1f9eb;
  border-left-color: var(--green);
}
.noxh-tool__result.is-warn {
  background: #fff8eb;
  border-left-color: #d9822b;
}
.noxh-loan-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.noxh-loan-bar dt {
  font-size: 12px;
  color: var(--slate);
}
.noxh-loan-bar dd {
  margin-top: 4px;
  font: 600 18px/1.25 var(--font-head);
  color: var(--blue);
}

/* ---------- Cảnh báo giả mạo ---------- */
.noxh-warning {
  margin-top: 40px;
  padding: 22px 26px;
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid #cddce6;
  border-left: 4px solid var(--blue);
  font-size: 14.5px;
  color: var(--navy);
}
.noxh-warning strong {
  display: block;
  font: 500 18px/1.35 var(--font-head);
  color: var(--navy);
  margin-bottom: 6px;
}

/* ---------- POPUP MODAL PHIẾU KHẢO SÁT MẪU B (16 CÂU) ---------- */
.noxh-modal {
  width: min(880px, calc(100vw - 24px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 24px 64px rgba(8, 43, 71, .35);
  overflow: hidden;
}
.noxh-modal::backdrop {
  background: rgba(8, 43, 71, .72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.noxh-modal__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--navy-deep);
  color: var(--white);
}
.noxh-modal__bar strong {
  font: 500 16px/1.3 var(--font-head);
}
.noxh-modal__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font: 500 13px/1 var(--font);
}
.noxh-modal__close:hover { background: rgba(255, 255, 255, .22); }
.noxh-modal__close svg { width: 16px; height: 16px; }
.noxh-modal__body {
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  padding: 24px;
  background: linear-gradient(180deg, #eff7fc 0%, #ffffff 100%);
}

/* Form Card Mẫu B bên trong Modal */
.hzs-formcard {
  padding: 32px 30px;
  background: var(--white);
  border: 1px solid #cddce6;
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(18, 50, 74, .05);
}
.hzs-formcard__docmeta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px dashed #cddce6;
  font-size: 13px;
  line-height: 1.45;
  color: var(--slate);
}
.hzs-formcard__issuer strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
}
.hzs-formcard__formcode { text-align: right; }
.hzs-formcard__formcode strong {
  display: inline-block;
  padding: 3px 12px;
  margin-bottom: 3px;
  border-radius: 999px;
  background: #e7f2fa;
  color: var(--blue);
  font-size: 12.5px;
  font-weight: 700;
}
.hzs-formcard__formcode span {
  display: block;
  font-size: 12px;
  font-style: italic;
  color: var(--slate-2);
}
.hzs-formcard__head { text-align: center; }
.hzs-formcard__title {
  font: 600 22px/1.3 var(--font-head);
  color: var(--navy);
  text-transform: uppercase;
}
.hzs-formcard__sub {
  margin-top: 6px;
  font-size: 14px;
  font-style: italic;
  color: var(--slate);
}
.hzs-letter {
  margin-top: 16px;
  padding: 15px 18px;
  border: 1px solid #bcd4e6;
  border-radius: var(--radius);
  background: #f5fafe;
  font-size: 14px;
  line-height: 1.62;
  color: var(--navy);
}
.hzs-modebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  padding: 9px 14px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.hzs-modebar__label { font-size: 13px; font-weight: 600; color: var(--slate); }
.hzs-modebar__btns {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: 6px;
  background: #dce8f2;
}
.hzs-modebar__btn {
  padding: 6px 12px;
  border-radius: 5px;
  font: 600 12.5px/1.3 var(--font);
  color: var(--slate);
  transition: all .2s;
}
.hzs-modebar__btn.is-active {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 2px 6px rgba(18, 50, 74, .08);
}
.hzs-progress { margin: 18px 0 8px; }
.hzs-progress[hidden] { display: none; }
.hzs-progress__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.hzs-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width .35s var(--ease);
}
.hzs-progress__label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-2);
}
.hzs-step[hidden] { display: none; }
.hzs-form[data-hzs-mode="all"] .hzs-step + .hzs-step {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px dashed var(--line);
}
.hzs-step__title {
  margin-top: 18px;
  padding: 8px 14px;
  border-left: 4px solid var(--blue);
  border-radius: 0 6px 6px 0;
  background: #eef6fc;
  font: 500 18px/1.35 var(--font-head);
  color: var(--navy);
}
.hzs-step__intro {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--slate-2);
}
.hzs-q {
  min-width: 0;
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}
.hzs-q__legend {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0;
  margin-bottom: 6px;
  font: 600 15px/1.45 var(--font);
  color: var(--navy);
}
.hzs-q__no {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  flex: none;
  border-radius: 50%;
  background: #e7f2fa;
  color: var(--blue);
  font: 700 12px/1 var(--font);
}
.hzs-req { color: #c23b2a; text-decoration: none; }
.hzs-help {
  margin: 0 0 10px 35px;
  font-size: 13px;
  color: var(--slate-2);
}
.hzs-q > .hzs-field,
.hzs-q > .hzs-row {
  margin-left: 35px;
}
.hzs-field { margin-top: 12px; }
.hzs-field[hidden] { display: none; }
.hzs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hzs-row .hzs-field { margin-top: 0; }
.hzs-label,
.hzs-sublabel {
  display: block;
  margin-bottom: 6px;
  font: 500 13.5px/1.4 var(--font);
  color: var(--slate-3);
}
.hzs-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid #cbd9e4;
  border-radius: var(--radius);
  font: 400 15px/1.35 var(--font);
  color: var(--navy);
}
.hzs-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 114, 184, .14);
}
.hzs-textarea { min-height: 90px; resize: vertical; }
.hzs-select {
  cursor: pointer;
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2312324a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
}
.hzs-field--select {
  padding: 10px 14px 12px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #f4f9fd;
}
.hzs-field.has-error .hzs-input {
  border-color: #c23b2a;
  background: #fff8f7;
}
.hzs-error {
  margin-top: 5px;
  font-size: 12.5px;
  color: #c23b2a;
}
.hzs-error[hidden] { display: none; }
.hzs-choices { display: grid; gap: 8px; }
.hzs-choices--grid { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.hzs-choices--stack { grid-template-columns: 1fr; }
.hzs-choice {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #cbd9e4;
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  font-size: 14px;
  line-height: 1.38;
  color: var(--navy);
}
.hzs-choice:hover { border-color: var(--blue); background: #fff; }
.hzs-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.hzs-choice__mark {
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  flex: none;
  border: 1.5px solid #b2c6d6;
  border-radius: 50%;
  background: #fff;
  color: transparent;
}
.hzs-choices[role="group"] .hzs-choice__mark { border-radius: 4px; }
.hzs-choice__mark svg { width: 12px; height: 12px; }
.hzs-choice:has(input:checked) {
  border-color: var(--blue);
  background: #eef6fc;
  box-shadow: 0 0 0 1px var(--blue) inset;
}
.hzs-choice input:checked + .hzs-choice__mark {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.hzs-choice.is-disabled { opacity: .5; cursor: not-allowed; }
.hzs-consent {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 13.5px;
  line-height: 1.58;
}
.hzs-consent ul {
  display: grid;
  gap: 8px;
  margin: 10px 0 0 18px;
  list-style: disc;
}
.hzs-q--consent { margin-top: 14px; }
.hzs-q--consent .hzs-field { margin: 10px 0 0; }
.hzs-check {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  font-size: 14px;
  color: var(--navy);
}
.hzs-check input { position: absolute; opacity: 0; width: 20px; height: 20px; }
.hzs-check__box {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  border: 1.5px solid #b2c6d6;
  border-radius: 4px;
  background: #fff;
  color: transparent;
}
.hzs-check__box svg { width: 13px; height: 13px; }
.hzs-check input:checked + .hzs-check__box {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.hzs-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hzs-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.hzs-actions [hidden] { display: none !important; }
.hzs-actions [data-hzs-next],
.hzs-actions [data-hzs-submit] {
  margin-left: auto;
}

/* ---------- LIGHTBOX ---------- */
.noxh-lightbox {
  width: min(1140px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: var(--radius-lg);
  background: #061d30;
  color: #fff;
  overflow: hidden;
}
.noxh-lightbox::backdrop { background: rgba(4, 20, 34, .85); }
.noxh-lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: rgba(8, 43, 71, .92);
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.noxh-lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
  max-height: calc(100vh - 130px);
  padding: 16px;
}
.noxh-lightbox__stage img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 4px;
}
.noxh-lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .25);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background-color .2s, transform .2s;
}
.noxh-lightbox__nav svg {
  width: 22px;
  height: 22px;
}
.noxh-lightbox__nav:hover { background: var(--blue); }
.noxh-lightbox__nav--prev { left: 16px; }
.noxh-lightbox__nav--next { right: 16px; }

/* ---------- BẢN XEM TRƯỚC & BẢN IN PHIẾU KHẢO SÁT MẪU B (16 CÂU) ---------- */
.hzs-print-sheet {
  display: none;
}
.hzs-done-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 22px;
  border-radius: var(--radius-lg);
  background: #f0f9eb;
  border: 1px solid #b8e0a2;
}
.hzs-done-banner__info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 240px;
}
.hzs-done-banner__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #477e27;
  color: #fff;
}
.hzs-done-banner__info h3 {
  margin: 0;
  font: 600 18px/1.3 var(--font-head);
  color: #1e4610;
}
.hzs-done-banner__info p {
  margin: 4px 0 0;
  font: 400 14px/1.45 var(--font);
  color: #2c5b1b;
}
.hzs-done-banner__info strong {
  font-weight: 700;
  color: var(--navy);
  background: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px dashed #477e27;
}
.hzs-sheet-preview {
  padding: 28px 30px;
  background: #fff;
  border: 1px solid #cbd9e4;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 18px rgba(18, 50, 74, .05);
}

/* Định dạng chuẩn văn bản Mẫu B (dùng chung cho cả khung xem trước và bản in A4) */
.hzs-ps {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13.5px;
  line-height: 1.48;
  color: #000;
}
.hzs-ps__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 10px;
}
.hzs-ps__issuer strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
}
.hzs-ps__issuer span {
  display: block;
  font-size: 13px;
}
.hzs-ps__code {
  text-align: right;
}
.hzs-ps__code strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}
.hzs-ps__code span {
  display: block;
  font-size: 13px;
  font-style: italic;
}
.hzs-ps__code b {
  font-style: normal;
  font-weight: 700;
}
.hzs-ps__head {
  text-align: center;
  margin: 8px 0 10px;
}
.hzs-ps__head h2 {
  margin: 0;
  font-family: 'Times New Roman', Times, serif;
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #000;
}
.hzs-ps__head p {
  margin: 3px 0 0;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}
.hzs-ps__letter {
  padding: 8px 12px;
  border: 1px solid #333;
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.45;
  text-align: justify;
}
.hzs-ps__sec {
  margin-top: 10px;
}
.hzs-ps__sectitle {
  margin: 0 0 6px;
  padding: 4px 8px;
  background: #e9ecef;
  font-family: 'Times New Roman', Times, serif;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
}
.hzs-ps__sectitle span {
  font-weight: 400;
  font-style: italic;
  text-transform: none;
  font-size: 12.5px;
}
.hzs-ps__q {
  margin-bottom: 7px;
  page-break-inside: avoid;
}
.hzs-ps__qlabel {
  font-size: 13.5px;
  margin-bottom: 3px;
}
.hzs-ps__qlabel em {
  font-weight: 400;
  font-size: 12.5px;
}
.hzs-ps__qbody {
  padding-left: 14px;
}
.hzs-ps__textline {
  display: inline-block;
  margin-right: 22px;
  margin-bottom: 4px;
}
.hzs-ps__flbl {
  font-weight: 600;
}
.hzs-ps__fval {
  display: inline-block;
  min-width: 150px;
  padding: 0 4px;
  border-bottom: 1px dotted #333;
  font-weight: 700;
  color: #082b47;
}
.hzs-ps__dots {
  font-weight: 400;
  color: #777;
}
.hzs-ps__sublbl {
  font-weight: 600;
  margin: 3px 0 2px;
}
.hzs-ps__opts {
  display: flex;
  flex-wrap: wrap;
  column-gap: 18px;
  row-gap: 4px;
  margin-bottom: 3px;
}
.hzs-ps__opts--stack {
  flex-direction: column;
  row-gap: 5px;
}
.hzs-ps__opt {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  font-size: 13px;
}
.hzs-ps__opt.is-checked {
  font-weight: 700;
}
.hzs-ps__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border: 1.2px solid #000;
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  transform: translateY(1px);
}
.hzs-ps__consent p {
  margin: 0 0 6px;
  font-size: 12.5px;
  text-align: justify;
}
.hzs-ps__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px solid #333;
  page-break-inside: avoid;
}
.hzs-ps__footcol {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}
.hzs-ps__footcol--sign {
  text-align: center;
  min-width: 220px;
}
.hzs-ps__signname {
  margin-top: 28px;
  font-weight: 700;
  font-size: 13.5px;
}

/* Khi bấm In (Ctrl+P hoặc nút In / Lưu Phiếu khảo sát): ẩn toàn bộ giao diện web, chỉ in đúng tờ Phiếu Mẫu B */
@media print {
  @page {
    size: A4 portrait;
    margin: 10mm 12mm;
  }
  html, body {
    background: #fff !important;
    color: #000 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }
  body.has-hzs-print > *:not(#hzs-print-sheet) {
    display: none !important;
  }
  body.has-hzs-print #hzs-print-sheet {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .hzs-ps {
    font-size: 12px;
    line-height: 1.38;
  }
  .hzs-ps__head h2 {
    font-size: 15.5px;
  }
  .hzs-ps__letter {
    padding: 6px 10px;
    margin-bottom: 8px;
    font-size: 11.5px;
  }
  .hzs-ps__sec {
    margin-top: 7px;
  }
  .hzs-ps__sectitle {
    padding: 3px 6px;
    margin-bottom: 4px;
    font-size: 12px;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hzs-ps__q {
    margin-bottom: 4px;
  }
  .hzs-ps__qlabel,
  .hzs-ps__opt {
    font-size: 12px;
  }
}

@media (max-width: 1179px) {
  .kcn-ind__list.noxh-ind-grid,
  .kcn-eco__grid.noxh-eco-grid,
  .noxh-apt-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .noxh-unit-card,
  .noxh-tools {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 639px) {
  .kcn-ind__list.noxh-ind-grid,
  .kcn-eco__grid.noxh-eco-grid,
  .noxh-apt-tabs,
  .noxh-tool__grid,
  .noxh-unit-card__specs,
  .noxh-loan-bar,
  .hzs-row {
    grid-template-columns: 1fr;
  }
  .noxh-unit-card {
    padding: 22px 18px;
    gap: 24px;
  }
  .noxh-unit-card__specs > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 10px;
  }
  .noxh-unit-card__photos img {
    height: 92px;
  }
  .noxh-fp-card__head {
    flex-direction: column;
    align-items: flex-start;
  }
  .noxh-modal__body { padding: 14px; }
  .hzs-formcard { padding: 20px 14px; }
  .hzs-q > .hzs-field,
  .hzs-q > .hzs-row,
  .hzs-help { margin-left: 0; }
  .hzs-formcard__docmeta { flex-direction: column; }
  .hzs-formcard__formcode { text-align: left; }
}
