/* =====================================================================
   AIDIMART · Mặt bằng — stylesheet chung
   Mobile-first: viết ở 360px trước, mở rộng bằng min-width.
   Mục lục:
     1. Tokens            7. Form UI kit
     2. Reset             8. Bản đồ
     3. Layout            9. Ảnh
     4. Header / nav     10. Nút gửi + sticky
     5. Hero             11. Trang cảm ơn / tra trạng thái
     6. Landing          12. Footer · desktop · reduced-motion
   ===================================================================== */

/* ============ 1. TOKENS ============================================== */
:root {
  /* Thương hiệu AIDIMART lấy từ logo */
  --brand: #106032;
  /* xanh rêu đậm — màu nhấn duy nhất (nút chính + focus) */
  --brand-dark: #0b431f;
  --brand-deep: #072f15;
  --brand-soft: #e8f1eb;
  --brand-tint: #f3f8f5;
  --yellow: #edc332;
  /* dấu nhấn phụ: CTA trên nền tối, gạch chân, số liệu */
  --yellow-dark: #d9ac1c;
  --yellow-soft: #fdf6dd;

  --ink: #16181c;
  --ink-2: #3c4149;
  --muted: #626973;
  /* đạt WCAG AA cả trên nền trắng lẫn nền xám nhạt */
  --on-dark: #d5e5da;
  /* chữ phụ trên nền xanh đậm */
  --line: #dfe3e8;
  --line-strong: #c3c9d1;
  --bg: #ffffff;
  --bg-alt: #f6f8f7;

  --err: #c0261f;
  --err-bg: #fdeceb;
  --warn: #8a5a00;
  --warn-bg: #fff6e0;

  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --tap: 44px;
  /* vùng chạm tối thiểu */

  --shell: 1140px;
  /* bề ngang tối đa toàn trang */
  --col: 700px;
  /* bề ngang cột form */
  --gut: 16px;
  /* lề ngang mobile */

  --shadow-sm: 0 1px 2px rgba(16, 24, 32, .06);
  --shadow-md: 0 4px 16px rgba(16, 24, 32, .08);
  --shadow-lg: 0 12px 40px rgba(7, 47, 21, .18);
}

/* ============ 2. RESET =============================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* [hidden] phải luôn thắng display:flex/grid — cả trang dùng nó để ẩn/hiện trường */
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI',
    Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  /* dưới 16px iOS tự zoom khi focus input */
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
dl,
dd {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

a {
  color: var(--brand);
  text-underline-offset: 2px;
}

/* Focus luôn nhìn thấy rõ — không bao giờ outline:none */
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.on-dark :focus-visible,
.hero :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--yellow);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============ 3. LAYOUT ============================================= */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.shell--narrow {
  max-width: 720px;
}

.section {
  padding: 44px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 5px 11px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.section__title {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 10px;
}

.section__lead {
  color: var(--ink-2);
  font-size: 16px;
  max-width: 62ch;
}

.section__head {
  margin-bottom: 24px;
}

/* ============ 4. HEADER / NAV ======================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  flex: none;
}

.brand__name {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.01em;
  line-height: 0;
  display: block;
  padding: 13px 0 5px 0;
}

.brand__tag {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.2;
}

.nav {
  display: none;
  margin-left: auto;
  align-items: center;
  gap: 26px;
}

.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 6px 0;
}

.nav a:hover {
  color: var(--brand);
}

.header-cta {
  margin-left: auto;
}

.nav+.header-cta {
  margin-left: 26px;
}

/* ============ 5. HERO ============================================== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, var(--brand-deep) 0%, var(--brand-dark) 45%, var(--brand) 100%);
  color: #fff;
}

/* hoa văn kẻ chéo rất nhạt — tĩnh, không animation */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 34px);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  right: -140px;
  top: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(237, 195, 50, .12);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding: 34px 0 38px;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .2);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero__eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex: none;
}

.hero h1 {
  font-size: clamp(28px, 7.4vw, 46px);
  line-height: 1.16;
  letter-spacing: -.025em;
  font-weight: 700;
  margin-bottom: 14px;
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}

