/* ============================================================
   Honda — Dịch vụ bảo dưỡng ô tô (page-bao-duong-xe-honda.php)
   Bố cục và thành phần riêng của trang. Màu, bo góc, bóng đổ lấy từ design-tokens.css.
   Icon: SVG stroke dạng mask (tô bằng currentColor/token). Ô bảng dùng sprite <symbol> trong template.
   ============================================================ */

.vf-mt {
  --vf-i-shield: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M24 5l15 5v12c0 10-6.5 17-15 21C15.5 39 9 32 9 22V10z'/><path d='M17 24l5 5 9-10'/></svg>");
  --vf-i-gear: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='24' r='6'/><path d='M24 5v6M24 37v6M5 24h6M37 24h6M10.6 10.6l4.2 4.2M33.2 33.2l4.2 4.2M10.6 37.4l4.2-4.2M33.2 14.8l4.2-4.2'/></svg>");
  --vf-i-doc: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M12 6h17l8 8v28H12z'/><path d='M29 6v8h8M18 24h14M18 30h14M18 36h8'/></svg>");
  --vf-i-person: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='24' cy='16' r='7'/><path d='M9 41c0-8 6.5-14 15-14s15 6 15 14'/></svg>");
  --vf-i-calendar: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'><rect x='3.5' y='5' width='17' height='15' rx='2'/><path d='M3.5 10h17M8 3v4M16 3v4M9 15l2 2 4-4'/></svg>");
  --vf-i-phone: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'><path d='M5 4h4l2 5-2.5 1.5a11 11 0 005 5L15 13l5 2v4a2 2 0 01-2 2A16 16 0 013 6a2 2 0 012-2z'/></svg>");
  --vf-i-lock: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='5' y='11' width='14' height='9' rx='2'/><path d='M8 11V8a4 4 0 018 0v3'/></svg>");
  --vf-i-check: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12.5l4.5 4.5L19 7.5'/></svg>");
  --vf-i-chevron: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  --vf-i-arrow: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>");
  --vf-i-tick: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M6.8 11.3l3 3 5.4-5.8'/></svg>");

  --vf-mt-gutter: var(--container-px); /* = .vf-container: 12px mobile, 32px từ 768px */
  --vf-mt-bar: 96px; /* chừa chỗ header dính khi cuộn tới mục lục / cột phụ */

  font-family: var(--font-body);
  color: var(--color-text-primary);
  background: var(--color-surface);
}

html:has(.vf-mt) {
  scroll-behavior: smooth;
}

.vf-mt :is(h1, h2, h3, p, ul, ol, figure) {
  margin: 0;
}
.vf-mt :is(ul, ol) {
  padding: 0;
  list-style: none;
}
.vf-mt a:not(.vf-hero-cta) {
  color: var(--color-cta-primary);
  text-decoration: none;
}
.vf-mt a:not(.vf-hero-cta):hover {
  color: var(--color-cta-hover);
}
.vf-mt :is(a, button, summary, select, input, [tabindex]):focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
}
.vf-mt-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.vf-mt-sprite {
  position: absolute;
}

/* Icon mask dùng chung (.vf-mt-item.vf-mt-i-*). */
.vf-mt-i-shield { --vf-icon: var(--vf-i-shield); }
.vf-mt-i-gear { --vf-icon: var(--vf-i-gear); }
.vf-mt-i-doc { --vf-icon: var(--vf-i-doc); }
.vf-mt-i-person { --vf-icon: var(--vf-i-person); }

