/* TTHN-P02-FORM-FIX01 | Restore XG400 booking-grid anatomy on subpages.
   Scope exclusively to the Cargo form. Never change the MASTER passenger form. */
body.transport-native.tm26-subpage #main-content .tthn-cargo-tabs {
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:0!important;margin:0!important;padding:0!important;width:100%!important;
  background:var(--booking-tab-bg,#c5ddf5)!important;border:0!important;
  border-bottom:1px solid var(--booking-form-border,#4d94d8)!important;
  border-radius:10px 10px 0 0!important;overflow:hidden;box-sizing:border-box;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-tabs .vinfast-lead-tab {
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:center!important;text-align:center!important;min-width:0!important;
  width:100%!important;min-height:46px!important;padding:8px 5px!important;
  border:0!important;border-radius:0!important;margin:0!important;
  background:var(--booking-tab-bg,#c5ddf5)!important;
  color:var(--booking-tab-text,#173b5a)!important;font:inherit!important;
  font-size:12px!important;font-weight:800!important;line-height:1.25!important;
  white-space:normal!important;overflow-wrap:break-word!important;cursor:pointer;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-tabs .vinfast-lead-tab.is-active {
  background:var(--booking-tab-active-bg,#4d94d8)!important;
  color:var(--booking-tab-active-text,#fff)!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form {
  box-sizing:border-box!important;display:block!important;width:100%!important;
  max-width:100%!important;min-width:0!important;padding:15px!important;
  margin:0!important;background:var(--booking-form-bg,#e6f4ff)!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-heading {
  display:block!important;margin:0 0 12px!important;padding:0!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-heading h2 {
  font-size:20px!important;line-height:1.27!important;font-weight:800!important;
  color:var(--booking-title-color,#2f6fae)!important;margin:0 0 6px!important;
  letter-spacing:0!important;text-transform:none!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-heading span {
  display:block!important;color:var(--booking-description-color,#617b90)!important;
  font-size:12px!important;line-height:1.5!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-grid {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:10px 12px!important;align-items:start!important;min-width:0!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field {
  display:block!important;min-width:0!important;max-width:100%!important;
  margin:0!important;padding:0!important;overflow:visible!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field--full {grid-column:1/-1!important;}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field > label {
  display:block!important;margin:0 0 5px!important;padding:0!important;
  color:var(--booking-label-color,#29313d)!important;
  font-size:12px!important;font-weight:750!important;line-height:1.35!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field em {
  color:#c4422e!important;font-style:normal!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field :is(input,select,textarea) {
  box-sizing:border-box!important;display:block!important;position:static!important;
  width:100%!important;min-width:0!important;max-width:100%!important;
  margin:0!important;border:1px solid var(--booking-input-border,#bfcbda)!important;
  border-radius:6px!important;background:var(--booking-input-bg,#fff)!important;
  color:var(--booking-input-text,#243649)!important;
  font:inherit!important;font-size:13px!important;line-height:1.3!important;
  box-shadow:0 2px 7px rgba(15,23,42,.04)!important;outline:none!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field :is(input,select) {
  height:42px!important;min-height:42px!important;max-height:42px!important;padding:0 10px!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field textarea {
  height:73px!important;min-height:73px!important;max-height:130px!important;
  padding:10px!important;resize:vertical!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field :is(input,select,textarea):focus {
  border-color:var(--booking-input-focus,#4d94d8)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--cntghn-theme-primary,#0f6aa8) 16%,transparent)!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .xgg-p62-date-display {display:none!important;}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .xg-p04-consent {
  box-sizing:border-box!important;display:flex!important;align-items:flex-start!important;
  gap:8px!important;margin:12px 0 10px!important;padding:0!important;
  background:transparent!important;border:0!important;
  font-size:11px!important;font-weight:450!important;line-height:1.5!important;
  color:#526d84!important;cursor:pointer;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .xg-p04-consent input[type=checkbox] {
  appearance:auto!important;flex:0 0 16px!important;width:16px!important;
  min-width:16px!important;max-width:16px!important;height:16px!important;
  min-height:16px!important;max-height:16px!important;
  padding:0!important;margin:1px 0 0!important;accent-color:var(--cntghn-theme-primary,#0f6aa8);
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .xg-p04-consent span {flex:1!important;min-width:0!important;}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-submit {
  box-sizing:border-box!important;display:flex!important;align-items:center!important;
  justify-content:center!important;gap:9px!important;width:100%!important;
  min-height:46px!important;margin:0!important;padding:10px 14px!important;
  border:0!important;border-radius:7px!important;
  background:var(--booking-submit-bg,#4d94d8)!important;
  color:var(--booking-submit-text,#fff)!important;
  font:inherit!important;font-size:14px!important;font-weight:800!important;
  line-height:1.25!important;cursor:pointer;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-submit:hover {
  background:var(--booking-submit-hover,#2f6fae)!important;
}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form [role=alert] {color:#b42318!important;font-size:12px!important;line-height:1.45!important;}
body.transport-native.tm26-subpage #main-content .tthn-cargo-form [role=status] {color:#067647!important;font-size:12px!important;line-height:1.45!important;}
@media(max-width:540px) {
  body.transport-native.tm26-subpage #main-content .tthn-cargo-form {padding:12px!important;}
  body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-grid {gap:9px!important;}
  body.transport-native.tm26-subpage #main-content .tthn-cargo-tabs .vinfast-lead-tab {font-size:11px!important;min-height:44px!important;padding:6px 3px!important;}
  body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field > label {font-size:11px!important;}
  body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-field :is(input,select,textarea) {font-size:12px!important;}
}
@media(max-width:350px) {
  body.transport-native.tm26-subpage #main-content .tthn-cargo-form .vinfast-lead-grid {grid-template-columns:minmax(0,1fr)!important;}
}

/* CNTGHN-P02.8 | One palette for Cargo booking tabs, Home, Money, News & Service Hub.
   Root tokens come from Admin > Giao diện > theme-palette-p37 (taxi_theme_preset).
   Deliberately scope to Cargo markup; never recolor XGQN passenger booking forms. */
body.transport-native .tthn-cargo-tabs,
body.transport-native .tthn-cargo-form,
body.transport-native .tct78-book-card,
body.transport-native .tcat76-book-card,
body.transport-native .qn23c-section .vinfast-lead-form {
  --cntghn-brand:var(--cntghn-theme-primary,var(--xg-popup-primary,#0f6aa8));
  --cntghn-brand-dark:var(--cntghn-theme-primary-dark,var(--cntghn-brand));
  --cntghn-on-brand:var(--cntghn-theme-on-primary,var(--xg-popup-action-ink,#fff));
  --cntghn-tab-soft:color-mix(in srgb,var(--cntghn-brand) 11%,white 89%);
  --cntghn-surface-soft:color-mix(in srgb,var(--cntghn-brand) 6%,white 94%);
  --cntghn-line:var(--cntghn-theme-border,color-mix(in srgb,var(--cntghn-brand) 22%,white));
  --booking-tab-bg:var(--cntghn-tab-soft)!important;
  --booking-tab-text:var(--cntghn-theme-ink,#102236)!important;
  --booking-tab-active-bg:var(--cntghn-brand)!important;
  --booking-tab-active-text:var(--cntghn-on-brand)!important;
  --booking-form-bg:var(--cntghn-surface-soft)!important;
  --booking-form-border:var(--cntghn-line)!important;
  --booking-title-color:var(--cntghn-theme-link,var(--cntghn-brand-dark))!important;
  --booking-input-border:var(--cntghn-line)!important;
  --booking-input-focus:var(--cntghn-brand)!important;
  --booking-submit-bg:var(--cntghn-brand)!important;
  --booking-submit-text:var(--cntghn-on-brand)!important;
  --booking-submit-hover:var(--cntghn-brand-dark)!important;
}
/* Money form had inherited blue source rules with !important and no theme tokens.
   Use the local Cargo class with #main-content to win without changing layout. */
body.transport-native #main-content .tthn-cargo-tabs {
  background:var(--cntghn-tab-soft)!important;
  border-bottom-color:var(--cntghn-line)!important;
}
body.transport-native #main-content .tthn-cargo-tabs .vinfast-lead-tab {
  background:var(--cntghn-tab-soft)!important;
  color:var(--cntghn-theme-ink,#102236)!important;
}
body.transport-native #main-content .tthn-cargo-tabs .vinfast-lead-tab:not(.is-active):hover {
  background:color-mix(in srgb,var(--cntghn-brand) 19%,white 81%)!important;
  color:var(--cntghn-theme-ink,#102236)!important;
}
body.transport-native #main-content .tthn-cargo-tabs .vinfast-lead-tab.is-active,
body.transport-native #main-content .tthn-cargo-tabs .vinfast-lead-tab[aria-selected="true"] {
  background:var(--cntghn-brand)!important;
  color:var(--cntghn-on-brand)!important;
  box-shadow:none!important;
}
body.transport-native #main-content .tthn-cargo-tabs .vinfast-lead-tab:focus-visible {
  outline:2px solid var(--cntghn-brand-dark)!important;
  outline-offset:-2px!important;
}
body.transport-native #main-content .tthn-cargo-form {
  background:var(--cntghn-surface-soft)!important;
}
body.transport-native #main-content .tthn-cargo-form .vinfast-lead-heading :is(h1,h2,strong) {
  color:var(--cntghn-theme-link,var(--cntghn-brand-dark))!important;
}
body.transport-native #main-content .tthn-cargo-form .vinfast-lead-submit {
  background:var(--cntghn-brand)!important;
  color:var(--cntghn-on-brand)!important;
}
body.transport-native #main-content .tthn-cargo-form .vinfast-lead-submit:hover {
  background:var(--cntghn-brand-dark)!important;
  color:var(--cntghn-theme-on-dark,#fff)!important;
}
body.transport-native #main-content .tthn-cargo-form .vinfast-lead-field :is(input,select,textarea):focus {
  border-color:var(--cntghn-brand)!important;
  box-shadow:0 0 0 3px color-mix(in srgb,var(--cntghn-brand) 16%,transparent)!important;
}
body.transport-native #main-content .tthn-cargo-form .xg-p04-consent input[type=checkbox] {
  accent-color:var(--cntghn-brand)!important;
}
/* Keep Money and Service Hub shell border in the same palette. */
body.transport-native #main-content :is(.tct78-book-card,.tcat76-book-card):has(.tthn-cargo-tabs) {
  border-color:var(--cntghn-line)!important;
  background:var(--cntghn-surface-soft)!important;
}
