/* ── TRACKING SECTION RESET ─────────────────────────────────── */
.tracking-section {
  padding: 0 0 100px;
  background: #faf8f4;
}

/* ── NAVY HERO BAND ──────────────────────────────────────────── */
.tracking-section h2 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0;
  padding: 64px 20px 36px;
  background: linear-gradient(160deg, #05202f 0%, #082b47 60%, #0d4a78 100%);
  position: relative;
  text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.tracking-section h2::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c 35%, #e8c97a 60%, transparent);
}

.tracking-section h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  background: #c9a84c;
  margin: 16px auto 0;
}

/* ── FORM ────────────────────────────────────────────────────── */
.tracking-section > form {
  background: linear-gradient(160deg, #082b47 0%, #0d4a78 100%);
  margin: 0;
  padding: 0 20px 56px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0;
  box-shadow: none;
  width: 100%;
  gap: 0;
}

.tracking-section > form input[type="text"] {
  width: 420px;
  max-width: 60vw;
  padding: 18px 20px 18px 52px;
  border: 1.5px solid rgba(201,168,76,0.3);
  border-right: none;
  border-radius: 10px 0 0 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #1a1a2e;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' stroke='%23c9a84c' stroke-width='2'/%3E%3Cpath d='M20 20l-3-3' stroke='%23c9a84c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 18px center / 18px no-repeat;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.tracking-section > form input[type="text"]::placeholder {
  color: #aab0bc;
  font-weight: 400;
}

.tracking-section > form input[type="text"]:focus {
  border-color: rgba(201,168,76,0.7);
  box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 0 0 3px rgba(201,168,76,0.12);
}

.tracking-section > form button {
  padding: 18px 30px;
  background: linear-gradient(135deg, #c9a84c 0%, #a07830 100%);
  color: #05202f;
  border: none;
  border-radius: 0 10px 10px 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(201,168,76,0.35);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  white-space: nowrap;
  margin: 0;
}

.tracking-section > form button:hover {
  background: linear-gradient(135deg, #dbb85a 0%, #b88a38 100%);
  box-shadow: 0 12px 36px rgba(201,168,76,0.45);
}

.tracking-section::before {
  content: 'REAL-TIME TRACKING';
  display: block;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: #c9a84c;
  text-align: center;
  padding: 52px 20px 0;
  background: linear-gradient(160deg, #05202f 0%, #082b47 60%, #0d4a78 100%);
  margin: 0;
}

.tracking-section::after {
  display: none;
}

/* ── MOBILE FORM ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .tracking-section > form {
    flex-direction: column;
    padding: 0 16px 48px;
    gap: 10px;
  }
  .tracking-section > form input[type="text"] {
    width: 100%;
    max-width: 100%;
    border-right: 1.5px solid rgba(201,168,76,0.3);
    border-radius: 10px;
  }
  .tracking-section > form button {
    width: 100%;
    border-radius: 10px;
  }
  .tracking-section::before { padding-top: 40px; }
  .tracking-section h2 { padding: 16px 20px 30px; font-size: 1.9rem; }
}

/* ── SHIPMENT CARD ───────────────────────────────────────────── */
.shipment-card {
  max-width: 860px;
  margin: 48px auto;
  background: #ffffff;
  border-radius: 18px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 20px 60px rgba(8,43,71,0.10);
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.15);
  animation: cardEntrance 0.6s cubic-bezier(0.4,0,0.2,1) both;
}

@keyframes cardEntrance {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.shipment-card-header {
  background: linear-gradient(135deg, #05202f 0%, #082b47 60%, #0d4a78 100%);
  padding: 32px 38px;
  position: relative;
  overflow: hidden;
}

.shipment-card-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201,168,76,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201,168,76,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.shipment-card-header::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c9a84c 40%, #e8c97a 60%, transparent);
}

.card-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}

.card-tracking-num {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 26px;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 4px;
}

/* ══════════════════════════════════════════════════════════════
   ── ANIMATED STATUS TIMELINE ─────────────────────────────────
   ══════════════════════════════════════════════════════════════ */
.status-timeline-wrap {
  background: #faf8f4;
  border-bottom: 1px solid #f0ece4;
  padding: 36px 38px 28px;
}

.status-timeline {
  display: flex;
  align-items: center;
}

/* Each step fades + slides up on load */
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateY(14px);
  animation: stepFadeUp 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}

/* Stagger each step */
.status-step:nth-child(1)  { animation-delay: 0.10s; }
.status-step:nth-child(3)  { animation-delay: 0.22s; }
.status-step:nth-child(5)  { animation-delay: 0.34s; }
.status-step:nth-child(7)  { animation-delay: 0.46s; }
.status-step:nth-child(9)  { animation-delay: 0.58s; }
.status-step:nth-child(11) { animation-delay: 0.70s; }
.status-step:nth-child(13) { animation-delay: 0.82s; }

@keyframes stepFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Connector lines animate width left-to-right */
.status-line {
  height: 2px;
  flex: 1;
  background: #e8e4dc;
  position: relative;
  overflow: hidden;
}

.status-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #27ae60, #2ecc71);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0s; /* set by JS */
}

.line-completed::after {
  transform: scaleX(1);
}

/* Circles */
.status-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  transition: transform 0.3s;
}