/* ── Nút (khối Buttons của WordPress) ────────────────────── */
.vf-mt .vf-mt-actions {
  margin-top: 24px;
}
.vf-mt .wp-block-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.vf-mt .vf-mt-btn .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--color-cta-primary);
  border-radius: var(--radius-full);
  font: var(--font-bold) var(--text-sm)/1 var(--font-body);
  transition: background-color 0.15s, color 0.15s;
}
.vf-mt .vf-mt-btn--primary .wp-block-button__link {
  background: var(--color-cta-primary);
  color: var(--color-text-inverse);
}
.vf-mt .vf-mt-btn--primary .wp-block-button__link::after {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: var(--vf-i-arrow) center / contain no-repeat;
  mask: var(--vf-i-arrow) center / contain no-repeat;
}
.vf-mt .vf-mt-btn--primary .wp-block-button__link:hover {
  border-color: var(--color-cta-hover);
  background: var(--color-cta-hover);
  color: var(--color-text-inverse);
}
.vf-mt .vf-mt-btn--ghost .wp-block-button__link {
  background: var(--color-surface);
  color: var(--color-cta-primary);
}
.vf-mt .vf-mt-btn--ghost .wp-block-button__link:hover {
  background: var(--color-brand-tint-soft);
  color: var(--color-cta-primary);
}

/* ── Hero ────────────────────────────────────────────────── */
.vf-mt-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  background: var(--color-surface);
}
.vf-mt-hero__text {
  flex: 1 1 520px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-6);
  padding: var(--space-12) 40px var(--space-16) max(var(--vf-mt-gutter), calc((100vw - var(--container-max)) / 2 + var(--vf-mt-gutter)));
}
@media (min-width: 768px) { .vf-mt { --vf-mt-gutter: var(--container-px-md); } }
.vf-mt-hero__media {
  position: relative;
  flex: 1 1 480px;
  min-width: 0;
  min-height: 320px;
  background: var(--color-brand-tint);
}
.vf-mt-hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Ảnh xe dựng sẵn (chưa có ảnh đại diện): nền gradient, xe nằm giữa. */
.vf-mt-hero__media.is-render {
  background: linear-gradient(135deg, var(--color-hero-start), var(--color-hero-end));
}
.vf-mt-hero__media.is-render img {
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
}

/* ── Thẻ có icon (cam kết, ưu điểm) ──────────────────────── */
.vf-mt .vf-mt-item h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-brand-deep);
}
.vf-mt .vf-mt-item p {
  margin-top: 4px;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* ── Cam kết ─────────────────────────────────────────────── */
.vf-mt-commit {
  padding: 20px var(--vf-mt-gutter);
  background: var(--color-surface-soft);
}
.vf-mt-commit__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: var(--container-max);
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
}
.vf-mt-commit .vf-mt-item {
  margin: 0; /* WP "flow" layout đặt margin-top 24px cho khối con từ thứ 2 → lệch cao thấp */
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 18px;
  align-content: start;
  padding: 22px 28px;
}
.vf-mt-commit .vf-mt-item + .vf-mt-item {
  border-left: 1px solid var(--color-border);
}
.vf-mt-commit .vf-mt-item::before {
  content: "";
  grid-row: span 2;
  align-self: start;
  width: 40px;
  height: 40px;
  background: var(--color-brand-deep);
  -webkit-mask: var(--vf-icon) center / contain no-repeat;
  mask: var(--vf-icon) center / contain no-repeat;
}

/* ── Khung trang ─────────────────────────────────────────── */
.vf-mt-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--vf-mt-gutter) var(--block-py);
}
.vf-mt-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 32px;
  margin-top: 36px;
}
.vf-mt-schedule {
  flex: 1 1 560px;
  min-width: 0;
}
.vf-mt-aside {
  flex: 0 1 300px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: var(--vf-mt-bar);
}
.vf-mt-body > section,
.vf-mt-schedule,
.vf-mt-support {
  scroll-margin-top: var(--vf-mt-bar);
}
.vf-mt-body > section {
  margin-top: 64px;
}
.vf-mt h2 {
  font-size: var(--font-size-h2);
  line-height: var(--leading-tight);
  letter-spacing: 0;
  font-weight: var(--font-weight-display);
  color: var(--color-brand-deep);
}
.vf-mt .vf-mt-sub {
  max-width: 760px;
  margin-top: 8px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
  text-wrap: pretty;
}

