:root {
  --bg: #f8f4ef;
  --card: rgba(255, 255, 255, 0.94);
  --text: #22262f;
  --muted: #707887;
  --line: #e6e8ee;
  --brand: #f6a623;
  --brand-deep: #de8c0d;
  --brand-soft: #fff3da;
  --pending: #edf0f5;
  --pending-text: #b3bac7;
  --success: #2d5f4b;
  --shadow: 0 22px 50px rgba(37, 42, 54, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(246, 166, 35, 0.16), transparent 22%),
    linear-gradient(180deg, #fbf8f3, var(--bg));
}

.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.hero {
  text-align: center;
  padding: 18px 0 14px;
}


.hero__logo {
  text-align: center;
  margin-bottom: 12px;
}

.hero__logo img {
  height: 50px;
  width: auto;
}


.hero__badge {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(246, 166, 35, 0.12);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 18px 0 10px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.04;
}

.hero p {
  max-width: 700px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.lookup-card,
.order-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.lookup-card {
  padding: 26px;
  margin-top: 24px;
}

.lookup-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 16px;
  align-items: end;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
  font-size: 16px;
  background: #fff;
}

.field input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(246, 166, 35, 0.14);
}

button {
  height: 52px;
  border: none;
  border-radius: 14px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: white;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 24px rgba(246, 166, 35, 0.24);
}

button:disabled { opacity: 0.75; cursor: wait; }

.message {
  min-height: 24px;
  margin: 16px 4px 0;
  font-weight: 600;
}

.message--error { color: #a23434; }
.message--success { color: var(--success); }

.results {
  display: grid;
  gap: 24px;
  margin-top: 24px;
}


.hidden {
  display: none !important;
}

.another-order {
  display: flex;
}

.another-order--top {
  justify-content: flex-end;
  margin: 8px 0 18px;
}

.another-order--bottom {
  justify-content: center;
  margin-top: 6px;
}

.another-order__button {
  min-width: 220px;
}

.order-card {
  padding: 28px;
}

.order-card__top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 22px;
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.current-status {
  margin: 6px 0 0;
  font-size: 30px;
}

.pill {
  background: rgba(246, 166, 35, 0.12);
  color: var(--brand-deep);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  white-space: nowrap;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.detail-box {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.detail-box--wide {
  grid-column: span 2;
}

.detail-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}

.detail-box strong {
  display: block;
  white-space: pre-wrap;
  line-height: 1.5;
  font-size: 15px;
}


.details-grid--compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.detail-box--micro {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 16px;
}

.detail-box--micro span {
  margin-bottom: 5px;
  font-size: 12px;
}

.detail-box--micro strong {
  font-size: 14px;
  line-height: 1.35;
}

.detail-box--description {
  grid-column: 1 / -1;
}

.timeline-wrap {
  margin-top: 28px;
  padding: 22px 20px 8px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.82), rgba(250,247,242,0.92));
  border: 1px solid #f1eadf;
}

.timeline-title-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.timeline-title-row h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.timeline-note {
  color: var(--muted);
  font-size: 14px;
}

.timeline-progress {
  min-width: 170px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.timeline-progress__label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 700;
}

.timeline-progress__bar {
  height: 9px;
  border-radius: 999px;
  background: #f0f2f6;
  overflow: hidden;
}

.timeline-progress__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}

.timeline-progress__value {
  display: block;
  margin-top: 10px;
  font-size: 14px;
}

.timeline-stage {
  --marker-col: 74px;
  position: relative;
  display: grid;
  grid-template-columns: var(--marker-col) 1fr;
  gap: 16px;
  min-height: 104px;
}

.timeline-stage__marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-stage__rail {
  position: absolute;
  top: 60px;
  bottom: -10px;
  left: calc(var(--marker-col) / 2);
  transform: translateX(-50%);
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(246,166,35,0.95), rgba(246,166,35,0.28));
}

.timeline-stage__rail.is-last {
  display: none;
}

.timeline-stage.is-pending .timeline-stage__rail {
  background: linear-gradient(180deg, #d9dee7, #eef1f5);
}

.timeline-stage__dot {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--brand), var(--brand-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(246, 166, 35, 0.28);
}

.timeline-stage__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  transform: translateY(-1px);
}

.timeline-stage__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline-stage.is-current .timeline-stage__dot {
  transform: scale(1.05);
  box-shadow: 0 0 0 8px rgba(246,166,35,0.16), 0 20px 38px rgba(246,166,35,0.3);
}

.timeline-stage.is-pending .timeline-stage__dot {
  background: linear-gradient(180deg, #fbfcfd, #f0f2f6);
  color: var(--pending-text);
  box-shadow: inset 0 0 0 1px #d9dee7;
}

.timeline-stage.is-pending .timeline-stage__icon {
  width: 26px;
  height: 26px;
}

.timeline-stage__content {
  padding: 6px 0 18px;
}

.timeline-stage__header-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.timeline-stage__label {
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-deep);
}

.timeline-stage.is-pending .timeline-stage__label {
  color: #9ca3af;
}

.timeline-stage__badge {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--brand-soft);
  color: var(--brand-deep);
}

.timeline-stage.is-current .timeline-stage__badge {
  background: rgba(246,166,35,0.16);
}

.timeline-stage.is-pending .timeline-stage__badge {
  background: #f3f5f8;
  color: #99a1ad;
}

.timeline-stage__date {
  margin-top: 8px;
  font-size: 16px;
  font-weight: 700;
}

.timeline-stage.is-pending .timeline-stage__date {
  color: #a8afbb;
}