.status-step:hover .status-circle {
  transform: scale(1.1);
}

/* Completed step */
.step-completed .status-circle {
  background: linear-gradient(135deg, #27ae60, #1e8449);
  box-shadow: 0 0 0 4px rgba(39,174,96,0.15);
}

/* Active step — upgraded gold pulse */
.step-active .status-circle {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.2);
  animation: pulseGold 2s ease-in-out infinite;
}

@keyframes pulseGold {
  0%, 100% {
    box-shadow:
      0 0 0 0   rgba(201,168,76,0.5),
      0 0 0 0   rgba(201,168,76,0.2);
  }
  50% {
    box-shadow:
      0 0 0 8px  rgba(201,168,76,0.15),
      0 0 0 16px rgba(201,168,76,0.05);
  }
}

/* Pending step */
.step-pending .status-circle {
  background: #e8e4dc;
  color: #aab0bc;
  box-shadow: none;
}

.status-step p {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: #8a9ab0;
  max-width: 72px;
}

.step-active p  { color: #a07830; font-weight: 700; }
.step-completed p { color: #1e8449; }

/* ── SHIPMENT FIELDS ─────────────────────────────────────────── */
.shipment-field {
  padding: 20px 38px;
  border-bottom: 1px solid #f5f3ef;
  transition: background 0.2s;
}

.shipment-field:hover { background: #fdf9f3; }

.field-icon {
  background: linear-gradient(135deg, rgba(201,168,76,0.12), rgba(201,168,76,0.06));
  border: 1px solid rgba(201,168,76,0.2);
  color: #c9a84c;
  transition: transform 0.2s, background 0.2s;
}

.shipment-field:hover .field-icon {
  transform: scale(1.08);
  background: rgba(201,168,76,0.18);
}

.field-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aab0bc;
}

.field-value {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #1a1a2e;
}

/* ── RECEIPT DOWNLOAD ────────────────────────────────────────── */
.receipt-download-section {
  max-width: 860px;
  margin: 0 auto 28px;
  text-align: right;
  padding: 0 4px;
}

.receipt-download-btn {
  background: linear-gradient(135deg, #082b47, #0a3d62) !important;
  border-radius: 8px !important;
  font-family: 'Inter', Arial, sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  box-shadow: 0 6px 20px rgba(8,43,71,0.25) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
  padding: 14px 24px !important;
}

.receipt-download-btn:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 32px rgba(8,43,71,0.35) !important;
}

.receipt-download-btn i { color: #c9a84c; }

/* ── MAP CARD ────────────────────────────────────────────────── */
.shipment-map-card {
  max-width: 860px;
  margin: 0 auto 32px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 20px 60px rgba(8,43,71,0.10);
  border: 1px solid rgba(201,168,76,0.15);
  animation: cardEntrance 0.6s 0.15s cubic-bezier(0.4,0,0.2,1) both;
}

.shipment-map-header {
  background: linear-gradient(135deg, #05202f 0%, #082b47 100%);
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.shipment-map-header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.5), transparent);
}

.shipment-map-header i { color: #c9a84c; font-size: 17px; }

.shipment-map-header span {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.85);
}

/* ── TRACKING HISTORY ────────────────────────────────────────── */
.tracking-history {
  max-width: 860px;
  margin: 0 auto 20px;
  background: #ffffff;
  border-radius: 18px;
  padding: 36px 38px;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.04),
    0 20px 60px rgba(8,43,71,0.08);
  border: 1px solid rgba(201,168,76,0.12);
  animation: cardEntrance 0.6s 0.25s cubic-bezier(0.4,0,0.2,1) both;
}

.tracking-history h3 {
  font-family: 'Cormorant Garamond', 'Georgia', serif;
  font-size: 1.7rem;
  font-weight: 600;
  color: #082b47;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.tracking-history h3::after {
  content: '';
  display: block;
  width: 36px;
  height: 2px;
  background: #c9a84c;
  margin-top: 10px;
  margin-bottom: 28px;
}

.history-timeline {
  border-left: 2px solid #e8e4dc;
  margin-left: 8px;
  padding-left: 28px;
}

.history-item {
  position: relative;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.45s cubic-bezier(0.4,0,0.2,1) forwards;
}

.history-item:nth-child(1) { animation-delay: 0.10s; }
.history-item:nth-child(2) { animation-delay: 0.20s; }
.history-item:nth-child(3) { animation-delay: 0.30s; }
.history-item:nth-child(4) { animation-delay: 0.40s; }
.history-item:nth-child(5) { animation-delay: 0.50s; }
.history-item:nth-child(6) { animation-delay: 0.60s; }
.history-item:nth-child(7) { animation-delay: 0.70s; }
.history-item:nth-child(8) { animation-delay: 0.80s; }

.history-dot {
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, #27ae60, #1e8449);
  border-radius: 50%;
  position: absolute;
  left: -36px;
  top: 4px;
  box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

.history-item:first-child .history-dot {
  background: linear-gradient(135deg, #c9a84c, #a07830);
  box-shadow: 0 0 0 3px rgba(39,174,96,0.15);
}

.history-content {
  background: #faf8f4;
  border: 1px solid rgba(201,168,76,0.12);
  border-radius: 10px;
  padding: 16px 20px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.history-item:hover .history-content {
  background: #fff;
  border-color: rgba(201,168,76,0.3);
  transform: translateX(4px);
}

.history-content strong {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #1a1a2e;
  display: block;
  margin-bottom: 4px;
}

.history-content span {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 12.5px;
  color: #8a9ab0;
  display: block;
  line-height: 1.6;
}

/* ── STATUS BADGE LARGE ──────────────────────────────────────── */
.status-badge-large {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 10px 22px;
  border-radius: 100px;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .shipment-card,
  .shipment-map-card,
  .tracking-history,
  .receipt-download-section {
    margin-left: 16px;
    margin-right: 16px;
  }
  .shipment-field { padding: 18px 24px; }
  .shipment-card-header { padding: 26px 24px; }
  .tracking-history { padding: 28px 24px; }
  .status-timeline-wrap { padding: 28px 16px 20px; }
}

@media (max-width: 600px) {
  .tracking-section h2 { font-size: 1.9rem; }
  .receipt-download-section { text-align: center; }
  .card-tracking-num { font-size: 18px; letter-spacing: 2px; }
  .history-timeline { padding-left: 20px; }
  .history-dot { left: -28px; }
  .status-step p { font-size: 9px; max-width: 56px; }
  .status-circle { width: 28px; height: 28px; font-size: 11px; }
}

/* ── KEYFRAMES ───────────────────────────────────────────────── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ── WHATSAPP FLOAT ──────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  right: 25px;
  bottom: 105px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 34px;
  z-index: 99999;
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

#topBtn {
  right: 25px;
  bottom: 25px;
}

@keyframes whatsappPulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.6); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0);   }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0);    }
}