/* ── Lịch trình: dải mốc ─────────────────────────────────── */
.vf-mt .vf-mt-miles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.vf-mt-miles li {
  position: relative;
  border-radius: var(--radius-sm);
  padding: 14px 20px 14px 68px;
  background: var(--color-brand-tint-soft);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.vf-mt-miles li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  background: var(--color-cta-primary);
  -webkit-mask: var(--vf-i-calendar) center / contain no-repeat;
  mask: var(--vf-i-calendar) center / contain no-repeat;
}
.vf-mt-miles strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand-deep);
}

/* ── Lịch trình: nhóm xe, tab (JS dựng) ──────────────────── */
.vf-mt .vf-mt-model {
  margin-top: 20px;
}
.vf-mt .vf-mt-model[hidden] {
  display: none;
}
.vf-mt-model h3 {
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  color: var(--color-brand-deep);
}
.vf-mt .vf-mt-models {
  margin-top: 4px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
}
.vf-mt .vf-mt-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  margin-top: 20px;
  border-bottom: 1px solid var(--color-border);
}
.vf-mt-tabs + .vf-mt-model {
  margin-top: 14px;
}
.vf-mt-tabs button {
  appearance: none;
  margin-bottom: -1px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: var(--font-bold) var(--text-sm) var(--font-body);
  color: var(--color-text-secondary);
  cursor: pointer;
}
.vf-mt-tabs button:hover {
  color: var(--color-cta-primary);
}
.vf-mt-tabs button[aria-selected="true"] {
  border-bottom-color: var(--color-cta-primary);
  font-weight: var(--font-bold);
  color: var(--color-cta-primary);
}
/* Có tab thì tiêu đề nhóm chỉ còn cho trình đọc màn hình và công cụ tìm kiếm. */
.vf-mt-schedule.is-js .vf-mt-model > h3 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Lịch trình: bảng ────────────────────────────────────── */
.vf-mt .vf-mt-table {
  position: relative; /* chứa chữ ẩn .vf-mt-sr trong ô, tránh làm tràn ngang cả trang */
  margin: 12px 0 0;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
}
.vf-mt .vf-mt-table table {
  width: 100%;
  min-width: 560px;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--text-sm);
}
.vf-mt-schedule.is-all .vf-mt-table table {
  min-width: 1040px;
}
/* Chỉ ẩn mốc 75.000–150.000 km khi JS đã sẵn sàng (không có JS: hiện đủ, cuộn ngang). */
.vf-mt-schedule.is-js:not(.is-all) .vf-mt-table :is(th, td):nth-child(n + 6) {
  display: none;
}
.vf-mt .vf-mt-table thead {
  border: 0;
}
.vf-mt .vf-mt-table :is(th, td) {
  padding: 8px;
  border: 0;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
  font-weight: inherit;
  text-align: center;
}
.vf-mt .vf-mt-table thead th {
  padding: 12px 8px;
  border-top: 0;
  background: var(--color-surface-soft);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: 1.35;
  color: var(--color-brand-deep);
  white-space: nowrap;
}
.vf-mt .vf-mt-table :is(thead th:first-child, tbody th) {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 150px;
  padding: 11px 14px;
  border-left: 0;
  background: var(--color-surface-elevated);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  line-height: 1.4;
  color: var(--color-text-body);
  text-align: left;
  white-space: normal;
}
.vf-mt .vf-mt-table thead th:first-child {
  background: var(--color-surface-soft);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand-deep);
}
.vf-mt-schedule.is-all .vf-mt-table :is(thead th:first-child, tbody th) {
  min-width: 200px;
}
.vf-mt-table td svg {
  display: block;
  margin: 0 auto;
}
.vf-mt-table .is-r,
.vf-mt-table .is-c {
  color: var(--color-cta-primary);
}
.vf-mt-table .is-n {
  color: var(--color-border-strong);
}
/* Chú thích bảng đã có trong aria-label của vùng cuộn. */
.vf-mt .vf-mt-table figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

