/* =========================
   TRA CỨU ĐƠN HÀNG
   ========================= */

.tracking-page {
  min-height: calc(100vh - 180px);
  padding: 70px 20px;
}

.tracking-hero {
  max-width: 760px;
  margin: 0 auto 40px;
  text-align: center;
}

.tracking-hero h1 {
  margin-bottom: 12px;
  font-size: 38px;
}

.tracking-hero p {
  color: #666;
  margin-bottom: 28px;
}


/* FORM */

.tracking-form {
  display: flex;
  max-width: 620px;
  margin: 0 auto;
  gap: 12px;
}

.tracking-form input {
  flex: 1;
  min-width: 0;
  padding: 15px 18px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 16px;
  outline: none;
  background: white;
}

.tracking-form input:focus {
  border-color: #315fc4;
  box-shadow: 0 0 0 3px rgba(49, 95, 196, 0.1);
}


/* KẾT QUẢ */

.tracking-result {
  max-width: 760px;
  margin: 0 auto;
}


/* CARD */

.tracking-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}


/* HEADER */

.tracking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.tracking-header span,
.tracking-info span,
.order-code-box span {
  display: block;
  color: #777;
  font-size: 14px;
  margin-bottom: 6px;
}

.tracking-header h2 {
  margin: 0;
  color: #315fc4;
  font-size: 28px;
  letter-spacing: 0.5px;
}


/* STATUS */

.tracking-status {
  padding: 9px 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: #315fc4;
  font-weight: 600;
  white-space: nowrap;
}


/* INFO */

.tracking-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px 0;
}

.tracking-info strong {
  font-size: 17px;
}


/* TIMELINE */

.tracking-timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 20px;
  padding: 0 10px;
}

.tracking-timeline::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 35px;
  right: 35px;
  height: 2px;
  background: #e5e5e5;
  z-index: 0;
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 25%;
  text-align: center;
  color: #999;
  font-size: 13px;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eee;
  color: white;
  font-weight: bold;
}

.timeline-step.done {
  color: #315fc4;
}

.timeline-step.done .timeline-dot {
  background: #315fc4;
}

.timeline-step.current {
  font-weight: 700;
}


/* ERROR */

.tracking-error {
  background: white;
  border-radius: 18px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.tracking-error h3 {
  margin-bottom: 10px;
}

.tracking-error p {
  color: #666;
}


/* MOBILE */

@media (max-width: 650px) {

  .tracking-page {
    padding: 45px 16px;
  }

  .tracking-hero h1 {
    font-size: 30px;
  }

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

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

  .tracking-card {
    padding: 22px;
  }

  .tracking-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .tracking-header h2 {
    font-size: 24px;
  }

  .tracking-info {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .tracking-timeline {
    flex-direction: column;
    gap: 22px;
    padding: 0;
  }

  .tracking-timeline::before {
    top: 15px;
    bottom: 15px;
    left: 14px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .timeline-step {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
  }

}


/* =========================
   MÃ VẬN ĐƠN J&T
   ========================= */

.jnt-customer-tracking {
  margin-top: 24px;
  padding: 20px;

  border: 1px solid #e4e8f0;
  border-radius: 16px;

  background: #f8fbff;

  text-align: center;
}

.jnt-customer-label {
  display: block;

  margin-bottom: 8px;

  font-size: 12px;
  font-weight: 700;

  color: #6b7280;

  letter-spacing: 1px;
  text-transform: uppercase;
}

.jnt-customer-code {
  display: block;

  font-size: 28px;
  font-weight: 800;

  letter-spacing: 2px;

  color: #173f91;
}

.jnt-track-button {
  display: inline-block;

  margin-top: 14px;
  padding: 10px 18px;

  border-radius: 999px;

  background: #173f91;
  color: #fff;

  font-size: 13px;
  font-weight: 700;

  text-decoration: none;

  transition: .2s ease;
}

.jnt-track-button:hover {
  transform: translateY(-1px);
  opacity: .9;
}