/* GO! Express — Public Tracking Page Styles */

.gx-tracking-page {
  padding: 130px 20px 80px;
  min-height: 80vh;
  background: var(--gx-page, #fcf5eb);
  font-family: inherit;
}

.gx-tracking-container {
  max-width: 860px;
  margin: 0 auto;
}

.gx-tracking-head {
  margin-bottom: 40px;
}

.gx-tracking-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #111b21;
  color: #ccec44;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
}

.gx-tracking-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #111b21;
  margin-bottom: 12px;
}

.gx-tracking-sub {
  font-size: 1.1rem;
  color: #5d6a63;
  margin-bottom: 28px;
}

/* Search Form */
.gx-tracking-form {
  display: flex;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 8px;
  border-radius: 50px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.06);
  border: 1px solid #e9ecef;
}

.gx-input-wrap {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
}

.gx-input-wrap i {
  color: #8d9a8d;
  font-size: 1.2rem;
}

.gx-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-family: inherit;
  color: #111b21;
  background: transparent;
}

.gx-tracking-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #111b21;
  color: #ffffff;
  border: none;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.gx-tracking-btn:hover {
  background: #000;
  transform: translateY(-1px);
}

/* States */
.gx-track-state {
  text-align: center;
  padding: 60px 20px;
}

.d-none {
  display: none !important;
}

.gx-spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #eef1eb;
  border-top-color: #111b21;
  border-radius: 50%;
  animation: gx-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes gx-spin {
  to { transform: rotate(360deg); }
}

/* Not Found Card */
.gx-not-found-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
  border: 1px solid #f0ede6;
  max-width: 480px;
  margin: 0 auto;
}

.gx-not-found-img {
  max-width: 180px;
  height: auto;
  margin-bottom: 20px;
}

.gx-not-found-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #111b21;
}

.gx-not-found-card p {
  color: #5d6a63;
  margin: 0;
  font-size: 0.95rem;
}

/* Result Card */
.gx-track-result {
  background: #ffffff;
  border-radius: 20px;
  border: 1px solid #f0ede6;
  box-shadow: 0 12px 36px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-top: 30px;
}

.gx-result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: #f8fbf9;
  border-bottom: 1px solid #edf2ee;
  flex-wrap: wrap;
  gap: 16px;
}

.gx-meta-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gx-brand-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #ccec44;
  color: #111b21;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.gx-meta-brand strong {
  display: block;
  font-size: 1.15rem;
  color: #111b21;
}

.gx-meta-brand small {
  color: #5d6a63;
  font-size: 0.85rem;
}

.gx-meta-code strong {
  font-size: 1.25rem;
  color: #111b21;
  margin-inline-start: 6px;
  font-family: monospace;
}

/* Stepper Journey */
.gx-stepper-wrap {
  padding: 40px 32px;
  border-bottom: 1px solid #edf2ee;
}

.gx-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.gx-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 2;
  flex: 0 0 120px;
}

.gx-step-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #f1f5f2;
  color: #8d9a8d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.gx-step.is-done .gx-step-circle {
  background: #25d366;
  color: #ffffff;
}

.gx-step.is-current .gx-step-circle {
  background: #111b21;
  color: #ccec44;
  box-shadow: 0 0 0 4px rgba(204, 236, 68, 0.4);
}

.gx-step-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #8d9a8d;
  transition: color 0.3s ease;
}

.gx-step.is-done .gx-step-label,
.gx-step.is-current .gx-step-label {
  color: #111b21;
  font-weight: 700;
}

.gx-step-line {
  flex: 1 1 auto;
  height: 4px;
  background: #f1f5f2;
  margin-top: -24px;
  position: relative;
  z-index: 1;
}

.gx-step-line.is-done {
  background: #25d366;
}

/* Timeline */
.gx-timeline-section {
  padding: 32px;
}

.gx-timeline-section h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gx-timeline-list {
  position: relative;
  padding-inline-start: 24px;
}

.gx-timeline-list::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  inset-inline-start: 6px;
  width: 2px;
  background: #e9ecef;
}

.gx-event-item {
  position: relative;
  margin-bottom: 24px;
}

.gx-event-item::before {
  content: '';
  position: absolute;
  inset-inline-start: -24px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111b21;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.gx-event-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 4px;
}

.gx-event-title {
  font-weight: 700;
  font-size: 1rem;
  color: #111b21;
}

.gx-event-time {
  font-size: 0.85rem;
  color: #8d9a8d;
}

.gx-event-desc {
  font-size: 0.9rem;
  color: #5d6a63;
  margin: 0;
}

@media (max-width: 640px) {
  .gx-tracking-form {
    flex-direction: column;
    border-radius: 20px;
  }
  .gx-tracking-btn {
    width: 100%;
    justify-content: center;
  }
  .gx-stepper {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  .gx-step {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: start;
    flex: none;
  }
  .gx-step-circle {
    margin-bottom: 0;
  }
  .gx-step-line {
    display: none;
  }
}