.hero__lead {
  font-size: 16.5px;
  color: var(--on-dark);
  max-width: 54ch;
  margin-bottom: 22px;
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.stat__num {
  font-size: 22px;
  font-weight: 700;
  color: var(--yellow);
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 13px;
  color: var(--on-dark);
  line-height: 1.35;
}

/* Minh họa mặt bằng */
.hero__art {
  display: none;
  position: relative;
  z-index: 1;
}

.hero__art svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(var(--shadow-lg));
}

/* Bản gọn dùng cho trang form */
.hero--compact .hero__inner {
  padding: 26px 0 30px;
}

.hero--compact h1 {
  font-size: clamp(24px, 6vw, 34px);
}

.hero--compact .hero__lead {
  margin-bottom: 0;
  font-size: 15.5px;
}

.hero--compact .stat-row {
  margin-top: 20px;
  padding-top: 18px;
}

/* ============ 6. LANDING =========================================== */
/* Thẻ tiêu chí */
.cards {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.card__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}

.card__title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -.01em;
}

.card__num {
  font-size: 21px;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: -.02em;
  display: block;
  margin-bottom: 2px;
}

.card__text {
  font-size: 14.5px;
  color: var(--muted);
}

.soft-note {
  margin-top: 16px;
  padding: 13px 15px;
  background: var(--yellow-soft);
  border: 1px solid #f0dd9a;
  border-radius: var(--radius);
  font-size: 14.5px;
  color: #6b5310;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.soft-note svg {
  flex: none;
  margin-top: 2px;
}

/* Quy trình 4 bước */
.flow {
  display: grid;
  gap: 0;
  counter-reset: step;
}

.flow__item {
  display: flex;
  gap: 14px;
  padding-bottom: 22px;
  position: relative;
}

.flow__item::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 40px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.flow__item:last-child {
  padding-bottom: 0;
}

.flow__item:last-child::before {
  display: none;
}

.flow__badge {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
  z-index: 1;
}

.flow__title {
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 2px;
}

.flow__text {
  font-size: 14.5px;
  color: var(--muted);
}

.flow__when {
  display: inline-block;
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
  background: var(--brand-tint);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Ai gửi được */
.who {
  display: grid;
  gap: 10px;
}

.who__item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.who__item svg {
  flex: none;
  color: var(--brand);
  margin-top: 2px;
}

.who__item b {
  display: block;
  font-size: 16px;
  margin-bottom: 2px;
}

.who__item span {
  font-size: 14.5px;
  color: var(--muted);
}

/* FAQ */
.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  min-height: var(--tap);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .chev {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  transition: transform .18s ease;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
}

.faq details[open] summary {
  color: var(--brand);
}

.faq__body {
  padding: 0 0 18px;
  font-size: 15.5px;
  color: var(--ink-2);
  max-width: 72ch;
}

.faq__body p+p {
  margin-top: 10px;
}

/* Dải CTA cuối */
.cta-band {
  background: linear-gradient(150deg, var(--brand-dark), var(--brand));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: '';
  position: absolute;
  left: -120px;
  bottom: -180px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(237, 195, 50, .10);
}

.cta-band .shell {
  position: relative;
  z-index: 1;
  padding-top: 42px;
  padding-bottom: 46px;
}

.cta-band h2 {
  font-size: clamp(22px, 5.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 10px;
  text-wrap: balance;
}

.cta-band p {
  color: var(--on-dark);
  margin-bottom: 22px;
  max-width: 56ch;
}

.cta-band .btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Lưới trang form: cột form + rail bên phải */
.page-grid {
  display: grid;
  gap: 24px;
  padding: 26px 0 0;
}

.main-col {
  min-width: 0;
}

.rail {
  display: grid;
  gap: 14px;
  align-content: start;
}

.rail-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: var(--bg);
}

.rail-card--tint {
  background: var(--brand-tint);
  border-color: var(--brand-soft);
}

/* Ở mobile các thẻ này nằm phía TRÊN form nên sẽ đẩy form xuống —
   thông tin liên hệ đã có sẵn ở footer, nên chỉ hiện chúng trên desktop. */
@media (max-width: 999px) {
  .rail-card--deskOnly {
    display: none;
  }
}

.rail-card h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.rail-card p {
  font-size: 14.5px;
  color: var(--muted);
}

/* ============ 7. FORM UI KIT ======================================= */
.block {
  padding: 26px 0;
  border-top: 1px solid var(--line);
}

.block__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.block__num {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.block__title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.015em;
}

.block__sub {
  font-size: 14.5px;
  color: var(--muted);
  margin-bottom: 14px;
}

.block__head+.field {
  margin-top: 14px;
}

.criteria {
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.criteria h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.criteria li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 5px 0;
  font-size: 15px;
  color: var(--ink-2);
}

.criteria li svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.criteria__note {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--brand-soft);
  font-size: 14px;
  color: var(--muted);
  font-style: italic;
}

