  /* =========================================================
   DELHIVERY-INSPIRED TRACKING HERO & POPUP MODAL STYLING
   ========================================================= */

:root {

  --delhivery-dark: #111111;
}

.hero-delhivery-trkh {
  position: relative;
  width: 100%;
  min-height: 620px;
  display: flex;
  align-items: center;
  background-color: var(--delhivery-dark);
  isolation: isolate;
  overflow: hidden;
  padding: 80px 0;
}

.media-wrap-delhivery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.hero-img-delhivery {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.40) contrast(1);
}

.overlay-gradient-delhivery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(17, 17, 17, 0.95) 0%,
    rgba(17, 17, 17, 0.75) 55%,
    rgba(17, 17, 17, 0.4) 100%
  );
}

.container-delhivery {
  width: 80% !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 1;
}

.hero-text-content {
  color: #FFFFFF;
}

.hero-badge-delhivery {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--orange);
  margin-bottom: 15px;
  text-transform: uppercase;
}

.hero-title-delhivery {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 800;
  line-height: 1.2;
  color: #FFFFFF;
  margin: 0 0 20px;
}

.accent-text-delhivery {
  color: #FF7A00;
}

.hero-subtext-delhivery {
  font-family: 'Barlow', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  color: #E2E8F0;
  margin: 0;
  max-width: 600px;
}

.tracking-float-card {
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  width: 100%;
  max-width: 480px;
  justify-self: flex-end;
}

.card-tabs-header {
  display: flex;
  background: #F1F5F9;
  border-bottom: 1px solid #E2E8F0;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #64748B;
  padding: 16px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  background: #FFFFFF;
  color: var(--delhivery-dark);
  border-bottom-color: #FF7A00;
}

.tab-pane {
  display: none;
  padding: 28px 30px;
}

.tab-pane.active {
  display: block;
}

.pane-inner-title h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1E293B;
  margin: 0 0 18px;
}

.method-selector-pills {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: #F8FAFC;
  padding: 4px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
}

.pill-btn {
  flex: 1;
  background: transparent;
  border: none;
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  padding: 8px 6px;
  border-radius: 6px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.pill-btn.active {
  background: var(--delhivery-dark);
  color: #FFFFFF;
}

.track-input-group,
.enquiry-input-group {
  margin-bottom: 16px;
}

.track-input-group input,
.enquiry-input-group input {
  width: 100%;
  font-family: 'Barlow', sans-serif;
  font-size: 15px;
  padding: 14px 16px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  color: #1E293B;
  transition: border-color 0.2s ease;
}

.track-input-group input:focus,
.enquiry-input-group input:focus {
  outline: none;
  border-color: #FF7A00;
}

.btn-delhivery-submit {
  width: 100%;
  background-color: var(--delhivery-dark);
  color: #FFFFFF;
  border: none;
  padding: 15px;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-delhivery-submit:hover {
  background-color: #000000;
  transform: translateY(-1px);
}

/* Tracking Popup Modal Styling */
.tracking-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  backdrop-filter: blur(4px);
}

.tracking-modal-content {
  background: #FFFFFF;
  width: 90%;
  max-width: 450px;
  border-radius: 12px;
  padding: 24px 28px;
  position: relative;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
  animation: modalPopupFade 0.3s ease;
}

@keyframes modalPopupFade {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #64748B;
  cursor: pointer;
}

.modal-close-btn:hover {
  color: #111111;
}

.modal-header-brand h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--navy-primary);
  margin: 0 0 4px;
}

#modalTrackingIdBadge {
  font-family: 'Barlow', sans-serif;
  font-size: 13px;
  color: #64748B;
  display: block;
  margin-bottom: 16px;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 10px;
}

.result-item {
  font-family: 'Barlow', sans-serif;
  font-size: 14px;
  color: #475569;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.result-item strong, .result-item span#resRoute {
  color: #1E293B;
  font-weight: 600;
}

.app-download-strip {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E2E8F0;
  text-align: center;
}

.app-download-strip span {
  font-family: 'Barlow', sans-serif;
  font-size: 12.5px;
  color: #64748B;
  display: block;
  margin-bottom: 10px;
}

.app-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.app-badge-link {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #1E293B;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease;
}

.app-badge-link:hover {
  background: #E2E8F0;
}

@media (max-width: 1100px) {
  .container-delhivery {
    grid-template-columns: 1fr;
    gap: 40px;
    width: 90% !important;
  }
  .tracking-float-card {
    justify-self: center;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-delhivery-trkh {
    padding: 50px 0;
    min-height: auto;
  }
  .tab-pane {
    padding: 20px 18px;
  }
}