@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300;0,400;0,600;0,700;1,400&display=swap");

/* Nhận diện lấy từ www.rwl-uae.com: đỏ RWL + mực + nền giấy, Open Sans. */
:root {
  --paper: #fafaf7;
  --surface: #ffffff;
  --ink: #0d0d0d;
  --ink-2: #2a2a2a;
  --muted: #6b6a65;
  --line: #e6e5df;
  --line-2: #d2d1ca;
  --red: #b02128;
  --red-deep: #8c1a20;
  --red-soft: #f6e4e5;
  --font: "Open Sans", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* Thanh trên */
.top { border-bottom: 1px solid var(--line); background: var(--paper); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--muted); font-size: .85rem; }
.brand img { height: 26px; width: auto; display: block; }
.brand span { border-left: 1px solid var(--line-2); padding-left: 14px; }
.top nav { display: flex; gap: 24px; font-size: .9rem; }
.top nav a { color: var(--ink-2); text-decoration: none; }
.top nav a:hover { color: var(--red); }

/* Hero: hành lang SEA → Dubai → EU */
.hero { padding: 64px 0 48px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.hero h1 { font-weight: 300; font-size: clamp(2.4rem, 5.6vw, 4.4rem); line-height: 1.02; letter-spacing: -.035em; max-width: 16ch; }
.hero .lede { font-size: 1.12rem; color: var(--ink-2); max-width: 46ch; margin: 0; }
.corridor { margin-top: 48px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0 20px; }
.corridor svg { display: block; width: 100%; height: auto; overflow: visible; }
.corridor .lane { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.corridor .lane.red { stroke: var(--red); stroke-width: 2.5; }
.corridor .stop { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.corridor .hub { fill: var(--red); }
.corridor text { font-family: var(--font); font-size: 13px; fill: var(--muted); }
.corridor text.big { font-size: 17px; font-weight: 600; fill: var(--ink); }
.corridor text.city { font-size: 12px; }
@media (prefers-reduced-motion: no-preference) {
  /* Vẽ tuyến đỏ một lần khi tải; nếu animation không chạy thì tuyến vẫn hiện đủ. */
  .corridor .lane.red { stroke-dasharray: 1200; animation: draw 1.8s .3s cubic-bezier(.6, 0, .2, 1) backwards; }
  @keyframes draw { from { stroke-dashoffset: 1200; } to { stroke-dashoffset: 0; } }
}

/* Form thanh toán */
.checkout { background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; margin-top: 8px; }
.part { padding: 32px 40px; border-bottom: 1px solid var(--line); }
.part:last-child { border-bottom: 0; }
.part > h2 { font-size: 1.3rem; display: flex; gap: 14px; align-items: baseline; }
.part > h2 b { color: var(--red); font-weight: 600; font-variant-numeric: tabular-nums; }
.part > .hint { margin: 6px 0 0 30px; }
.hint { font-size: .88rem; color: var(--muted); margin: 0; }

.pkgs { list-style: none; margin: 20px 0 0; padding: 0; }
.pkg { border-top: 1px solid var(--line); }
.pkg label { display: grid; grid-template-columns: 28px minmax(0, 1fr) 260px 130px; gap: 12px 24px; padding: 24px 0; cursor: pointer; align-items: start; }
.pkg input { margin: 5px 0 0; width: 18px; height: 18px; accent-color: var(--red); }
.pkg h3 { font-size: 1.2rem; }
.pkg .for { color: var(--muted); font-size: .92rem; margin: 2px 0 10px; }
.pkg ul { margin: 0; padding-left: 18px; font-size: .92rem; color: var(--ink-2); }
.pkg ul li { margin: 2px 0; }
.price { font-size: 1.9rem; font-weight: 300; letter-spacing: -.02em; text-align: right; font-variant-numeric: tabular-nums lining-nums; line-height: 1.1; }
.price small { display: block; font-size: .78rem; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.pkg:has(input:checked) { background: linear-gradient(var(--red-soft), var(--red-soft)) left / 3px 100% no-repeat; }
.pkg:has(input:checked) label { padding-left: 0; }

/* Thanh phạm vi: 5 chặng của hành lang */
.legs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; margin-top: 4px; }
.legs i { height: 8px; background: var(--line); border-radius: 1px; }
.legs i.on { background: var(--ink); }
.pkg:has(input:checked) .legs i.on { background: var(--red); }
.legs-note { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; margin-top: 22px; max-width: 760px; }
.field span { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 6px; }
.field span em { font-style: normal; font-weight: 400; color: var(--muted); }
.field input { font: inherit; color: var(--ink); width: 100%; padding: 11px 13px; border: 1px solid var(--line-2); border-radius: 4px; background: var(--surface); }
.field input:focus { border-color: var(--ink); outline: 2px solid rgba(176, 33, 40, .18); outline-offset: 0; }

.methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.method { position: relative; border: 1px solid var(--line-2); border-radius: 6px; padding: 20px 20px 18px 52px; cursor: pointer; display: block; }
.method input { position: absolute; left: 20px; top: 22px; width: 18px; height: 18px; margin: 0; accent-color: var(--red); }
.method h3 { font-size: 1.05rem; }
.method p { font-size: .88rem; color: var(--muted); margin: 6px 0 0; }
.method:has(input:checked) { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.method:has(input:disabled) { cursor: not-allowed; background: var(--paper); }
.method:has(input:disabled) h3, .method:has(input:disabled) .cards { opacity: .45; }
.method .soon { display: none; color: var(--red); }
.method:has(input:disabled) .soon { display: block; }
.cards { display: flex; gap: 6px; margin-top: 12px; }
.cards svg { width: 46px; height: 30px; display: block; border: 1px solid var(--line); border-radius: 4px; background: #fff; }

.confirm { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); max-width: 70ch; }
.confirm input { margin: 3px 0 0; width: 18px; height: 18px; flex: none; accent-color: var(--red); }
.submit { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 24px; }
.total { font-size: 1rem; color: var(--muted); }
.total b { display: block; font-size: 1.6rem; font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; }

.btn { font: 600 1rem var(--font); cursor: pointer; display: inline-block; text-decoration: none; text-align: center; border: 1px solid var(--ink); background: var(--ink); color: #fff; padding: 14px 28px; border-radius: 999px; transition: background-color .15s, border-color .15s; }
.btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }

/* Nội dung dưới */
.section { padding-top: 88px; }
.section > h2 { font-weight: 300; font-size: 2.2rem; letter-spacing: -.025em; margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-size: 2rem; font-weight: 300; color: var(--red); line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { font-size: .92rem; color: var(--muted); margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; }
.policy p { color: var(--ink-2); max-width: 66ch; }
.contact { border-left: 1px solid var(--line-2); padding-left: 32px; font-size: .95rem; }
.contact h3 { font-size: 1.1rem; margin-bottom: 12px; }
.contact address { font-style: normal; color: var(--ink-2); margin-bottom: 16px; }
.contact p { color: var(--muted); }

.foot { margin-top: 96px; border-top: 1px solid var(--line); }
.foot .wrap { padding-top: 28px; padding-bottom: 40px; display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot a { color: var(--muted); }

/* Trang văn bản (terms, privacy) */
.doc { max-width: 740px; margin: 0 auto; padding: 56px 24px 0; }
.doc h1 { font-weight: 300; font-size: 2.6rem; letter-spacing: -.03em; margin-bottom: 6px; }
.doc h2 { font-size: 1.15rem; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.7; }
.doc .updated { color: var(--muted); font-size: .9rem; margin-bottom: 32px; }

/* Trang đơn hàng do Worker render (biên nhận, hướng dẫn chuyển khoản) */
.sheet { max-width: 720px; margin: 48px auto; padding: 40px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 6px; }
.sheet h1 { font-weight: 300; font-size: 2.1rem; letter-spacing: -.025em; margin-bottom: 12px; }
.sheet .state { display: inline-block; font-size: .85rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--ink-2); margin-bottom: 16px; }
.sheet .state.ok { background: #e3f1e7; color: #1d6b37; }
.sheet .state.bad { background: var(--red-soft); color: var(--red-deep); }
.sheet table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.sheet th, .sheet td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: .95rem; }
.sheet th { color: var(--muted); font-weight: 400; width: 38%; }
.sheet td { font-weight: 600; overflow-wrap: anywhere; }
.ref { border: 1px solid var(--ink); border-radius: 4px; padding: 16px 20px; margin: 20px 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ref span { color: var(--muted); font-size: .9rem; }
.ref b { font-size: 1.6rem; font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

@media (max-width: 960px) {
  .pkg label { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .pkg .scope { grid-column: 2 / -1; grid-row: 2; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .top nav { display: none; }
  .hero { padding: 40px 0 32px; }
  .hero-head { grid-template-columns: 1fr; gap: 24px; }
  .corridor { margin-top: 32px; }
  .part { padding: 26px 20px; }
  .part > .hint { margin-left: 0; }
  .pkg label { grid-template-columns: 24px minmax(0, 1fr); }
  .pkg .price { grid-column: 2; text-align: left; }
  .fields, .methods { grid-template-columns: 1fr; }
  .steps, .split { grid-template-columns: 1fr; }
  .split { gap: 40px; }
  .contact { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-2); padding-top: 28px; }
  .sheet { margin: 24px 16px; padding: 28px 20px; }
  .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print {
  .top nav, .foot, .actions { display: none; }
  body { background: #fff; }
  .sheet { border: 0; margin: 0; padding: 0; }
}
