.tracking-page {
  padding-bottom: 4rem;
}

.tracking-container {
  max-width: 760px;
  margin: 2rem auto 0;
  padding: 2rem;
  background: #ffffff;
  border: 1px solid rgba(10, 28, 61, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(10, 28, 61, 0.08);
}

.tracking-box {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.9rem;
  align-items: stretch;
}

.tracking-box input {
  flex: 1;
  min-width: 0;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(10, 28, 61, 0.16);
  border-radius: 14px;
  font: inherit;
  color: #0f1f3d;
  background: #f8fbff;
}

.tracking-box input:focus-visible {
  outline: 3px solid rgba(44, 179, 170, 0.25);
  outline-offset: 2px;
  border-color: #2cb3aa;
}

.tracking-box button {
  padding: 0.95rem 1.4rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #0e2347, #12376b);
  color: #ffffff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tracking-box button:hover,
.tracking-box button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(10, 28, 61, 0.18);
}

.tracking-box button:focus-visible {
  outline: 3px solid rgba(44, 179, 170, 0.3);
  outline-offset: 2px;
}

.error {
  margin-top: 0.9rem;
  color: #b42318;
  font-size: 0.95rem;
}

.hidden {
  display: none;
}

.result {
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(10, 28, 61, 0.08);
}

.overview {
  display: grid;
  gap: 0.7rem;
}

.overview h2,
.overview h3 {
  margin: 0;
}

.status-badge {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
}

.status-pending { background: #c67a00; }
.status-assigned { background: #1e64d6; }
.status-out-for-delivery { background: #0f8ca8; }
.status-delivered { background: #138a63; }
.status-cancelled { background: #c73b3b; }

.timeline-title {
  margin-top: 1.75rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #0f1f3d;
}

.timeline {
  border-left: 2px solid rgba(44, 179, 170, 0.35);
  padding-left: 1.2rem;
}

.timeline-item {
  position: relative;
  margin-bottom: 1.2rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.62rem;
  top: 0.25rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #2cb3aa;
  box-shadow: 0 0 0 6px rgba(44, 179, 170, 0.14);
}

.timeline-time {
  font-size: 0.88rem;
  color: #5f6f8e;
}

.timeline-status {
  margin-top: 0.15rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0f1f3d;
}

@media (max-width: 760px) {
  .tracking-container {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .tracking-box {
    flex-direction: column;
  }

  .tracking-box button {
    width: 100%;
  }
}
