* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #f5f7fa;
  color: #1A1A2E;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ════════ HEADER ════════ */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}


.logo-icon {
  width: 72px;
  height: 72px;
  background: transparent;  /* ✅ No background */
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.logo-icon svg {
  width: 48px;
  height: 48px;
  fill: #003366;  /* ✅ Changed to ocean blue (no background needed) */
}

.logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;  /* ✅ Changed from 'cover' to 'contain' */
  border-radius: 10px;
  display: block;
}

.company-name {
  font-size: 20px;
  font-weight: 700;
  color: #003366;
}

.company-name span {
  color: #008B8B;
}

.header-nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.header-nav a {
  color: #666;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover {
  color: #008B8B;
}

/* ════════ HERO / TRACKING SEARCH ════════ */
.hero {
  background: linear-gradient(135deg, #003366 0%, #008B8B 100%);
  padding: 60px 24px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,60 C300,100 600,20 1200,60 L1200,120 L0,120 Z' fill='%23f5f7fa'/%3E%3C/svg%3E") no-repeat center bottom;
  background-size: 100% 100%;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #fff;
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 17px;
  margin-bottom: 32px;
}

/* Tracking Search Box */
.tracking-search {
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  gap: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
}

.tracking-search input {
  flex: 1;
  padding: 18px 24px;
  border: none;
  outline: none;
  font-size: 16px;
  font-family: 'Inter', sans-serif;
  color: #1A1A2E;
  background: transparent;
}

.tracking-search input::placeholder {
  color: #999;
}

.tracking-search button {
  padding: 18px 36px;
  background: linear-gradient(135deg, #003366, #008B8B);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tracking-search button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 139, 139, 0.4);
}

.tracking-search button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.tracking-search button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.hero-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin-top: 16px;
}

/* ════════ FEATURE CARDS ════════ */
.features-section {
  max-width: 1200px;
  margin: -20px auto 40px;
  padding: 0 24px;
  position: relative;
  z-index: 3;
}

.features-section.hidden {
  display: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 80px 24px 24px 24px;
  padding-right: 80px; /* space for icon */
  text-align: left;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  position: absolute;
  top: 20px;
  left: 20px;  /* Changed from right: 20px to left: 20px */
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.1), rgba(0, 139, 139, 0.1));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  fill: #008B8B;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 6px;
  text-align: left;
}

.feature-subtitle {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  text-align: left;
}

/* ════════ MAIN CONTENT ════════ */
.main-content {
  max-width: 1000px;
  margin: 40px auto 40px;
  padding: 0 24px;
  flex: 1;
}


/* Go Back Button - Text Style */
.back-button {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 0;
  background: transparent;
  border: none;
  color: #003366;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

.back-button:hover {
  color: #008B8B;
}

.back-button:hover span {
  text-decoration: underline;
}

.back-button.visible {
  display: inline-flex;
}

.back-button svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}


/* Status Banner */
.status-banner {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
  border-left: 6px solid #008B8B;
}

.status-banner.status-delivered {
  border-left-color: #16a34a;
}

.status-banner.status-in_transit, .status-banner.status-at_port {
  border-left-color: #008B8B;
}

.status-banner.status-pending, .status-banner.status-processed {
  border-left-color: #f59e0b;
}

.status-banner.status-customs {
  border-left-color: #8b5cf6;
}

.status-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.status-main {
  flex: 1;
}

.status-label {
  font-size: 13px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 6px;
}

.status-title {
  font-size: 28px;
  font-weight: 800;
  color: #003366;
  margin-bottom: 4px;
}

.status-subtitle {
  font-size: 15px;
  color: #666;
}

.status-date {
  text-align: right;
  background: #f0fdf4;
  padding: 16px 24px;
  border-radius: 12px;
  min-width: 200px;
}

.status-date.delivered {
  background: #f0fdf4;
}

.status-date.transit {
  background: #eff6ff;
}