/* ── Lịch trình: chú giải, ghi chú, liên kết ─────────────── */
.vf-mt .vf-mt-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-top: 12px;
}
.vf-mt .vf-mt-lg {
  position: relative;
  padding-left: 22px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
}
.vf-mt-lg::before,
.vf-mt-lg::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
}
.vf-mt-lg::before {
  box-sizing: border-box;
  border-radius: 50%;
}
.vf-mt-lg::after {
  -webkit-mask: var(--vf-i-tick) center / contain no-repeat;
  mask: var(--vf-i-tick) center / contain no-repeat;
}
.vf-mt-lg--c::before {
  border: 1.8px solid var(--color-cta-primary);
  background: var(--color-surface-elevated);
}
.vf-mt-lg--c::after {
  background: var(--color-cta-primary);
}
.vf-mt-lg--r::before {
  background: var(--color-cta-primary);
}
.vf-mt-lg--r::after {
  background: var(--color-text-inverse);
}
.vf-mt-more {
  appearance: none;
  margin-left: auto;
  padding: 6px 0;
  border: 0;
  background: none;
  font: 700 var(--text-sm) var(--font-body);
  color: var(--color-cta-primary);
  cursor: pointer;
}
.vf-mt .vf-mt-more:hover,
.vf-mt .vf-mt-more:focus {
  background: none;
  border-color: transparent;
  color: var(--color-cta-hover);
  text-decoration: underline;
}
.vf-mt .vf-mt-note {
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}
.vf-mt .vf-mt-link {
  margin-top: 14px;
  font-size: var(--text-sm);
  font-weight: 700;
}
.vf-mt-link a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.vf-mt-link a::after {
  content: "";
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--vf-i-arrow) center / contain no-repeat;
  mask: var(--vf-i-arrow) center / contain no-repeat;
}