/* Chọn loại mặt bằng */
.asset {
  padding: 22px 0 4px;
}

.asset__grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.asset__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
}

.asset__card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.asset__icon {
  flex: none;
  color: var(--muted);
}

.asset__label {
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.3;
}

.asset__desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.35;
}

.asset__card:has(input:checked),
.asset__card.is-checked {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.asset__card:has(input:checked) .asset__icon,
.asset__card.is-checked .asset__icon {
  color: var(--brand);
}

.asset__card:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.field {
  margin-bottom: 18px;
}

.field:last-child {
  margin-bottom: 0;
}

.label {
  display: block;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 6px;
  color: var(--ink);
}

.label .req {
  color: var(--err);
  margin-left: 2px;
}

.label .opt {
  color: var(--muted);
  font-weight: 400;
  font-size: 13.5px;
  margin-left: 4px;
}

.hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: -2px 0 6px;
}

input[type=text],
input[type=tel],
input[type=email],
input[type=number],
input[type=date],
select,
textarea {
  width: 100%;
  min-height: var(--tap);
  padding: 10px 12px;
  font-size: 16px;
  /* giữ 16px để iOS không zoom */
  font-family: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius);
  appearance: none;
}

textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23626973' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 38px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(16, 96, 50, .22);
  outline-offset: 0;
}

input::placeholder,
textarea::placeholder {
  color: #8b929c;
}

input[type=number] {
  -moz-appearance: textfield;
}

input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.with-unit {
  position: relative;
}

.with-unit input {
  padding-right: 68px;
}

.with-unit .unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14.5px;
  color: var(--muted);
  pointer-events: none;
}

.grid-2 {
  display: grid;
  gap: 14px;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--err);
}

.msg {
  display: none;
  gap: 6px;
  font-size: 14px;
  margin-top: 6px;
  align-items: flex-start;
}

.msg svg {
  flex: none;
  margin-top: 2px;
}

.msg.is-on {
  display: flex;
}

.msg--err {
  color: var(--err);
}

.msg--warn {
  color: var(--warn);
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choices--col {
  flex-direction: column;
}

.choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 8px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-size: 15px;
  cursor: pointer;
  background: var(--bg);
  flex: 1 1 auto;
  justify-content: center;
  text-align: center;
}

.choices--col .choice {
  border-radius: var(--radius);
  justify-content: flex-start;
  text-align: left;
}

.choice input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.choice:has(input:checked),
.choice.is-checked {
  border-color: var(--brand);
  background: var(--brand-tint);
  box-shadow: inset 0 0 0 1px var(--brand);
  font-weight: 600;
}

.choice:has(input:focus-visible) {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}

.field.has-error .choice {
  border-color: var(--err);
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-height: var(--tap);
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
}

.check input[type=checkbox] {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--brand);
  cursor: pointer;
}

/* Khối bổ sung gấp lại */
.more {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  overflow: hidden;
}

.more>summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  padding: 12px 14px;
  font-weight: 600;
  font-size: 15.5px;
  cursor: pointer;
  list-style: none;
}

.more>summary::-webkit-details-marker {
  display: none;
}

.more>summary .chev {
  margin-left: auto;
  flex: none;
  color: var(--muted);
  transition: transform .18s ease;
}

.more[open]>summary .chev {
  transform: rotate(180deg);
}