.status-date .date-label {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.status-date .date-value {
  font-size: 20px;
  font-weight: 700;
  color: #003366;
}

.status-date .date-time {
  font-size: 13px;
  color: #666;
  margin-top: 2px;
}


/* ════════ TRACKING HISTORY (Vertical Timeline) ════════ */
.history-section {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}

.history-section h3 {
  font-size: 20px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.history-section h3::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, #003366, #008B8B);
  border-radius: 2px;
}

.history-timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical connecting line */
.history-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #008B8B 0%, #e0e0e0 100%);
  border-radius: 2px;
}

/* ════════ TIMELINE ITEM LAYOUT ════════ */
.history-item {
  position: relative;
  padding: 20px 0;
  padding-left: 24px;
  border-bottom: 1px solid #f5f5f5;
}

.history-item:last-child {
  border-bottom: none;
}

/* ════════ DOT ON THE LINE ════════ */
.history-dot {
  position: absolute;
  left: -30px;
  top: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s;
}

.history-dot svg {
  width: 20px;
  height: 20px;
  fill: #999;
}

/* ════════ STATUS-BASED DOT COLORS ════════ */
.history-dot.status-pending {
  background: #fef3c7;
  border-color: #f59e0b;
}
.history-dot.status-pending svg { fill: #f59e0b; }

.history-dot.status-processed {
  background: #dbeafe;
  border-color: #3b82f6;
}
.history-dot.status-processed svg { fill: #3b82f6; }

.history-dot.status-in_transit {
  background: #d1fae5;
  border-color: #008B8B;
}
.history-dot.status-in_transit svg { fill: #008B8B; }

.history-dot.status-at_port {
  background: #e0e7ff;
  border-color: #6366f1;
}
.history-dot.status-at_port svg { fill: #6366f1; }

.history-dot.status-customs {
  background: #fce7f3;
  border-color: #ec4899;
}
.history-dot.status-customs svg { fill: #ec4899; }

.history-dot.status-delivered {
  background: #dcfce7;
  border-color: #16a34a;
}
.history-dot.status-delivered svg { fill: #16a34a; }

/* ════════ ACTIVE DOT (PULSING ANIMATION) ════════ */
.history-dot.active {
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 139, 139, 0.5);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(0, 139, 139, 0);
  }
}

/* ════════ CONTENT LAYOUT ════════ */
.history-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Date & Time - top row */
.history-datetime {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: #999;
  font-weight: 500;
  flex-wrap: wrap;
}

.history-datetime .date {
  color: #003366;
  font-weight: 600;
  font-size: 14px;
}

.history-datetime .time {
  color: #666;
  padding-left: 12px;
  border-left: 2px solid #e0e0e0;
}

/* Title - main heading */
.history-title {
  font-size: 17px;
  font-weight: 700;
  color: #003366;
  margin-top: 4px;
  line-height: 1.3;
}

/* Location */
.history-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #008B8B;
  font-weight: 500;
}

.history-location svg {
  width: 14px;
  height: 14px;
  fill: #008B8B;
  flex-shrink: 0;
}

/* Description */
.history-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-top: 2px;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 600px) {
  .history-timeline {
    padding-left: 30px;
  }
  
  .history-dot {
    left: -25px;
    width: 34px;
    height: 34px;
  }
  
  .history-dot svg {
    width: 16px;
    height: 16px;
  }
  
  .history-title {
    font-size: 15px;
  }
  
  .history-datetime {
    font-size: 12px;
  }
}


/* Vertical connecting line */
.history-timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #008B8B 0%, #e0e0e0 100%);
  border-radius: 2px;
}

.history-item {
  position: relative;
  padding: 20px 0;
  padding-left: 20px;
}

/* Dot on the line */
.history-dot {
  position: absolute;
  left: -30px;
  top: 28px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s;
}

.history-dot svg {
  width: 18px;
  height: 18px;
  fill: #999;
}

/* Active/current item (first one) */
.history-item:first-child .history-dot {
  background: linear-gradient(135deg, #003366, #008B8B);
  border-color: #003366;
  animation: pulseDot 2s ease-in-out infinite;
}

.history-item:first-child .history-dot svg {
  fill: #fff;
}

/* Pulse animation for active dot */
@keyframes pulseDot {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 139, 139, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 139, 139, 0);
  }
}

/* Content */
.history-content {
  flex: 1;
}