/* ── Cột phụ ─────────────────────────────────────────────── */
.vf-mt-toc,
.vf-mt-book {
  padding: 18px 14px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  box-shadow: none;
}
.vf-mt-aside__t {
  padding: 0 8px;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-brand-deep);
}
.vf-mt-toc ol {
  display: grid;
  gap: 2px;
  margin-top: 12px;
}
.vf-mt-toc a {
  display: block;
  padding: 7px 12px;
  border-left: 2px solid transparent;
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: var(--font-bold);
  color: var(--color-text-secondary);
}
.vf-mt-toc a:hover {
  color: var(--color-cta-primary);
}
.vf-mt-toc a[aria-current="location"] {
  border-left-color: var(--color-cta-primary);
  font-weight: var(--font-bold);
  color: var(--color-cta-primary);
}
.vf-mt-book {
  padding: 20px 18px;
}
.vf-mt-book .vf-mt-aside__t {
  padding: 0;
}
.vf-mt-aside__t--lg {
  font-size: var(--font-size-title);
  letter-spacing: -0.01em;
}
.vf-mt .vf-mt-book > p:not(.vf-mt-aside__t, .vf-mt-or) {
  margin: 8px 0 16px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-secondary);
}
.vf-mt a.vf-mt-book__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-cta-primary);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-text-inverse);
}
.vf-mt a.vf-mt-book__btn:hover {
  background: var(--color-cta-hover);
  color: var(--color-text-inverse);
}
.vf-mt-book__btn::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: var(--vf-i-calendar) center / contain no-repeat;
  mask: var(--vf-i-calendar) center / contain no-repeat;
}
.vf-mt .vf-mt-or {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.vf-mt-or::before,
.vf-mt-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-border);
}
.vf-mt .vf-mt-hotline {
  display: grid;
  grid-template-columns: 26px 1fr;
  column-gap: 12px;
  align-items: center;
  margin-top: 12px;
}
.vf-mt-hotline::before {
  content: "";
  grid-row: span 2;
  width: 26px;
  height: 26px;
  background: var(--color-cta-primary);
  -webkit-mask: var(--vf-i-phone) center / contain no-repeat;
  mask: var(--vf-i-phone) center / contain no-repeat;
}
.vf-mt-hotline strong {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--color-cta-primary);
}
.vf-mt-hotline span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ── Ưu điểm ─────────────────────────────────────────────── */
.vf-mt .vf-mt-adv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px 32px;
  margin-top: 24px;
}
.vf-mt-adv .vf-mt-item {
  margin: 0; /* bỏ margin-top 24px của layout flow WP (khối con từ thứ 2) */
  position: relative;
  min-height: 72px;
  padding-left: 90px;
}
.vf-mt-adv .vf-mt-item::before,
.vf-mt-adv .vf-mt-item::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--color-brand-tint-soft);
}
.vf-mt-adv .vf-mt-item::after {
  left: 19px;
  top: 19px;
  width: 34px;
  height: 34px;
  border-radius: 0;
  background: var(--color-brand-deep);
  -webkit-mask: var(--vf-icon) center / contain no-repeat;
  mask: var(--vf-icon) center / contain no-repeat;
}
.vf-mt .vf-mt-adv .vf-mt-item h3 {
  font-size: var(--text-lg);
}
.vf-mt .vf-mt-adv .vf-mt-item p {
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ── Quy trình 5 bước ────────────────────────────────────── */
.vf-mt .vf-mt-steps {
  display: grid;
  gap: 24px;
  margin-top: 28px;
  counter-reset: vf-mt-step;
}
.vf-mt-steps li {
  position: relative;
  min-height: 40px;
  padding-left: 56px;
  counter-increment: vf-mt-step;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-text-muted);
  text-wrap: pretty;
}
.vf-mt-steps li::before {
  content: counter(vf-mt-step);
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-hero-end);
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  color: var(--color-cta-primary);
}
.vf-mt-steps li:first-child::before {
  background: var(--color-cta-primary);
  color: var(--color-text-inverse);
}
/* Đường nối dọc giữa các vòng số (di động/tablet). */
.vf-mt-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 40px;
  bottom: -24px;
  width: 2px;
  background: var(--color-brand-tint);
}
.vf-mt-steps strong {
  display: flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 2px;
  font-size: var(--text-base);
  font-weight: var(--font-bold);
  line-height: 1.3;
  color: var(--color-brand-deep);
}

/* ── FAQ (khối Hỏi đáp) ──────────────────────────────────── */
.vf-mt .vf-faq {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.vf-mt .vf-faq details {
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
}
.vf-mt .vf-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 6px 20px;
  list-style: none;
  cursor: pointer;
}
.vf-mt .vf-faq summary::-webkit-details-marker {
  display: none;
}
.vf-mt .vf-faq__q {
  font-size: var(--text-sm);
  line-height: 1.5;
  font-weight: 700;
  color: var(--color-text-primary);
}
.vf-mt .vf-faq__chev {
  flex: none;
  width: 16px;
  height: 16px;
  background: var(--color-text-secondary);
  -webkit-mask: var(--vf-i-chevron) center / contain no-repeat;
  mask: var(--vf-i-chevron) center / contain no-repeat;
  transition: transform 0.2s;
}
.vf-mt .vf-faq details[open] .vf-faq__chev {
  transform: rotate(180deg);
}
.vf-mt .vf-faq details > :not(summary) {
  padding: 0 20px 16px;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-secondary);
  text-wrap: pretty;
}