.more[open]>summary {
  border-bottom: 1px solid var(--line);
}

.more__body {
  padding: 16px 14px;
  background: var(--bg);
}

.more__body .field {
  margin-bottom: 20px;
}

/* ============ 8. BẢN ĐỒ ============================================ */
.map-card {
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
}

.map {
  height: 280px;
  width: 100%;
  background: var(--bg-alt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23e6e9ec' stroke-width='1'/%3E%3C/svg%3E");
}

.map-bar {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.map-bar .btn {
  flex: 1 1 auto;
  font-size: 15px;
  padding: 11px 12px;
}

.map-bar .btn:last-child {
  flex: 0 0 auto;
}

.map-status {
  padding: 9px 12px;
  font-size: 14px;
  border-top: 1px solid var(--line);
  background: var(--brand-tint);
  color: var(--ink-2);
  display: flex;
  gap: 7px;
  align-items: flex-start;
}

.map-status svg {
  flex: none;
  margin-top: 3px;
  color: var(--brand);
}

.map-status.is-warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.map-status.is-warn svg {
  color: var(--warn);
}

body.map-full {
  overflow: hidden;
}

.map-card.is-full {
  position: fixed;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  border: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.map-card.is-full .map {
  flex: 1 1 auto;
  height: auto;
}

.map-card.is-full .map-bar {
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
}

.leaflet-container {
  font: inherit !important;
}

.pin-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 500;
  background: rgba(22, 24, 28, .86);
  color: #fff;
  font-size: 13.5px;
  padding: 6px 12px;
  border-radius: 999px;
  pointer-events: none;
}

/* ============ 9. ẢNH =============================================== */
.photo-drop {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
  padding: 18px 16px;
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}

.photo-drop.is-drag {
  border-color: var(--brand);
  background: var(--brand-tint);
}

.field.has-error .photo-drop {
  border-color: var(--err);
}

.photo-drop__title {
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 3px;
}

.photo-drop__sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 12px;
}

.photo-tips {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.photo-tips li {
  display: flex;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  padding: 2px 0;
}

.photo-tips li b {
  color: var(--ink-2);
  font-weight: 600;
}

.photo-count {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.photo-grid:empty {
  display: none;
}

.thumb {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}

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

.thumb__del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 0;
  background: rgba(22, 24, 28, .72);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.thumb__badge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(22, 24, 28, .75));
  color: #fff;
  font-size: 11.5px;
  padding: 12px 6px 4px;
  text-align: left;
}

.progress {
  margin-top: 12px;
}

.progress__bar {
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.progress__fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  transition: width .2s ease;
}

.progress__text {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 5px;
}

/* ============ 10. NÚT + THANH GỬI ================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  font-size: 15.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  background: var(--bg-alt);
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn:hover {
  background: #eceeed;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.btn--primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
}

.btn--accent {
  background: var(--yellow);
  color: var(--brand-deep);
  border-color: var(--yellow);
}

.btn--accent:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
}

.btn--onDark {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .42);
}

.btn--onDark:hover {
  background: rgba(255, 255, 255, .12);
}

.btn--block {
  width: 100%;
}

.btn--lg {
  min-height: 52px;
  font-size: 16.5px;
  padding: 13px 22px;
}

.btn--sm {
  min-height: 38px;
  padding: 7px 14px;
  font-size: 14.5px;
}

.btn[disabled],
.btn[aria-disabled=true] {
  opacity: .55;
  cursor: not-allowed;
}

.btn .spin {
  animation: spin .9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.submit-zone {
  padding: 4px 0 28px;
}

.alert {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14.5px;
  margin-bottom: 14px;
}

.alert svg {
  flex: none;
  margin-top: 2px;
}

.alert--err {
  background: var(--err-bg);
  color: var(--err);
}

.alert--warn {
  background: var(--warn-bg);
  color: var(--warn);
}

.alert--info {
  background: var(--brand-tint);
  color: var(--ink-2);
}

.submit-note {
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
}

/* Trang cảm ơn: dòng "tên/SĐT được giữ lại" dưới nút Gửi mặt bằng khác */
.keep-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 28px;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--brand-deep);
  background: var(--brand-soft);
  border-left: 4px solid var(--brand);
  border-radius: 8px;
}

