:root {
  --bg: #f3f7fc;
  --bg-2: #eef5ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #122238;
  --muted: #60728a;
  --primary: #0a3b78;
  --primary-2: #0d5bbb;
  --primary-soft: #eaf3ff;
  --accent: #ff8a00;
  --accent-2: #ffb347;
  --success: #18a058;
  --danger: #dc3545;
  --warning: #f59e0b;
  --line: #dfe8f4;
  --line-strong: #cbd7e8;
  --shadow: 0 24px 70px rgba(13, 46, 82, .14);
  --shadow-soft: 0 14px 38px rgba(13, 46, 82, .09);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --container: 1180px;
  --header-h: 74px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 6%, rgba(13, 91, 187, .12), transparent 28%),
    linear-gradient(180deg, #f9fbff 0%, var(--bg) 46%, #fff 100%);
  line-height: 1.55;
}
body.modal-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--container), calc(100% - 32px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: -50px; z-index: 1000; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 999px; transition: .2s; }
.skip-link:focus { top: 16px; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(223,232,244,.9);
}
.app-header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); letter-spacing: -.03em; }
.brand__mark { width: 38px; height: 38px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); box-shadow: var(--shadow-soft); }
.brand__name { white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; color: #33475f; }
.main-nav a { transition: .16s ease; }
.main-nav a:hover { color: var(--primary-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--surface-soft); color: var(--primary); cursor: pointer; font-weight: 900; }

.btn {
  border: 0;
  min-height: 46px;
  border-radius: 999px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  font-weight: 800;
  color: var(--text);
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }
.btn--primary { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); box-shadow: 0 14px 34px rgba(255,138,0,.28); }
.btn--primary:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 18px 42px rgba(255,138,0,.34); }
.btn--soft { background: var(--primary-soft); color: var(--primary); }
.btn--soft:hover { background: #dcebff; }
.btn--ghost { background: #fff; border: 1px solid var(--line); color: var(--primary); }
.btn--ghost:hover { border-color: #b9d5fb; }
.btn--lg { min-height: 52px; padding-inline: 22px; }
.btn--full { width: 100%; }

.hero { padding: 68px 0 42px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: center; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; width: fit-content; gap: 8px; color: var(--primary-2); background: var(--primary-soft); border: 1px solid #cce2ff; border-radius: 999px; font-size: 13px; font-weight: 800; padding: 8px 12px; }
h1 { margin: 18px 0 18px; max-width: 720px; font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.055em; }
.hero__lead { max-width: 710px; margin: 0 0 26px; color: var(--muted); font-size: 17px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 660px; }
.trust-grid span { background: rgba(255,255,255,.82); border: 1px solid var(--line); padding: 12px 14px; border-radius: 16px; color: #2d4158; font-size: 14px; font-weight: 700; }

.product-panel { position: relative; background: rgba(255,255,255,.88); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius-xl); padding: 24px; overflow: hidden; }
.product-panel::before { content: ""; position: absolute; top: -120px; right: -100px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(13,91,187,.18), transparent 70%); pointer-events: none; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.035em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 14px; }
.status-dot { color: var(--success); background: #eafaf1; border: 1px solid #c7f0d9; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 900; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.product-card { position: relative; min-height: 178px; display: flex; flex-direction: column; justify-content: space-between; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; cursor: pointer; transition: .18s ease; }
.product-card:hover, .product-card.is-active { transform: translateY(-2px); border-color: #79aff4; box-shadow: 0 14px 34px rgba(13,91,187,.12); }
.product-card.is-active::after { content: "Đang chọn"; position: absolute; right: 12px; top: 12px; color: var(--primary-2); background: var(--primary-soft); border-radius: 999px; padding: 4px 8px; font-size: 11px; font-weight: 900; }
.product-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 16px; background: linear-gradient(135deg, #edf6ff, #fff4e6); font-size: 22px; margin-bottom: 10px; }
.product-card h3 { margin: 0 0 7px; font-size: 15px; line-height: 1.32; letter-spacing: -.02em; }
.product-card p { margin: 0; color: var(--muted); font-size: 12.5px; }
.product-card__foot { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 14px; color: var(--primary); font-weight: 900; font-size: 12.5px; }
.product-card__foot span:last-child { color: var(--primary-2); }
.social-proof { display: flex; align-items: flex-start; gap: 10px; margin-top: 16px; background: #fff8ec; border: 1px solid #ffdda5; color: #80500a; border-radius: 16px; padding: 12px 14px; font-size: 13px; }
.social-proof__dot { width: 13px; height: 13px; border-radius: 999px; background: #19c463; box-shadow: 0 0 0 4px rgba(25,196,99,.12); flex: 0 0 auto; margin-top: 3px; }

.section { padding: 58px 0; }
.section-head { margin-bottom: 24px; }
.section-head h2 { margin: 12px 0 10px; font-size: clamp(26px, 3vw, 38px); line-height: 1.15; letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); max-width: 780px; }

.quote-shell, .checkout-shell { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 20px; align-items: start; }
.quote-main, .checkout-main, .summary-card, .upload-card, .b2b-help, .data-grid-card, .lookup-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-soft); padding: 24px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; color: #34475f; padding: 10px 14px; font-size: 13px; font-weight: 800; cursor: pointer; }
.tab.is-active { color: var(--primary-2); background: var(--primary-soft); border-color: #b9d7ff; }
.quote-form, .smart-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field, .lookup-form label { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .lookup-form span { font-size: 13px; font-weight: 900; color: #263a52; }
input, select, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 15px; padding: 12px 14px; outline: none; transition: .16s ease; }
input:focus, select:focus, textarea:focus { border-color: var(--primary-2); box-shadow: 0 0 0 4px rgba(13,91,187,.1); }
input.is-invalid, select.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(220,53,69,.08); }
.error-text { display: none; color: var(--danger); font-size: 12px; }
.error-text.is-visible { display: block; }
.micro-note, .hint { margin: 0; color: var(--muted); font-size: 12px; }
.choice-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { border: 1px solid var(--line); background: #fff; border-radius: 18px; padding: 14px; text-align: left; cursor: pointer; transition: .16s ease; }
.choice:hover, .choice.is-active { border-color: var(--primary-2); background: #f2f8ff; }
.choice strong { display: block; margin-bottom: 4px; font-size: 14px; }
.choice span { color: var(--muted); font-size: 12px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.form-actions--center { justify-content: center; }
.summary-card { position: sticky; top: calc(var(--header-h) + 18px); }
.summary-card h3 { margin: 0 0 14px; font-size: 20px; letter-spacing: -.035em; }
.summary-list { margin: 0; display: grid; gap: 0; }
.summary-list div { display: flex; justify-content: space-between; gap: 14px; border-bottom: 1px dashed var(--line); padding: 10px 0; }
.summary-list dt { color: var(--muted); font-size: 14px; }
.summary-list dd { margin: 0; font-weight: 900; color: var(--primary); text-align: right; font-size: 14px; }
.summary-total { color: var(--primary); font-size: 30px; font-weight: 900; letter-spacing: -.05em; margin: 16px 0 4px; }
.summary-trust { display: grid; gap: 9px; color: #40546c; font-size: 13px; margin-top: 16px; }
.skeleton { display: none; margin-top: 18px; }
.skeleton.is-visible { display: block; }
.skeleton div { height: 14px; border-radius: 999px; background: linear-gradient(90deg, #edf2f8, #f9fbfe, #edf2f8); background-size: 220% 100%; animation: skeleton 1.05s linear infinite; margin: 12px 0; }
.skeleton div:nth-child(1) { width: 70%; }
.skeleton div:nth-child(2) { width: 94%; }
.skeleton div:nth-child(3) { width: 50%; }
@keyframes skeleton { to { background-position: -220% 0; } }

.checkout-section { background: linear-gradient(180deg, rgba(234,243,255,.42), transparent); }
.stepper { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 18px; }
.step { min-width: 148px; flex: 1; background: #f3f6fa; color: var(--muted); border-radius: 999px; padding: 10px 12px; text-align: center; font-size: 12px; font-weight: 900; }
.step.is-active { background: var(--primary-soft); color: var(--primary-2); }
.step.is-done { background: #ecfdf3; color: var(--success); }
.review-box { border: 1px solid var(--line); border-radius: 20px; padding: 17px; background: #fff; margin-bottom: 14px; }
.review-box__head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; }
.review-box h3 { margin: 0; font-size: 16px; }
.edit-link { border: 0; padding: 0; background: transparent; color: var(--primary-2); font-weight: 900; cursor: pointer; }
.review-list { display: grid; gap: 7px; color: #34485f; font-size: 14px; }
.confirm-box { display: flex; gap: 10px; align-items: flex-start; background: #fff8ec; border: 1px solid #ffdda5; border-radius: 18px; padding: 14px; font-size: 14px; }
.confirm-box input { width: 18px; height: 18px; min-height: auto; margin-top: 2px; flex: 0 0 auto; }
.payment-methods { display: grid; gap: 10px; margin-top: 14px; }
.payment-method { border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 14px; font-weight: 900; text-align: left; cursor: pointer; }
.payment-method.is-active { border-color: var(--primary-2); background: #f2f8ff; }

.b2b-section { background: #fff; }
.b2b-shell { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: stretch; }
.upload-card { border-style: dashed; display: grid; place-items: center; text-align: center; min-height: 280px; }
.upload-card.is-active { border-color: var(--primary-2); background: #f3f8ff; }
.upload-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 22px; background: var(--primary-soft); font-size: 30px; margin-bottom: 8px; }
.upload-card h3 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.upload-card p { margin: 8px auto 12px; max-width: 520px; color: var(--muted); }
.upload-card input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.b2b-help h3 { margin-top: 0; }
.b2b-help ul { color: #3c5067; padding-left: 20px; }
.data-grid-card { margin-top: 20px; }
.grid-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.grid-head h3 { margin: 0 0 4px; }
.grid-head p { margin: 0; color: var(--muted); }
.grid-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
.data-grid { width: 100%; border-collapse: collapse; min-width: 760px; background: #fff; }
.data-grid th, .data-grid td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.data-grid th { background: #f6f9fd; color: #31455b; font-weight: 900; }
.data-grid td[contenteditable="true"] { outline: 0; }
.data-grid tr.has-error { background: #fff5f5; }
.data-grid td.cell-error { color: var(--danger); box-shadow: inset 3px 0 0 var(--danger); background: #fff0f0; font-weight: 800; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 900; }
.badge--ok { color: var(--success); background: #eafaf1; }
.badge--err { color: var(--danger); background: #fff0f0; }

.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.timeline article, .faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow-soft); }
.timeline span { width: 36px; height: 36px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-2); display: grid; place-items: center; font-weight: 900; }
.timeline h3, .faq-item h3 { margin: 12px 0 7px; font-size: 16px; }
.timeline p, .faq-item p { margin: 0; color: var(--muted); font-size: 13px; }
.lookup-card { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 24px; align-items: center; }
.lookup-card h2 { margin: 12px 0 8px; font-size: 32px; letter-spacing: -.04em; }
.lookup-card p { margin: 0; color: var(--muted); }
.lookup-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.faq-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

.app-footer { margin-top: 42px; background: #081f3d; color: #dce9f8; padding: 44px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.app-footer h3, .app-footer h4 { margin-top: 0; color: #fff; }
.app-footer p, .app-footer a { color: #bfd1e5; font-size: 14px; }
.app-footer a { display: block; margin: 8px 0; }

.mobile-sticky { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--line); background: rgba(255,255,255,.92); backdrop-filter: blur(18px); box-shadow: 0 -12px 34px rgba(13,46,82,.1); }
.mobile-sticky .btn { flex: 1; min-height: 44px; padding: 10px 12px; font-size: 13px; }
.toast { position: fixed; left: 50%; bottom: 92px; z-index: 130; max-width: calc(100% - 32px); transform: translateX(-50%) translateY(18px); opacity: 0; pointer-events: none; background: #0d2036; color: #fff; border-radius: 999px; padding: 12px 16px; font-size: 13px; box-shadow: var(--shadow); transition: .18s ease; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 18px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,25,43,.48); backdrop-filter: blur(6px); }
.modal__panel { position: relative; width: min(560px, 100%); background: #fff; border-radius: 26px; padding: 26px; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 999px; background: #f2f5f9; cursor: pointer; font-size: 22px; }
.success-mark { width: 64px; height: 64px; border-radius: 24px; background: #eafaf1; color: var(--success); display: grid; place-items: center; font-size: 32px; font-weight: 900; margin-bottom: 14px; }
.modal h2 { margin: 0 34px 8px 0; letter-spacing: -.04em; }
.modal p { color: var(--muted); }
.modal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.reveal { animation: reveal .42s ease both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1050px) {
  .hero__grid, .quote-shell, .checkout-shell, .b2b-shell, .lookup-card { grid-template-columns: 1fr; }
  .summary-card { position: static; }
  .timeline, .faq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lookup-form { grid-template-columns: 1fr 1fr; }
  .lookup-form .btn { grid-column: 1 / -1; }
}

@media (max-width: 840px) {
  :root { --header-h: 64px; }
  .app-header__inner { height: var(--header-h); }
  .icon-btn { display: grid; place-items: center; }
  .main-nav { display: none; position: absolute; left: 16px; right: 16px; top: calc(var(--header-h) + 8px); background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); padding: 12px; }
  .main-nav.is-open { display: grid; gap: 4px; }
  .main-nav a { padding: 12px 14px; border-radius: 14px; }
  .main-nav a:hover { background: var(--primary-soft); }
  .header-actions .btn { display: none; }
  .header-actions .icon-btn { display: grid; }
}

@media (max-width: 640px) {
  body { padding-bottom: 74px; }
  .container { width: min(100% - 24px, var(--container)); }
  .hero { padding: 34px 0 28px; }
  h1 { font-size: 38px; }
  .hero__actions, .trust-grid, .product-grid, .quote-form, .smart-form, .choice-grid, .timeline, .faq-grid, .footer-grid, .lookup-form { grid-template-columns: 1fr; display: grid; }
  .hero__actions .btn { width: 100%; }
  .product-panel, .quote-main, .checkout-main, .summary-card, .upload-card, .b2b-help, .data-grid-card, .lookup-card { border-radius: 24px; padding: 18px; }
  .product-card { min-height: auto; }
  .section { padding: 40px 0; }
  .field--full { grid-column: auto; }
  .form-actions .btn, .form-actions label.btn { width: 100%; }
  .step { flex: 0 0 auto; min-width: 142px; }
  .grid-head { display: grid; }
  .mobile-sticky { display: flex; }
  .modal__panel { padding: 22px; border-radius: 22px; }
  .footer-grid { gap: 16px; }
}

/* V4.2 - Decree 67 pricing UI refinements */
.legal-note {
  grid-column: 1 / -1;
  border: 1px solid #cce2ff;
  background: linear-gradient(135deg, #f2f8ff, #ffffff);
  border-radius: 18px;
  padding: 14px 16px;
  display: grid;
  gap: 4px;
}
.legal-note strong { color: var(--primary); font-size: 14px; }
.legal-note span { color: var(--muted); font-size: 12.5px; }
.choice-grid--dense { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-grid--motor_type { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice-grid--vehicle_group { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-breakdown {
  display: grid;
  gap: 7px;
  margin: 8px 0 14px;
  padding: 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 16px;
  background: #f8fbff;
}
.price-breakdown:empty { display: none; }
.price-breakdown div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #40546c;
  font-size: 12.5px;
}
.price-breakdown strong { color: var(--primary); }
.price-breakdown p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 760px) {
  .choice-grid--dense,
  .choice-grid--motor_type,
  .choice-grid--vehicle_group { grid-template-columns: 1fr; }
}
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 12px; white-space: pre-wrap; word-break: break-word; }

/* V4.6 - public UI hardening and visual polish */
.icon-3d {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  font-size: 20px;
  line-height: 1;
  background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(234,243,255,.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 10px 22px rgba(13,46,82,.12);
  transform: translateY(0);
}
.tab .icon-3d {
  width: 26px;
  height: 26px;
  font-size: 15px;
  border-radius: 10px;
  margin-right: 3px;
  vertical-align: middle;
}
.product-icon {
  width: 54px;
  height: 54px;
  border-radius: 20px;
  background: linear-gradient(145deg, #ffffff, #eaf4ff);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 16px 30px rgba(13,46,82,.13);
}
.product-card:hover .icon-3d,
.tab:hover .icon-3d {
  transform: translateY(-1px);
}
.icon-3d--motorbike { background: linear-gradient(145deg, #f3fbff, #dff1ff); }
.icon-3d--car { background: linear-gradient(145deg, #fff7ed, #ffe4bd); }
.icon-3d--travel { background: linear-gradient(145deg, #eefdf6, #d8f6eb); }
.icon-3d--worker { background: linear-gradient(145deg, #fff8e6, #ffe7a8); }
.icon-3d--shield { background: linear-gradient(145deg, #edf4ff, #dbe9ff); }

body {
  font-family: "Be Vietnam Pro", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.app-footer p,
.lookup-card p,
.section-head p,
.hero__lead {
  letter-spacing: -0.01em;
}

.legal-note span:empty,
.api-note:empty {
  display: none !important;
}


/* V4.8 - mobile/desktop UX conversion polish */
:root {
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}
html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}
body {
  overflow-x: hidden;
}
#quote,
#flow,
#lookup,
#products,
#claim,
#faq,
#b2b {
  scroll-margin-top: calc(var(--header-h) + 18px);
}
.container {
  max-width: var(--container);
}
.hero__content,
.product-panel,
.quote-main,
.summary-card,
.checkout-main,
.upload-card,
.b2b-help,
.data-grid-card,
.lookup-card,
.timeline article,
.faq-item {
  will-change: auto;
}
.product-card,
.choice,
.tab,
.btn,
.payment-method {
  touch-action: manipulation;
}
.product-card,
.choice,
.review-box,
.summary-card,
.quote-main,
.checkout-main,
.lookup-card {
  overflow-wrap: anywhere;
}
.main-nav a,
.footer-grid a {
  position: relative;
}
.main-nav a::after,
.footer-grid a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -5px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .18s ease;
  opacity: .35;
}
.main-nav a:hover::after,
.footer-grid a:hover::after {
  transform: scaleX(1);
}
.product-card:focus-visible,
.choice:focus-visible,
.tab:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(13, 91, 187, .24);
  outline-offset: 3px;
}
.quote-shell,
.checkout-shell,
.b2b-shell,
.lookup-card {
  container-type: inline-size;
}
.stepper {
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.step {
  scroll-snap-align: start;
}
.checkout-actions {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  padding: 10px;
  margin-left: -10px;
  margin-right: -10px;
  border-radius: 22px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 44px rgba(13,46,82,.10);
}
.summary-total {
  line-height: 1.08;
}
.mobile-sticky {
  align-items: center;
  padding: 10px 14px calc(10px + var(--safe-bottom));
}
.mobile-sticky__info {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 1px;
}
.mobile-sticky__info span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-sticky__info strong {
  color: var(--primary);
  font-size: 15px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-sticky__mini {
  flex: 0 0 auto !important;
  width: auto !important;
  padding-inline: 12px !important;
}

@media (min-width: 1051px) {
  .quote-shell,
  .checkout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(330px, 380px);
  }
  .quote-main,
  .checkout-main,
  .summary-card {
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .quote-main:hover,
  .checkout-main:hover,
  .summary-card:hover {
    box-shadow: var(--shadow);
  }
}

@media (max-width: 1050px) {
  .hero__grid {
    gap: 28px;
  }
  .checkout-summary {
    order: -1;
  }
  .summary-card.checkout-summary {
    display: grid;
    gap: 12px;
  }
  .checkout-summary .summary-trust {
    display: none;
  }
}

@media (max-width: 840px) {
  .app-header {
    background: rgba(255,255,255,.95);
  }
  .brand__name {
    font-size: 15px;
  }
  .main-nav.is-open {
    max-height: min(70vh, 420px);
    overflow: auto;
  }
  .main-nav a::after,
  .footer-grid a::after {
    display: none;
  }
  .hero__lead {
    font-size: 15px;
  }
  .trust-grid span {
    padding: 10px 12px;
  }
  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-inline: -2px;
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab {
    flex: 0 0 auto;
  }
  .stepper {
    display: flex;
    overflow-x: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }
  .checkout-actions .btn {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
    --radius-xl: 24px;
    --radius-lg: 20px;
  }
  body {
    background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 42%, #fff 100%);
    padding-bottom: calc(82px + var(--safe-bottom));
  }
  .container {
    width: min(100% - 20px, var(--container));
  }
  .app-header__inner {
    gap: 10px;
  }
  .brand__mark {
    width: 34px;
    height: 34px;
    border-radius: 13px;
  }
  .hero {
    padding: 24px 0 22px;
  }
  .eyebrow,
  .section-kicker {
    font-size: 12px;
    padding: 7px 10px;
  }
  h1 {
    margin-top: 14px;
    font-size: clamp(30px, 9.2vw, 38px);
    line-height: 1.12;
    letter-spacing: -.045em;
  }
  .hero__lead,
  .section-head p,
  .panel-head p {
    font-size: 14px;
  }
  .hero__actions {
    gap: 10px;
  }
  .hero__actions .btn,
  .form-actions .btn,
  .form-actions label.btn {
    min-height: 50px;
  }
  .trust-grid {
    gap: 8px;
  }
  .product-panel,
  .quote-main,
  .checkout-main,
  .summary-card,
  .upload-card,
  .b2b-help,
  .data-grid-card,
  .lookup-card {
    padding: 16px;
    border-radius: 22px;
  }
  .panel-head {
    align-items: stretch;
  }
  .status-dot {
    width: fit-content;
  }
  .product-card {
    min-height: 128px;
    padding: 15px;
  }
  .product-card.is-active::after {
    right: 10px;
    top: 10px;
  }
  .product-card__foot {
    margin-top: 10px;
  }
  .social-proof {
    font-size: 12px;
    padding: 10px 12px;
  }
  .section {
    padding: 34px 0;
  }
  .section-head {
    margin-bottom: 16px;
  }
  .section-head h2,
  .lookup-card h2 {
    font-size: 26px;
  }
  .quote-shell,
  .checkout-shell,
  .b2b-shell {
    gap: 14px;
  }
  .quote-form,
  .smart-form {
    gap: 13px;
  }
  input,
  select,
  textarea {
    min-height: 50px;
    border-radius: 14px;
    font-size: 16px;
  }
  .choice {
    padding: 13px;
  }
  .summary-list div {
    gap: 10px;
  }
  .price-breakdown {
    padding: 10px;
  }
  .price-breakdown div {
    align-items: flex-start;
  }
  .review-box {
    padding: 14px;
    border-radius: 18px;
  }
  .review-box__head {
    gap: 8px;
  }
  .review-list {
    gap: 8px;
  }
  .payment-methods {
    grid-template-columns: 1fr;
  }
  .lookup-card {
    gap: 16px;
  }
  .lookup-form {
    gap: 10px;
  }
  .timeline article,
  .faq-item {
    padding: 16px;
  }
  .table-wrap {
    margin-inline: -16px;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }
  .data-grid {
    min-width: 720px;
  }
  .modal {
    align-items: end;
    padding: 10px;
  }
  .modal__panel {
    max-height: calc(100vh - 24px);
    overflow: auto;
    border-radius: 24px 24px 18px 18px;
    padding: 20px;
  }
  .modal-actions .btn {
    flex: 1 1 100%;
  }
  .toast {
    bottom: calc(92px + var(--safe-bottom));
    border-radius: 18px;
    width: min(420px, calc(100% - 24px));
    text-align: center;
  }
  .mobile-sticky {
    display: flex;
  }
  .mobile-sticky .btn {
    min-height: 46px;
    font-size: 13px;
  }
  .mobile-sticky [data-mobile-sticky-buy] {
    flex: 0 0 auto;
    min-width: 132px;
  }
}

@media (max-width: 380px) {
  .container {
    width: min(100% - 16px, var(--container));
  }
  .brand__name {
    display: none;
  }
  .mobile-sticky__mini {
    display: none;
  }
  .mobile-sticky [data-mobile-sticky-buy] {
    min-width: 122px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* V4.9 - responsive form and desktop polish */
html, body {
  max-width: 100%;
  overflow-x: clip;
}
.container,
.hero__grid,
.quote-shell,
.checkout-shell,
.b2b-shell,
.quote-main,
.checkout-main,
.summary-card,
.smart-form,
.quote-form,
.choice-grid,
.field,
.review-box,
.modal__panel {
  min-width: 0;
}
.quote-main,
.checkout-main,
.summary-card,
.upload-card,
.b2b-help,
.data-grid-card,
.lookup-card {
  max-width: 100%;
}
input,
select,
textarea,
button,
.btn {
  max-width: 100%;
}
input[data-date-ui="vi"] {
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}
.price-breakdown:empty {
  display: none;
}
.price-breakdown div span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.summary-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}
.checkout-body {
  min-width: 0;
  overflow: visible;
}
.field--full {
  grid-column: 1 / -1;
}
.choice-grid,
.payment-methods,
.review-list {
  max-width: 100%;
}
.choice {
  width: 100%;
  min-width: 0;
}
.choice strong,
.choice span,
.review-list dt,
.review-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 1051px) {
  .quote-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
    align-items: start;
  }
  .checkout-shell {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 370px);
    align-items: start;
  }
  .quote-main,
  .checkout-main {
    padding: 26px;
  }
  .summary-card {
    padding: 24px;
  }
  .smart-form,
  .quote-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .choice-grid--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  .quote-shell,
  .checkout-shell,
  .b2b-shell {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .checkout-summary {
    order: -1;
  }
  .smart-form,
  .quote-form,
  .choice-grid,
  .payment-methods {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .checkout-main,
  .quote-main,
  .summary-card {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }
  .checkout-body {
    overflow: hidden;
  }
  .field,
  .field--full,
  .choice-grid,
  .confirm-box,
  .review-box {
    width: 100%;
    max-width: 100%;
  }
  .stepper {
    margin-inline: -4px;
    padding-inline: 4px;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: 82px;
  }
  .container {
    width: min(100% - 20px, var(--container));
  }
  .quote-main,
  .checkout-main,
  .summary-card,
  .upload-card,
  .b2b-help,
  .data-grid-card,
  .lookup-card {
    padding: 16px;
    border-radius: 22px;
  }
  .smart-form,
  .quote-form {
    gap: 12px;
  }
  .form-actions.checkout-actions {
    position: sticky;
    bottom: 78px;
    z-index: 30;
    margin-inline: -16px;
    padding: 12px 16px;
    background: linear-gradient(180deg, rgba(255,255,255,.76), #fff 34%);
    border-top: 1px solid var(--line);
  }
  .form-actions.checkout-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
  .review-list div,
  .summary-list div {
    display: grid;
    grid-template-columns: minmax(92px, .72fr) minmax(0, 1fr);
    align-items: start;
  }
  .summary-total {
    font-size: 28px;
  }
  .price-breakdown {
    margin-top: 8px;
  }
  .price-breakdown div {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}


/* V5.0 - hero spacing, summary readability and checkout mobile controls */
.status-dot,
.panel-head .status-dot {
  display: none !important;
}

@media (min-width: 1051px) {
  .hero {
    padding: 48px 0 36px;
  }
  .hero__grid {
    align-items: start;
    gap: 42px;
  }
  .eyebrow {
    margin-top: 4px;
  }
  h1 {
    margin: 16px 0 14px;
  }
  .hero__lead {
    margin-bottom: 20px;
  }
  .hero__actions {
    margin-bottom: 18px;
  }
  .product-panel {
    margin-top: 0;
    padding: 22px;
  }
  .panel-head {
    margin-bottom: 16px;
  }
}

.checkout-summary .summary-list {
  gap: 12px;
}
.checkout-summary .summary-list div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3px;
  padding: 10px 0;
}
.checkout-summary .summary-list dt {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  line-height: 1.25;
}
.checkout-summary .summary-list dd {
  text-align: left;
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}
.checkout-summary .summary-total {
  margin-top: 12px;
}

.mobile-sticky[hidden],
.mobile-sticky.is-hidden {
  display: none !important;
}

@media (max-width: 840px) {
  .hero {
    padding-top: 22px;
  }
  .product-panel .panel-head {
    display: block;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(76px + var(--safe-bottom));
  }
  body:has([data-checkout-section]:not([hidden])) {
    padding-bottom: calc(22px + var(--safe-bottom));
  }
  .form-actions.checkout-actions {
    position: static !important;
    bottom: auto !important;
    z-index: auto;
    margin: 18px 0 0;
    padding: 0;
    background: transparent;
    border-top: 0;
    box-shadow: none;
    backdrop-filter: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .form-actions.checkout-actions .btn {
    width: 100%;
    min-height: 52px;
  }
  .checkout-body {
    padding-bottom: 0;
  }
  .checkout-main {
    overflow: visible;
  }
  .checkout-summary .summary-list div,
  .review-list div {
    grid-template-columns: 1fr !important;
  }
  .checkout-summary .summary-list dd,
  .review-list dd {
    text-align: left;
  }
}
