* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f3f3;
  color: #111;
  min-height: 100vh;
}

.page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 20px 80px;
}

.container {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.brand {
  font-family: "Times New Roman", serif;
  font-size: 70px;
  letter-spacing: 6px;
  color: #111;
  margin-bottom: 50px;
}

.title {
  font-size: 34px;
  font-weight: 800;
  color: #111;
  margin-bottom: 22px;
}

.subtitle {
  font-size: 15px;
  color: #222;
  margin-bottom: 28px;
}

.search-box {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 18px;
}

.search-box input {
  width: 100%;
  max-width: 420px;
  height: 60px;
  border: 1px solid #bfbfbf;
  background: #fff;
  padding: 0 18px;
  font-size: 18px;
  color: #111;
  outline: none;
}

.search-box input:focus {
  border-color: #111;
}

.search-box button {
  height: 60px;
  padding: 0 38px;
  border: none;
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.search-box button:hover {
  background: #222;
}

.error-message {
  display: none;
  color: #d93025;
  font-size: 14px;
  font-weight: 600;
  margin-top: 8px;
}

.result-area {
  display: none;
  margin-top: 30px;
  animation: fadeUp 0.45s ease;
}

.tracking-card {
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
  text-align: left;
}

.tracking-header {
  background: #000;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 22px;
}

.tracking-body {
  padding: 24px 22px 22px;
}

.product-info {
  margin-bottom: 20px;
}

.product-info h3 {
  font-size: 20px;
  color: #111;
  margin-bottom: 6px;
}

.product-info p {
  font-size: 14px;
  color: #666;
}

.status-box {
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 16px;
  padding: 22px 18px;
}

.status-arrival {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin-bottom: 18px;
}

.status-arrival span {
  color: #000;
  font-weight: 800;
}

.timeline {
  position: relative;
  padding-left: 28px;
  margin-left: 6px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: #d8d8d8;
  border-radius: 10px;
}

.step {
  position: relative;
  padding-bottom: 24px;
  opacity: 0.45;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #cfcfcf;
  z-index: 2;
}

.step.active,
.step.done {
  opacity: 1;
}

.step.active::before {
  border-color: #000;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.12);
}

.step.done::before {
  background: #000;
  border-color: #000;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: #999;
  margin-bottom: 5px;
}

.step.active .step-title,
.step.done .step-title {
  color: #000;
}

.step-desc {
  font-size: 14px;
  color: #444;
  line-height: 1.45;
  margin-bottom: 4px;
}

.step-date {
  font-size: 13px;
  color: #777;
}

.details-btn {
  width: 100%;
  margin-top: 18px;
  border: none;
  border-radius: 12px;
  background: #000;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.details-btn:hover {
  background: #222;
}

.extra-details {
  display: none;
  margin-top: 14px;
  border: 1px solid #ececec;
  background: #fbfbfb;
  border-radius: 12px;
  padding: 16px;
}

.extra-details p {
  font-size: 14px;
  color: #444;
  margin-bottom: 8px;
  line-height: 1.45;
}

.extra-details p:last-child {
  margin-bottom: 0;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(243, 243, 243, 0.92);
  backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.loading-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 18px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.10);
  animation: fadeUp 0.35s ease;
}

.spinner {
  width: 56px;
  height: 56px;
  border: 5px solid #e6e6e6;
  border-top: 5px solid #111;
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

.loading-box h3 {
  font-size: 24px;
  color: #111;
  margin-bottom: 10px;
}

.loading-box p {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.dots {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.dots span {
  width: 8px;
  height: 8px;
  background: #111;
  border-radius: 50%;
  animation: bounce 1.1s infinite ease-in-out;
}

.dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.dots span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0.7);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .page {
    padding: 40px 16px 60px;
  }

  .brand {
    font-size: 46px;
    letter-spacing: 4px;
    margin-bottom: 34px;
  }

  .title {
    font-size: 26px;
    margin-bottom: 18px;
  }

  .subtitle {
    font-size: 14px;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input,
  .search-box button {
    width: 100%;
    max-width: 100%;
  }

  .search-box button {
    margin-top: 10px;
  }

  .tracking-body {
    padding: 20px 16px 18px;
  }

  .step-title {
    font-size: 16px;
  }

  .status-arrival {
    font-size: 17px;
    margin-bottom: 16px;
  }

  .timeline {
    padding-left: 24px;
  }

  .step::before {
    left: -24px;
  }

  .details-btn {
    font-size: 16px;
    padding: 14px;
  }
}