.keep-note svg {
  flex: none;
  margin-top: 1px;
  color: var(--brand);
}

.sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--line);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .22s ease;
}

.sticky-bar.is-on {
  transform: translateY(0);
}

.sticky-bar .shell {
  padding: 0;
  max-width: var(--col);
}

body.has-sticky {
  padding-bottom: 86px;
}

.draft-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--yellow-soft);
  border: 1px solid #f0dd9a;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 14.5px;
  color: #6b5310;
}

.draft-banner svg {
  flex: none;
  margin-top: 2px;
}

.draft-banner button {
  background: none;
  border: 0;
  padding: 0;
  margin-top: 4px;
  color: #6b5310;
  text-decoration: underline;
  font-weight: 600;
  cursor: pointer;
  min-height: 32px;
}

/* Banner "Dùng lại" các trường lặp từ mặt bằng vừa gửi */
.carry-banner {
  background: var(--yellow-soft);
  border: 1px solid #f0dd9a;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 18px;
  color: #6b5310;
}

.carry-banner[hidden] {
  display: none;
}

.carry-banner__title {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.carry-banner__sub {
  margin: 4px 0 0;
  font-size: 14.5px;
}

.carry-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.carry-banner__actions .btn {
  min-height: var(--tap);
}

.noscript {
  background: var(--warn-bg);
  color: var(--warn);
  border-bottom: 1px solid #f0dd9a;
  padding: 12px 0;
  font-size: 14.5px;
}

/* ============ 11. CẢM ƠN / TRẠNG THÁI ============================= */
.done {
  padding: 34px 0 10px;
  text-align: center;
}

.done__tick {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.done h1 {
  font-size: clamp(23px, 5.5vw, 30px);
  letter-spacing: -.02em;
  margin-bottom: 8px;
}

.done>p {
  color: var(--ink-2);
}

.code-card {
  margin: 20px 0;
  padding: 20px 16px;
  text-align: center;
  border: 1.5px solid var(--brand-soft);
  background: var(--brand-tint);
  border-radius: var(--radius-lg);
}

.code-card__label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.code-card__value {
  font-size: clamp(28px, 8vw, 38px);
  font-weight: 700;
  color: var(--brand-dark);
  margin: 6px 0 14px;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

.promise {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  margin-bottom: 14px;
}

.promise svg {
  flex: none;
  margin-top: 2px;
  color: var(--brand);
}

.track-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-size: 14.5px;
  margin-bottom: 22px;
}

.track-box a {
  word-break: break-all;
  font-weight: 600;
}

.recent-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 22px;
  font-size: 14.5px;
}

.recent-box__title {
  font-size: 16px;
  margin-bottom: 8px;
}

.recent-list {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.recent-list a {
  display: block;
  padding: 10px 0;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  word-break: break-word;
}

.recent-box .btn {
  min-height: 44px;
}

.status-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0;
}

.status-row {
  display: flex;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row dt {
  flex: none;
  width: 110px;
  color: var(--muted);
  font-size: 14.5px;
}

.status-row dd {
  font-weight: 600;
}

.steps {
  display: grid;
  margin: 22px 0;
}

.step {
  display: flex;
  gap: 12px;
  padding: 0 0 20px;
  position: relative;
}

.step::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 26px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}

.step:last-child {
  padding-bottom: 0;
}

.step:last-child::before {
  display: none;
}

.step__dot {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--muted);
  z-index: 1;
}

.step__title {
  font-weight: 600;
  font-size: 15.5px;
}

.step__desc {
  font-size: 14px;
  color: var(--muted);
}

