/* ============================================================
   ONESTEP GLOBAL — Air Freight Quotation
   Palette: Sky Blue + Aviation Blue + White + supporting accents
   ============================================================ */

:root {
  /* core brand */
  --sky-50:  #f0f7ff;
  --sky-100: #e0f0ff;
  --sky-200: #bfe0ff;
  --sky-400: #38b6ff;
  --sky-500: #0ea5e9;

  --aviation-600: #1d5aa8;
  --aviation-700: #16457f;
  --aviation-800: #0f3366;
  --aviation-900: #0a2447;

  --accent: #f59e0b;       /* warm amber for featured / action */
  --accent-soft: #fef3e2;

  --ink-900: #0f1c33;
  --ink-700: #33415c;
  --ink-500: #6b7a91;
  --ink-400: #94a3b8;

  --line: #e2eaf4;
  --bg: #f4f8fc;
  --card: #ffffff;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 51, 102, .05);
  --shadow-md: 0 6px 20px -6px rgba(15, 51, 102, .14);
  --shadow-lg: 0 18px 40px -12px rgba(15, 51, 102, .24);

  --t-fast: .18s;
  --t-base: .28s;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(1100px 480px at 85% -8%, rgba(56, 182, 255, .12), transparent 60%),
    radial-gradient(900px 420px at 8% 12%, rgba(29, 90, 168, .07), transparent 62%);
  background-attachment: fixed;
  color: var(--ink-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--aviation-600); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--sky-500); }

h1, h2, h3, h4, h5 { color: var(--ink-900); font-weight: 700; letter-spacing: -.01em; }

.container { max-width: 1320px; margin: 0 auto; padding: 0 24px; width: 100%; }