/* ── Đặt lịch ────────────────────────────────────────────── */
.vf-mt .vf-mt-support {
  margin-top: 56px;
  padding: 28px 32px 24px;
  border-radius: var(--radius-md);
  background: linear-gradient(100deg, var(--color-surface-ink), var(--color-surface-ink-soft) 60%, var(--color-surface-ink-mid));
}
.vf-mt .vf-mt-support h2 {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
  color: var(--color-text-inverse);
  font-weight: var(--font-semibold);
}
.vf-mt .vf-mt-support__sub {
  margin-top: 6px;
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--color-brand-tint-soft);
}
.vf-mt-form {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px 36px;
  align-items: start;
  margin-top: 22px;
}
.vf-mt-form__col {
  display: grid;
  gap: 24px;
  align-content: start;
  min-width: 0;
}
.vf-mt-form fieldset {
  display: grid;
  gap: 16px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.vf-mt-form legend {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px; /* legend không nằm trong lưới của fieldset nên không nhận gap */
  padding: 0;
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text-inverse);
}
.vf-mt-form legend span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-brand-tint);
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  color: var(--color-brand-deep);
}
.vf-mt-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.vf-mt-form__row--3 {
  grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
}
.vf-mt-form label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  font-weight: var(--font-semibold);
  color: var(--color-brand-tint-soft);
}
.vf-mt-form b {
  color: var(--color-brand-tint);
}
.vf-mt-form :is(input:not([type="checkbox"]), select, textarea) {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--color-surface-elevated);
  font: var(--font-bold) var(--text-sm) var(--font-body);
  color: var(--color-text-primary);
}
.vf-mt-form textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 14px;
  resize: vertical;
}
.vf-mt-form :is(input, select, textarea):user-invalid {
  border-color: var(--color-error-bg);
}
.vf-mt-form__group {
  margin: 0 0 -8px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-brand-tint);
}
.vf-mt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vf-mt-form .vf-mt-chip {
  position: relative;
  margin: 0;
  cursor: pointer;
}
.vf-mt-form .vf-mt-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.vf-mt-chip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.06);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-inverse);
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.vf-mt-chip:hover span {
  border-color: var(--color-brand-tint);
}
.vf-mt-chip input:checked + span {
  border-color: var(--color-surface-elevated);
  background: var(--color-surface-elevated);
  color: var(--color-brand-deep);
}
.vf-mt-chip input:checked + span::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--color-cta-primary);
  -webkit-mask: var(--vf-i-check) center / contain no-repeat;
  mask: var(--vf-i-check) center / contain no-repeat;
}
.vf-mt-chip input:focus-visible + span {
  outline: 3px solid var(--color-brand-tint);
  outline-offset: 2px;
}
.vf-mt .vf-mt-place {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.07);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-brand-tint-soft);
}
.vf-mt-place strong {
  color: var(--color-text-inverse);
}
.vf-mt .vf-mt-hint {
  margin: -8px 0 0;
  font-size: var(--text-sm);
  color: var(--color-brand-tint-soft);
}
.vf-mt-form .vf-mt-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
  cursor: pointer;
}
.vf-mt-form .vf-mt-consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--color-cta-primary);
}
.vf-mt-consent a {
  color: var(--color-text-inverse);
  text-decoration: underline;
}
.vf-mt-select {
  position: relative;
}
.vf-mt-form select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  cursor: pointer;
}
.vf-mt-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background: var(--color-text-secondary);
  -webkit-mask: var(--vf-i-chevron) center / contain no-repeat;
  mask: var(--vf-i-chevron) center / contain no-repeat;
  pointer-events: none;
}
.vf-mt-submit {
  width: 100%;
  height: 46px;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-cta-primary);
  font: var(--font-bold) var(--text-sm) var(--font-body);
  color: var(--color-text-inverse);
  cursor: pointer;
}
.vf-mt-submit:focus {
  background: var(--color-cta-primary);
  color: var(--color-text-inverse);
}
.vf-mt-submit:hover:not(:disabled) {
  background: var(--color-brand-electric);
}
.vf-mt-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}
.vf-mt .vf-mt-status:empty {
  display: none;
}
.vf-mt .vf-mt-status {
  margin: 0;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-brand-tint);
}
.vf-mt .vf-mt-status.is-error {
  color: var(--color-error-bg);
}
.vf-mt .vf-mt-support__privacy {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--text-sm);
  color: var(--color-brand-tint-soft);
}
.vf-mt-support__privacy::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: currentColor;
  -webkit-mask: var(--vf-i-lock) center / contain no-repeat;
  mask: var(--vf-i-lock) center / contain no-repeat;
}