.step.is-done .step__dot {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.step.is-done::before {
  background: var(--brand);
}

.step.is-now .step__dot {
  border-color: var(--brand);
  color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.step.is-now .step__title {
  color: var(--brand-dark);
}

.step.is-reject .step__dot {
  background: var(--muted);
  border-color: var(--muted);
  color: #fff;
}

/* Trang nội dung tĩnh (chính sách, 404) */
.prose {
  padding: 30px 0 40px;
}

.prose h1 {
  font-size: clamp(24px, 6vw, 32px);
  letter-spacing: -.02em;
  margin-bottom: 14px;
}

.prose h2 {
  font-size: 18px;
  margin: 26px 0 8px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 15.5px;
}

.prose p {
  margin-bottom: 10px;
}

.prose ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
}

.prose li {
  margin-bottom: 5px;
}

/* ============ 12. FOOTER ========================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  padding: 32px 0 36px;
  font-size: 14.5px;
  color: var(--ink-2);
}

.footer-grid {
  display: grid;
  gap: 24px;
}

.site-footer h2 {
  font-size: 15.5px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--ink);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 10px;
}

.footer-contact a {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  min-height: var(--tap);
  padding: 9px 0;
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
}

/* Địa chỉ dài nên xuống dòng — icon phải neo ở dòng đầu, không căn giữa khối */
.footer-contact a svg {
  flex: none;
  margin-top: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-top: 8px;
}

.footer-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
}

.site-footer small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-bottom {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ============ DESKTOP ============================================= */
@media (min-width: 600px) {
  :root {
    --gut: 24px;
  }

  .hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .hero__actions .btn {
    flex: 0 1 auto;
  }

  .cta-band .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .who {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .photo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .stat__num {
    font-size: 26px;
  }

  .stat__label {
    font-size: 13.5px;
  }
}

@media (min-width: 860px) {
  .section {
    padding: 64px 0;
  }

  .section__title {
    font-size: 30px;
  }

  .section__lead {
    font-size: 17px;
  }

  .nav {
    display: flex;
  }

  .hero__inner {
    padding: 66px 0 74px;
    display: grid;
    grid-template-columns: 1.06fr .94fr;
    gap: 48px;
    align-items: center;
  }

  .hero__art {
    display: block;
  }

  .hero--compact .hero__inner {
    display: block;
    padding: 40px 0 44px;
  }

  .hero__lead {
    font-size: 17.5px;
  }

  .stat-row {
    max-width: 560px;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .flow {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .flow__item {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 0;
  }

  .flow__item::before {
    left: 46px;
    right: -20px;
    top: 18px;
    bottom: auto;
    width: auto;
    height: 2px;
  }

  .flow__item:last-child::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 40px;
  }

  .map {
    height: 360px;
  }
}

@media (min-width: 1000px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) 328px;
    gap: 52px;
    align-items: start;
    padding-top: 34px;
  }

  .page-grid>.main-col {
    grid-column: 1;
    grid-row: 1;
    max-width: var(--col);
  }

  .page-grid>.rail {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 86px;
  }

  .sticky-bar {
    display: none;
  }

  /* desktop luôn thấy nút thật */
  body.has-sticky {
    padding-bottom: 0;
  }

  .block {
    padding: 30px 0;
  }
}

/* ============ REDUCED MOTION / PRINT ============================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .sticky-bar {
    transition: none;
  }
}

@media print {

  .sticky-bar,
  .map-bar,
  .site-footer,
  .site-header,
  .hero {
    display: none;
  }
}

/* Honeypot: ẩn bằng CSS, KHÔNG dùng type=hidden */
.hp {
  position: absolute !important;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* ---------- Khung xác minh SĐT môi giới (khối A) ---------- */
.broker-box {
  margin-top: 12px;
  padding: 12px 14px;
  background: var(--brand-tint);
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius);
}

.broker-box[hidden],
.broker-box [hidden] {
  display: none;
}

.broker-box .btn {
  min-height: var(--tap);
}

.broker-box__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.broker-box .hint {
  margin: 0 0 10px;
}

.broker-box__row {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.broker-box__row input {
  flex: 1;
  min-width: 0;
  letter-spacing: .2em;
}

.broker-box__link {
  background: none;
  border: 0;
  padding: 0 4px;
  min-height: var(--tap);
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.broker-box__link[disabled] {
  color: var(--muted);
  text-decoration: none;
  cursor: default;
}

.broker-box__done {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  margin: 0;
  color: var(--brand-dark);
}

input[readonly] {
  background: var(--bg-alt);
}
