.freight-page {
  --tracking-muted: #546677;
  --tracking-border: #dbe4ea;
  --tracking-accent: #1367d4;
  --tracking-wash: #f0f4f7;
  background: var(--tracking-wash);
}
.freight-wrap { width: min(1120px, calc(100% - 64px)); }
.freight-intro {
  padding: 44px 0 72px;
  background: var(--navy);
  color: #fff;
}
.freight-intro h1 {
  margin: 0 0 15px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.freight-intro p { margin: 0; color: #d5e2eb; font-size: 16px; line-height: 1.55; }
.freight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(245px, .36fr);
  align-items: start;
  gap: 24px;
  padding-bottom: 72px;
  margin-top: -34px;
  position: relative;
}
.freight-content { min-width: 0; }
.freight-search, .freight-result {
  background: #fff;
  border: 1px solid var(--tracking-border);
  border-radius: 12px;
  box-shadow: 0 10px 25px #1126330b;
}
.freight-search { padding: 28px; }
.freight-search p { margin: 0; }
.freight-search label { display: block; font-size: 14px; font-weight: 700; margin: 0 0 9px; }
.freight-search-row { display: flex; gap: 12px; }
.freight-search input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  height: 53px;
  border: 1px solid #a5b6c4;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 0 14px;
  font: inherit;
  font-size: 17px;
}
.freight-search input:focus-visible { outline: 2px solid var(--tracking-accent); outline-offset: 2px; }
.freight-search input[type="password"] { margin-top: 6px; }
.freight-search label[for="tracking-preview-key"] { margin-top: 18px; }
.freight-search .button {
  flex: 0 0 auto;
  min-height: 53px;
  padding: 13px 22px;
  justify-content: center;
  border-radius: 7px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
}
.freight-search .button:disabled { opacity: .75; cursor: wait; transform: none; }
#freight-message:not(:empty) { margin-top: 14px; color: var(--tracking-muted); font-size: 14px; line-height: 1.5; }
.freight-support {
  margin-top: 58px;
  padding: 22px 0 22px 24px;
  border-left: 1px solid #cfdae3;
}
.freight-support h2 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.freight-support p { margin: 0 0 10px; color: var(--tracking-muted); font-size: 14px; line-height: 1.55; }
.freight-call { display: inline-block; color: #135db9; font-weight: 700; font-size: 17px; }
.freight-call:hover { text-decoration: underline; text-underline-offset: 3px; }
.freight-result { margin-top: 18px; overflow: hidden; }
.freight-result-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  background: #f8fafc;
  border-bottom: 1px solid var(--tracking-border);
  padding: 24px 28px;
}
.freight-load-ref { margin: 0 0 6px; font-size: 14px; color: var(--tracking-muted); overflow-wrap: anywhere; }
.freight-result-head h2 {
  margin: 0;
  font-size: clamp(35px, 4vw, 52px);
  line-height: 1.04;
  letter-spacing: -.04em;
  font-weight: 700;
}
.freight-result[data-status="delivered"] .freight-result-head h2 { color: #176644; }
.freight-result[data-status="delayed"] .freight-result-head h2 { color: #8c4c08; }
.freight-result-body { padding: 25px 28px 28px; }
.freight-result-body h3 { margin: 0 0 18px; font-size: 16px; }
.freight-progress {
  list-style: none;
  padding: 0;
  margin: 0;
}
.freight-step {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 16px;
  min-height: 65px;
  padding: 10px 0 15px;
  color: var(--tracking-muted);
}
.freight-step:last-child { min-height: 0; padding-bottom: 0; }
.freight-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 13px;
  top: 38px;
  bottom: -10px;
  width: 2px;
  background: #d8e2ea;
}
.freight-step[data-state="complete"]::after { background: var(--tracking-accent); }
.freight-step-mark {
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 2px solid #aebdca;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  font-weight: 700;
}
.freight-step[data-state="complete"] .freight-step-mark { color: white; border-color: var(--tracking-accent); background: var(--tracking-accent); }
.freight-step[data-state="current"] .freight-step-mark { border-color: var(--tracking-accent); box-shadow: 0 0 0 4px #eaf2fc; }
.freight-step[data-state="current"] .freight-step-mark::before {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--tracking-accent);
}
.freight-step-details { min-width: 0; padding-top: 1px; }
.freight-step-name, .freight-step-state { display: block; }
.freight-step-name { font-size: 15px; line-height: 1.35; font-weight: 700; color: var(--ink); }
.freight-step-state { margin-top: 3px; font-size: 12px; line-height: 1.35; }
.freight-step[data-state="current"] .freight-step-state { color: #135db9; font-weight: 700; }
.freight-step-time {
  display: block;
  padding-top: 1px;
  color: var(--tracking-muted);
  text-align: right;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  line-height: 1.45;
}
.freight-step-time span { display: block; }
.freight-step-time span:first-child { color: var(--ink); font-weight: 700; }
.freight-location {
  max-width: 240px;
  padding: 13px 16px;
  background: var(--tracking-wash);
  border-radius: 8px;
}
.freight-location h3 { margin: 0 0 5px; font-size: 12px; }
.freight-location-value { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; }
.freight-location-age { margin: 4px 0 0; font-size: 13px; color: var(--tracking-muted); }
.freight-location-age:empty { display: none; }
@media (max-width: 720px) {
  .freight-wrap { width: min(100% - 40px, 1120px); }
  .freight-intro { padding: 32px 0 61px; }
  .freight-intro p { font-size: 15px; }
  .freight-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 40px; margin-top: -28px; }
  .freight-support { margin-top: 0; padding: 17px 0 2px; border-left: 0; border-top: 1px solid #cfdae3; }
}
@media (max-width: 540px) {
  .freight-result-head { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .freight-location { max-width: none; }
}
@media (max-width: 440px) {
  .freight-search, .freight-result-head, .freight-result-body { padding: 19px; }
  .freight-search-row { flex-direction: column; gap: 9px; }
  .freight-search .button { width: 100%; }
  .freight-step { grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; }
  .freight-step-name { font-size: 14px; }
  .freight-step-time { grid-column: 2; text-align: left; margin-top: 5px; font-size: 12px; }
  .freight-step-time span { display: inline; }
  .freight-step-time span + span::before { content: ' · '; }
}
