/* --- High-Contrast White Background Tracking Page --- */
.tracker-page-viewport {
  background-color: #ffffff; /* Crisp white background */
  color: #070b13; /* Deep contrast dark text color */
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
}

.tracker-card-container {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
}

.tracker-header {
  text-align: center;
  margin-bottom: 3rem;
}

.tracker-header h1 {
	position: relative;
	color: #1e3a8a!important;
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.75rem;
}

.tracker-header p {
  color: #4b5563; /* Subdued gray text */
  font-size: 1rem;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* Form Search Elements */
.tracker-input-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  background: #f3f4f6; /* Subtle off-white box wrapper */
  padding: 0.5rem;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  margin-bottom: 4rem;
}

.tracker-input-wrapper {
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.tracker-input-form input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  color: #070b13;
  font-family: inherit;
}

.btn-tracker-submit {
  background: #1e3a8a; /* Bold dark action trigger button */
  color: #ffffff;
  border: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-tracker-submit:hover {
  background: #1f2937;
}

/* Results Timelines Block CSS Matrices */
.tracker-results-area {
  display: none; /* Injected and revealed smoothly via JS simulation */
  border-top: 2px dashed #e5e7eb;
  padding-top: 3rem;
}

.order-meta-strip {
  display: flex;
  justify-content: space-between;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.5rem;
  font-size: 0.9rem;
  color: #374151;
  margin-bottom: 3rem;
}

/* Linear Vertical Visual Timeline Construction */
.shipping-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 2rem;
}

/* Vertical Spine Connecting Line */
.shipping-timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 7px;
  width: 2px;
  height: calc(100% - 16px);
  background: #e5e7eb;
  z-index: 1;
}

.timeline-step {
  position: relative;
  display: flex;
  gap: 1.5rem;
}

/* Visual Node Icons */
.status-indicator-node {
  position: absolute;
  left: -2rem;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d1d5db;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.node-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
}

.stage-details h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #9ca3af; /* Default unreached state color tint */
}

.stage-details p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #9ca3af;
}

/* --- STATE STYLES MANIPULATION VIA MODIFIER CLASSES --- */

/* Completed Process Steps */
.timeline-step.stage-complete .status-indicator-node {
  border-color: #070b13;
  background: #070b13;
}
.timeline-step.stage-complete .node-dot {
  background: #ffffff;
}
.timeline-step.stage-complete .stage-details h3 {
  color: #070b13;
}
.timeline-step.stage-complete .stage-details p {
  color: #4b5563;
}

/* Active Highlighted Realtime Stage */
.timeline-step.stage-active .status-indicator-node {
  border-color: #00f2cd; /* Neon Teal Accent ring */
  background: #ffffff;
  box-shadow: 0 0 12px rgba(0, 242, 205, 0.4);
}
.timeline-step.stage-active .node-dot {
  background: #00f2cd;
  width: 8px;
  height: 8px;
}
.timeline-step.stage-active .stage-details h3 {
  color: #070b13;
  font-weight: 800;
}
.timeline-step.stage-active .stage-details p {
  color: #111827;
}

/* Adaptive Breakpoints scaling layout on mobile */
@media (max-width: 576px) {
  .tracker-input-form {
    grid-template-columns: 1fr;
    background: transparent;
    border: none;
    padding: 0;
  }
  .tracker-input-wrapper {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.25rem 0.75rem;
  }
  .btn-tracker-submit {
    width: 100%;
    padding: 1rem;
  }
}