/* ================= Header ================= */
.header {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(100deg, var(--aviation-900) 0%, var(--aviation-700) 55%, var(--aviation-600) 100%);
  color: #fff;
  box-shadow: 0 4px 20px -8px rgba(10, 36, 71, .5);
}
.header::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 120px at 90% 0%, rgba(56,182,255,.22), transparent 70%);
  pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px 24px; position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo svg { width: 34px; height: 34px; color: #fff; filter: drop-shadow(0 2px 6px rgba(56,182,255,.5)); }
.brand h1 { color: #fff; font-size: 19px; line-height: 1.1; letter-spacing: .08em; }
.brand span { color: rgba(255,255,255,.78); font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; }

.update-badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 7px 15px 7px 13px; border-radius: 999px;
  font-size: 12.5px; color: #fff; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
.update-label { letter-spacing: .05em; opacity: .92; }
.update-time { color: var(--sky-200); font-weight: 600; font-variant-numeric: tabular-nums; }
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, .65);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ================= Hero (compressed) ================= */
.hero-compact {
  padding: 34px 0 8px;
  animation: fadeUp .55s var(--ease) both;
}
.hero-inner { display: flex; align-items: center; }
.hero-text { max-width: 820px; }
.hero-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  color: var(--aviation-600); background: var(--sky-100);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
  border: 1px solid rgba(14,165,233,.22);
}
.hero-text h2 {
  font-size: clamp(24px, 3.4vw, 34px); line-height: 1.2; margin-bottom: 10px;
  background: linear-gradient(92deg, var(--aviation-800) 5%, var(--aviation-600) 45%, var(--sky-500) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-text p { font-size: 15px; color: var(--ink-500); max-width: 700px; }
.hero-text strong { color: var(--aviation-600); }

/* ================= Search ================= */
.search-section { padding: 22px 0 6px; }
.search-bar {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 14px; align-items: end;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-md);
  animation: fadeUp .6s .06s var(--ease) both;
}
.field label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-500); text-transform: uppercase; margin-bottom: 7px;
}
.field input {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink-900); font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: var(--ink-400); }
.field input:focus {
  outline: none; border-color: var(--sky-400);
  background: #fff; box-shadow: 0 0 0 4px rgba(14,165,233,.13);
}
.field-btn { display: flex; gap: 8px; }
.btn-search, .btn-reset {
  border: none; border-radius: var(--radius); font-size: 13.5px; font-weight: 700;
  cursor: pointer; transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
  white-space: nowrap; height: 42px; padding: 0 20px;
}
.btn-search {
  background: linear-gradient(96deg, var(--aviation-600), var(--sky-500));
  color: #fff; box-shadow: 0 6px 14px -4px rgba(29,90,168,.5);
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(29,90,168,.55); }
.btn-search:active { transform: translateY(0); }
.btn-reset { background: var(--bg); color: var(--ink-500); border: 1.5px solid var(--line); }
.btn-reset:hover { background: #fff; color: var(--aviation-600); border-color: var(--sky-200); }

/* ================= Table ================= */
.table-section { padding: 22px 0; }
.table-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.table-head h3 { font-size: 19px; display: flex; align-items: center; gap: 9px; }
.result-count { font-size: 12.5px; color: var(--ink-400); font-variant-numeric: tabular-nums; }

.table-responsive {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow-x: auto; box-shadow: var(--shadow-md);
  animation: fadeUp .6s .12s var(--ease) both;
}
table { width: 100%; min-width: 1080px; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
thead th {
  position: sticky; top: 0; z-index: 2;
  background: linear-gradient(180deg, var(--aviation-700), var(--aviation-800));
  color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-align: left; padding: 13px 14px; text-transform: uppercase; white-space: nowrap;
  border-bottom: 2px solid var(--aviation-900);
}
thead th:first-child { border-top-left-radius: var(--radius-lg); }
thead th:last-child  { border-top-right-radius: var(--radius-lg); }
thead th.col-45, thead th.col-100, thead th.col-300, thead th.col-500, thead th.col-1000 {
  text-align: right;
}
tbody td {
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-700); vertical-align: middle; white-space: nowrap;
}
tbody td:nth-child(n+5):nth-child(-n+9) { text-align: right; font-variant-numeric: tabular-nums; }
tbody tr { transition: background var(--t-fast); }
tbody tr:hover td { background: var(--sky-50); }
tbody tr:last-child td { border-bottom: none; }

/* price cells */
.price {
  font-weight: 700; color: var(--aviation-700); cursor: default;
  border-radius: 6px; padding: 3px 7px; margin: -3px -7px;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.price.empty { color: var(--ink-400); font-weight: 400; }

/* per-column hover highlight (driven by JS adding .col-hover on cells) */
tbody td.col-hover { background: var(--sky-100); }
thead th.col-hover { background: var(--sky-500); color: #fff; }
tbody td.price.price-hover {
  background: var(--aviation-600); color: #fff; transform: scale(1.06);
  box-shadow: 0 4px 12px -3px rgba(29,90,168,.45); z-index: 3; position: relative;
}

/* featured row */
tr.featured td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
tr.featured td { background: var(--accent-soft); }
tr.featured:hover td { background: #fdeccb; }
.carrier-cell { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-900); }
.badge-best {
  display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .06em;
  color: #fff; background: linear-gradient(96deg, var(--accent), #f97316);
  padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}
.routing { color: var(--ink-500); font-size: 12.5px; }
.remarks { color: var(--ink-500); font-size: 12.5px; }

.empty-state { padding: 56px 20px; text-align: center; color: var(--ink-400); font-size: 14px; }

/* ================= Notes + CTA ================= */
.notes-cta { padding: 14px 0; }
.notes-inner {
  display: grid; grid-template-columns: 1.7fr 1fr; gap: 22px; align-items: stretch;
  animation: fadeUp .6s .16s var(--ease) both;
}
.notes-box, .cta-box {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.notes-box h4, .cta-box h4 { font-size: 16px; margin-bottom: 12px; }
.notes-list { list-style: none; }
.notes-list li {
  position: relative; padding-left: 20px; margin-bottom: 8px; font-size: 13.5px; color: var(--ink-700);
}
.notes-list li::before {
  content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky-400), var(--aviation-600));
}
.cta-box { background: linear-gradient(140deg, var(--aviation-700), var(--aviation-800)); color: #fff; text-align: center; }
.cta-box h4 { color: #fff; }
.cta-box p { font-size: 13px; color: rgba(255,255,255,.82); margin-bottom: 16px; }
.btn-cta {
  border: none; border-radius: var(--radius); cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 12px 24px; color: #fff;
  background: linear-gradient(96deg, var(--accent), #f97316);
  box-shadow: 0 6px 14px -4px rgba(245,158,11,.6);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgba(245,158,11,.65); }
.btn-cta.btn-block { width: 100%; }

/* ================= Why ================= */
.why-section { padding: 34px 0; }
.section-title { font-size: 21px; margin-bottom: 22px; position: relative; padding-left: 14px; }
.section-title::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 4px;
  background: linear-gradient(180deg, var(--sky-400), var(--aviation-600));
}
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 22px; box-shadow: var(--shadow-sm);
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
  animation: fadeUp .55s var(--ease) both;
}
.why-card:nth-child(1) { animation-delay: .14s; }
.why-card:nth-child(2) { animation-delay: .20s; }
.why-card:nth-child(3) { animation-delay: .26s; }
.why-card:nth-child(4) { animation-delay: .32s; }
.why-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-200); }
.why-icon { font-size: 26px; margin-bottom: 12px; }
.why-card h5 { font-size: 15px; margin-bottom: 8px; color: var(--ink-900); }
.why-card p { font-size: 13px; color: var(--ink-500); }

/* ================= Footer ================= */
.footer {
  margin-top: auto; background: linear-gradient(100deg, var(--aviation-900), var(--aviation-700));
  color: rgba(255,255,255,.86); padding: 38px 0 0;
}
.footer-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding-bottom: 26px; }
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer-col p { font-size: 13px; color: rgba(255,255,255,.72); margin-bottom: 5px; }
.footer-col a { color: var(--sky-200); }
.footer-col a:hover { color: #fff; }
.footer-col .muted { color: rgba(255,255,255,.5); font-size: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 16px 24px; text-align: center;
  font-size: 12px; color: rgba(255,255,255,.5);
}

/* ================= Modal ================= */
.modal {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 36, 71, .52);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s var(--ease);
}
.modal.open { display: flex; }
.modal-card {
  position: relative; background: var(--card); border-radius: var(--radius-lg);
  padding: 30px; width: 100%; max-width: 460px; box-shadow: var(--shadow-lg);
  animation: pop .3s var(--ease);
}
.modal-card h4 { font-size: 18px; margin-bottom: 6px; }
.modal-route { font-size: 13px; color: var(--sky-500); font-weight: 600; margin-bottom: 18px; }
.modal-close {
  position: absolute; top: 14px; right: 16px; width: 30px; height: 30px;
  border: none; background: var(--bg); border-radius: 50%; font-size: 20px; line-height: 1;
  color: var(--ink-500); cursor: pointer; transition: background var(--t-fast), color var(--t-fast);
}
.modal-close:hover { background: var(--aviation-600); color: #fff; }
#inquiry-form { display: grid; gap: 12px; }
#inquiry-form input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--ink-900); font-size: 14px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
#inquiry-form input:focus { outline: none; border-color: var(--sky-400); background: #fff; box-shadow: 0 0 0 4px rgba(14,165,233,.13); }

/* ================= Floating contact ================= */
.fab-phone {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--aviation-600), var(--sky-500));
  color: #fff; box-shadow: 0 10px 26px -8px rgba(29,90,168,.6);
  transition: transform var(--t-base), box-shadow var(--t-base);
  animation: floatY 3.4s ease-in-out infinite;
}
.fab-phone svg { width: 24px; height: 24px; }
.fab-phone:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 32px -8px rgba(29,90,168,.7); }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

.contact-card {
  position: fixed; right: 26px; bottom: 96px; z-index: 95;
  width: 320px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg);
  display: none; animation: pop .28s var(--ease);
}
.contact-card.open { display: block; }
.contact-card h5 { font-size: 17px; }
.contact-card .role { font-size: 12.5px; color: var(--ink-400); margin-bottom: 4px; }
.contact-card hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.contact-card p { font-size: 13.5px; color: var(--ink-700); margin-bottom: 9px; word-break: break-all; }
.contact-card .muted { color: var(--ink-400); font-size: 12px; }
.contact-card .addr { font-size: 12.5px; }
.contact-card .modal-close { top: 12px; right: 12px; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(8px); } to { opacity: 1; transform: none; } }

/* ================= Responsive ================= */
@media (max-width: 900px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .notes-inner { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-wrap: wrap; }
  .update-badge { order: 3; margin-left: auto; }
  .search-bar { grid-template-columns: 1fr; }
  .field-btn { grid-column: 1; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .hero-text h2 { font-size: 23px; }
  .contact-card { right: 12px; left: 12px; width: auto; bottom: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