.history-status {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 6px;
}

.history-item:first-child .history-status {
  color: #008B8B;
}

.history-datetime {
  font-size: 14px;
  color: #666;
  margin-bottom: 4px;
  font-weight: 500;
}

.history-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #008B8B;
  font-weight: 500;
}

.history-location svg {
  width: 14px;
  height: 14px;
  fill: #008B8B;
}

.history-desc {
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  line-height: 1.5;
}



/* ════════ SHIPMENT DETAILS ════════ */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.details-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.details-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.details-card h3::before {
  content: '';
  width: 4px;
  height: 18px;
  background: linear-gradient(135deg, #003366, #008B8B);
  border-radius: 2px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}

.detail-value {
  font-size: 14px;
  color: #003366;
  font-weight: 600;
  text-align: right;
}

/* ════════ ERROR / LOADING STATES ════════ */
.state-card {
  background: #fff;
  border-radius: 16px;
  padding: 60px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-align: center;
  display: none;
}

.state-card.active {
  display: block;
}

.state-icon {
  font-size: 64px;
  margin-bottom: 20px;
}

.state-icon svg {
  width: 64px;
  height: 64px;
  fill: #008B8B;
}

.state-title {
  font-size: 22px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 8px;
}

.state-message {
  font-size: 15px;
  color: #666;
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

.loading-spinner {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 4px solid #e0e0e0;
  border-top-color: #008B8B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}


/* ════════ FOOTER ════════ */
.footer {
  background: #003366;
  color: #fff;
  padding: 40px 24px;
  margin-top: auto;
  width: 100%;
  position: relative;
  left: 0;
  right: 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}

.footer-text {
  font-size: 14px;
  opacity: 0.8;
}

.footer-contact {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-contact a {
  color: #fff;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 1;
}

/* ════════ RESPONSIVE ════════ */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .hero p { font-size: 15px; }
  
  .tracking-search {
    flex-direction: column;
    padding: 12px;
  }
  
  .tracking-search button {
    width: 100%;
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .details-grid {
    grid-template-columns: 1fr;
  }
  
  .status-header {
    flex-direction: column;
  }
  
  .status-date {
    width: 100%;
    text-align: left;
  }
  
  .header-nav {
    display: none;
  }
  
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}


/* ════════ NEW SECTIONS ════════ */

/* Hide sections when tracking */
.hidden {
  display: none !important;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #008B8B;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: #003366;
  margin-bottom: 16px;
  line-height: 1.2;
}

.section-text {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

/* Overview Section */
.overview-section {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Cargo Section */
.cargo-section {
  padding: 80px 0;
  background: #fff;
}

.cargo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.cargo-card {
  text-align: center;
}

.cargo-image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.cargo-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.cargo-card:hover .cargo-image img {
  transform: scale(1.05);
}

.cargo-title {
  font-size: 18px;
  font-weight: 700;
  color: #003366;
  margin-bottom: 8px;
}

.cargo-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

/* CTA Section */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.cta-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 51, 102, 0.9), rgba(0, 139, 139, 0.9)), 
              url('https://images.unsplash.com/photo-1494412574643-ff11b0a5c1c3?w=1920&h=1080&fit=crop');
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  color: #fff;
}

.cta-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-text {
  font-size: 18px;
  margin-bottom: 32px;
  opacity: 0.95;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: #fff;
  border: none;
  border-radius: 12px;
  color: #003366;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.cta-button svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* FAQ Section */
.faq-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  color: #003366;
  text-align: left;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s;
}

.faq-question:hover {
  background: rgba(0, 139, 139, 0.05);
}

.faq-icon {
  width: 24px;
  height: 24px;
  fill: #008B8B;
  transition: transform 0.3s;
  flex-shrink: 0;
  margin-left: 16px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 0 24px 20px 24px;
  color: #666;
  line-height: 1.7;
  font-size: 15px;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 28px;
  }
  
  .cta-title {
    font-size: 32px;
  }
  
  .cargo-grid {
    grid-template-columns: 1fr;
  }
  
  .faq-question {
    font-size: 14px;
    padding: 16px 20px;
  }
}