.timeline-stage__helper {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.timeline-stage.is-pending .timeline-stage__helper {
  color: #a8afbb;
}

@media (max-width: 900px) {
  .lookup-form,
  .details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .details-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-box--wide,
  .detail-box--description {
    grid-column: span 2;
  }

  .timeline-title-row {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .page-shell {
    padding: 22px 14px 60px;
  }

  .lookup-form,
  .details-grid {
    grid-template-columns: 1fr;
  }

  .details-grid--compact {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .detail-box--wide,
  .detail-box--description {
    grid-column: span 2;
  }

  .order-card,
  .lookup-card {
    padding: 18px;
    border-radius: 22px;
  }

  .order-card__top {
    flex-direction: column;
    align-items: start;
  }

  .timeline-stage {
    --marker-col: 62px;
    grid-template-columns: var(--marker-col) 1fr;
    gap: 12px;
  }

  .timeline-stage__dot {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .timeline-stage__icon {
    width: 24px;
    height: 24px;
  }

  .timeline-stage__rail {
    top: 50px;
  }

  .current-status {
    font-size: 26px;
  }
}


/* Mobile-first refinements for the slick tracker */
@media (max-width: 760px) {
  .hero {
    text-align: left;
    padding: 8px 0 10px;
  }

  .hero p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
  }

  .lookup-card {
    margin-top: 18px;
  }

  .lookup-form {
    gap: 12px;
  }

  .field label {
    font-size: 14px;
    margin-bottom: 6px;
  }

  .field input,
  button {
    height: 50px;
    font-size: 15px;
  }

  .message {
    margin-top: 12px;
    font-size: 14px;
  }

  .results {
    gap: 18px;
    margin-top: 18px;
  }

  .order-card__top {
    margin-bottom: 16px;
  }

  .eyebrow {
    font-size: 11px;
  }

  .current-status {
    font-size: 24px;
    line-height: 1.1;
  }

  .pill {
    padding: 8px 12px;
    font-size: 13px;
  }

  .details-grid {
    gap: 10px;
  }

  .details-grid--compact {
    gap: 8px;
  }

  .detail-box {
    padding: 12px;
    border-radius: 16px;
  }

  .detail-box--micro {
    padding: 10px 10px;
    border-radius: 14px;
  }

  .detail-box span {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .detail-box strong {
    font-size: 14px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .detail-box--micro span {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .detail-box--micro strong {
    font-size: 13px;
    line-height: 1.3;
  }

  .timeline-wrap {
    margin-top: 20px;
    padding: 16px 14px 4px;
    border-radius: 20px;
  }

  .timeline-title-row {
    gap: 12px;
    margin-bottom: 14px;
  }

  .timeline-title-row h3 {
    font-size: 18px;
    margin-bottom: 4px;
  }

  .timeline-note {
    display: block;
    font-size: 13px;
    line-height: 1.45;
  }

  .timeline-progress {
    min-width: 0;
    width: 100%;
    padding: 10px 12px;
    border-radius: 16px;
  }

  .timeline-progress__value {
    margin-top: 8px;
  }

  .timeline-stage {
    --marker-col: 54px;
    grid-template-columns: var(--marker-col) 1fr;
    gap: 10px;
    min-height: 90px;
  }

  .timeline-stage__dot {
    width: 44px;
    height: 44px;
    box-shadow: 0 10px 22px rgba(246, 166, 35, 0.22);
  }

  .timeline-stage__icon,
  .timeline-stage.is-pending .timeline-stage__icon {
    width: 20px;
    height: 20px;
  }

  .timeline-stage__rail {
    top: 44px;
    width: 3px;
    bottom: -6px;
  }

  .timeline-stage__content {
    padding: 2px 0 14px;
  }

  .timeline-stage__header-row {
    align-items: flex-start;
    gap: 8px;
  }

  .timeline-stage__label {
    font-size: 16px;
    line-height: 1.25;
  }

  .timeline-stage__badge {
    font-size: 10px;
    padding: 5px 8px;
    letter-spacing: 0.04em;
  }

  .timeline-stage__date {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.35;
  }

  .timeline-stage__helper {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: 16px 10px 44px;
  }

  .details-grid--compact {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .hero__badge {
    font-size: 11px;
    padding: 7px 11px;
  }

  .hero h1 {
    margin: 14px 0 8px;
    font-size: 30px;
  }

  .order-card,
  .lookup-card {
    padding: 14px;
    border-radius: 18px;
  }

  .current-status {
    font-size: 21px;
  }

  .detail-box--micro {
    padding: 9px 9px;
  }

  .detail-box--micro strong {
    font-size: 12px;
  }

  .timeline-wrap {
    padding: 14px 10px 2px;
    border-radius: 18px;
  }

  .timeline-stage {
    --marker-col: 46px;
    grid-template-columns: var(--marker-col) 1fr;
    gap: 8px;
    min-height: 82px;
  }

  .timeline-stage__dot {
    width: 38px;
    height: 38px;
  }

  .timeline-stage__icon,
  .timeline-stage.is-pending .timeline-stage__icon {
    width: 18px;
    height: 18px;
  }

  .timeline-stage__rail {
    top: 38px;
  }

  .timeline-stage__label {
    font-size: 15px;
  }

  .timeline-stage__date,
  .timeline-stage__helper {
    font-size: 12.5px;
  }
}


/* Fix timeline rail alignment on small screens */
@media (max-width: 760px) {
  .timeline-stage__content {
    min-width: 0;
  }

  .timeline-stage__helper {
    max-width: 32ch;
  }
}


@media (max-width: 760px) {
  .another-order--top {
    justify-content: stretch;
    margin: 4px 0 14px;
  }

  .another-order__button {
    width: 100%;
    min-width: 0;
  }
}