@media (max-width: 1023px) {
  .vf-mt-form {
    grid-template-columns: 1fr;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
/* Quy trình 5 bước nằm ngang khi đủ rộng; đường nối ngang giữa các vòng số. */
@media (min-width: 1024px) {
  .vf-mt .vf-mt-steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 24px 12px;
  }
  .vf-mt-steps li {
    padding: 0 12px;
    text-align: center;
  }
  .vf-mt-steps li::before {
    position: relative;
    margin: 0 auto 14px;
  }
  .vf-mt-steps li:first-child::after {
    content: none;
  }
  .vf-mt-steps li:not(:first-child)::after {
    content: "";
    position: absolute;
    background: var(--color-brand-tint);
    top: 19px;
    right: 50%;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 2px;
  }
  .vf-mt-steps strong {
    justify-content: center;
    min-height: 0;
    margin-bottom: 6px;
    text-wrap: balance;
  }
}

/* Cột phụ xuống dưới nội dung: bỏ sticky, ẩn mục lục (trang ngắn, đã có nút cuộn). */
@media (max-width: 1023px) {
  .vf-mt-aside {
    flex-basis: 100%;
    position: static;
  }
  .vf-mt-toc {
    display: none;
  }
}

@media (max-width: 767px) {
  .vf-mt-commit .vf-mt-item + .vf-mt-item {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }
  .vf-mt-hero__media {
    flex-basis: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 639px) {
  .vf-mt {
  }
  .vf-mt-hero__text {
    gap: 24px;
    padding: 0 var(--vf-mt-gutter) 32px;
  }
  .vf-mt .vf-mt-actions .wp-block-button,
  .vf-mt .vf-mt-actions .wp-block-button__link {
    width: 100%;
  }
  .vf-mt-commit {
    padding: 16px var(--vf-mt-gutter);
  }
  .vf-mt-commit .vf-mt-item {
    padding: 18px 20px;
  }
  .vf-mt-layout {
    margin-top: 28px;
  }
  .vf-mt-body > section {
    margin-top: 48px;
  }
  .vf-mt-miles li {
    padding: 12px 16px 12px 62px;
  }
  .vf-mt-miles li::before {
    left: 16px;
  }
  .vf-mt .vf-mt-table :is(thead th:first-child, tbody th) {
    min-width: 118px;
    padding: 10px;
    font-size: var(--text-sm);
    box-shadow: 1px 0 0 var(--color-border);
  }
  .vf-mt .vf-mt-table td {
    padding: 8px 4px;
  }
  .vf-mt-more {
    margin-left: 0;
  }
  .vf-mt-adv .vf-mt-item {
    padding-left: 72px;
    min-height: 56px;
  }
  .vf-mt-adv .vf-mt-item::before {
    width: 56px;
    height: 56px;
  }
  .vf-mt-adv .vf-mt-item::after {
    left: 15px;
    top: 15px;
    width: 26px;
    height: 26px;
  }
  .vf-mt .vf-mt-support {
    margin-top: 48px;
    padding: 24px 20px 20px;
  }
  .vf-mt-form__row,
  .vf-mt-form__row--3 {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html:has(.vf-mt) {
    scroll-behavior: auto;
  }
  .vf-mt * {
    transition-duration: 0.01ms !important;
  }
}

/* Danh sách tick (điều kiện gia hạn bảo hành). */
.vf-mt .vf-checklist {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.vf-mt .vf-checklist li {
  position: relative;
  padding-left: 32px;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text-body);
}
.vf-mt .vf-checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-cta-primary);
}
.vf-mt .vf-checklist li::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 6px;
  height: 11px;
  border: solid var(--color-text-inverse);
  border-width: 0 2.2px 2.2px 0;
  transform: rotate(45deg);
}
