:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: #101010;
  --panel-2: #171717;
  --ink: #f5f5f5;
  --muted: #a7a7a7;
  --line: #2b2b2b;
  --red: #e1121b;
  --red-dark: #9f0c13;
  --red-soft: rgba(225, 18, 27, 0.16);
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.92), rgba(18, 18, 18, 0.95)),
    url("https://images.unsplash.com/photo-1586528116311-ad8dd3c8310d?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.search-panel,
.result-shell {
  background: rgba(12, 12, 12, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.44);
}

.search-panel {
  padding: clamp(20px, 2.2vw, 28px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  font-weight: 800;
  min-height: 74px;
}

.brand-mark {
  width: clamp(142px, 18vw, 220px);
  height: auto;
  flex: 0 1 auto;
  display: block;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 0 18px rgba(225, 18, 27, 0.38));
}

.brand-copy {
  display: grid;
  gap: 7px;
  padding-left: 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  line-height: 1;
}

.brand-name {
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-style: italic;
  letter-spacing: 0;
  color: var(--white);
  font-size: clamp(24px, 3.2vw, 36px);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}

.brand {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: stretch;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-family: Arial Black, Arial, Helvetica, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 13px;
  line-height: 1.2;
}

h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(260px, 1.1fr) auto;
  gap: 10px;
  margin-top: 26px;
}

input,
button {
  height: 58px;
  border-radius: 0;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid #363636;
  padding: 0 18px;
  font-size: 17px;
  color: var(--white);
  background: #050505;
}

input::placeholder {
  color: #777;
}

input:focus {
  outline: 3px solid var(--red-soft);
  border-color: var(--red);
}

button {
  border: 0;
  padding: 0 24px;
  color: #fff;
  background: var(--red);
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--red-dark);
}

.hint {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.route-card {
  position: relative;
  min-height: 260px;
  padding: 28px;
  background:
    linear-gradient(145deg, rgba(225, 18, 27, 0.16), rgba(18, 18, 18, 0.95)),
    #111;
  border: 1px solid #2b2b2b;
  overflow: hidden;
}

.route-card::before {
  content: "";
  position: absolute;
  right: -52px;
  bottom: -62px;
  width: 220px;
  height: 220px;
  background: var(--red);
  transform: skewX(-12deg);
  opacity: 0.24;
}

.route-kicker {
  display: block;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.route-card strong {
  display: block;
  max-width: 260px;
  font-size: 40px;
  line-height: 1;
}

.route-card p {
  max-width: 300px;
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.result-shell {
  margin-top: 18px;
  min-height: 320px;
  padding: 28px;
}

.empty-state,
.not-found {
  max-width: 560px;
}

.empty-state h2,
.not-found h2 {
  margin: 0 0 10px;
  font-size: 28px;
}

.empty-state p,
.not-found p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.parcel-card {
  display: grid;
  gap: 24px;
}

.parcel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}

.parcel-head h2 {
  margin: 0;
  font-size: 38px;
}

.status-pill {
  max-width: 320px;
  padding: 10px 14px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  text-align: center;
}

.progress {
  display: grid;
  grid-template-columns: repeat(9, minmax(88px, 1fr));
  gap: 8px;
}

.step {
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #0a0a0a;
}

.step.done {
  border-color: rgba(225, 18, 27, 0.6);
  background: rgba(225, 18, 27, 0.1);
}

.step.current {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.step span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.step.current span {
  color: rgba(255, 255, 255, 0.72);
}

.step strong {
  display: block;
  font-size: 13px;
  line-height: 1.25;
}

.details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 0;
}

.details div {
  padding: 16px;
  background: var(--panel-2);
  min-width: 0;
  border: 1px solid var(--line);
}

dt {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

dd {
  margin: 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contents-box {
  padding: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(225, 18, 27, 0.1), rgba(23, 23, 23, 0.94)),
    var(--panel-2);
}

.contents-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}

.contents-box p {
  margin: 0;
  color: var(--white);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.note-box {
  padding: 18px;
  border-left: 4px solid var(--red);
  background: #16090a;
  line-height: 1.5;
}

.review-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(225, 18, 27, 0.48);
  background:
    linear-gradient(135deg, rgba(225, 18, 27, 0.2), rgba(12, 12, 12, 0.96)),
    var(--panel-2);
}

.review-box h3,
.review-box p {
  margin: 0;
}

.review-box h3 {
  margin-top: 6px;
  font-size: 26px;
}

.review-box p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.stars {
  display: block;
  color: var(--red);
  font-size: 22px;
  letter-spacing: 2px;
  text-shadow: 0 0 18px rgba(225, 18, 27, 0.35);
}

.review-box a {
  flex: 0 0 auto;
  color: var(--white);
  background: var(--red);
  padding: 14px 18px;
  text-decoration: none;
  font-weight: 800;
}

.review-box a:hover {
  background: var(--red-dark);
}

.support-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 14px;
}

.support-footer span {
  color: var(--white);
  font-weight: 800;
}

.support-footer a {
  color: var(--white);
  border: 1px solid var(--line);
  padding: 10px 14px;
  text-decoration: none;
  font-weight: 800;
}

.support-footer a:hover {
  border-color: var(--red);
  background: var(--red);
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .search-form,
  .progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-form button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .page {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .search-panel,
  .result-shell {
    padding: 18px;
  }

  .brand-row {
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
  }

  .brand-mark {
    width: min(62vw, 190px);
  }

  .brand-copy {
    padding-left: 12px;
  }

  .brand-name {
    font-size: clamp(22px, 8vw, 30px);
  }

  .layout,
  .search-form,
  .details,
  .progress {
    grid-template-columns: 1fr;
  }

  .route-card {
    min-height: 210px;
  }

  .parcel-head {
    display: grid;
  }

  .review-box {
    align-items: stretch;
    flex-direction: column;
  }

  .review-box a {
    text-align: center;
  }
}
