/* =====================================================================
   Bigship public tracking page
   Ported from Angular: tracking-page.component.css
   ===================================================================== */

#tracking-page {
  background: #fff;
  font-family: 'Roboto', serif;
}

.light_color { color: #00C9FF; }
.min-w-0 { min-width: 0; }

/* ---------- Header (replaces <app-outer-header>) ---------- */
.site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 1030;
}
/* The Angular header used the app's global font (Source Sans Pro), not the tracking page's Roboto */
.site-header { font-family: 'Source Sans Pro', sans-serif; }
.site-header .btn { font-weight: 400; }
.site-header__logo { padding: 0; }
.site-header__logo img { height: 42px; width: auto; }

/* Menu links (from the Angular outer-header) */
.site-header__nav { gap: 4px 8px; }
.site-header__link {
  font-size: 1.2rem;
  font-weight: 600;
  color: #06082f;
}
.site-header .navbar-nav .site-header__link { padding: 0.3rem 0.5rem; }
.site-header__link:hover,
.site-header__link:focus { color: #31c3e9; }
.site-header .navbar-toggler { border-color: #d8dde8; padding: 0.3rem 0.55rem; }
.site-header .navbar-toggler:focus { box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.2); }

/* Collapsed menu (below 992px): stacked links, full-width buttons */
@media (max-width: 991.98px) {
  .site-header__nav { padding: 10px 0 6px; gap: 8px; }
  .site-header .navbar-nav .site-header__link { padding: 0.45rem 0; }
  .site-header__nav .btn { width: 100%; }
}

@media (max-width: 374.98px) {
  .site-header__logo img { height: 34px; }
}

/* ---------- Footer (from site-footer.component.css) ---------- */
.su-footer {
  background: #fff;
  padding: 50px 40px 20px;
  border-top: 1px solid #eee;
}
.su-footer__grid {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}
.su-footer__brand { flex: 1 1 220px; }
.su-footer__brand img { width: 130px; margin-bottom: 12px; }
.su-footer__brand p { font-size: 0.82rem; color: #555; margin: 4px 0; }
.su-footer__brand i { color: #123a92; margin-right: 6px; }
.su-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; }
.su-footer__col h4 { font-size: 1.3rem; font-weight: 700; margin-bottom: 12px; }
.su-footer__col a { font-size: 0.8rem; color: #555; text-decoration: none; margin-bottom: 8px; }
.su-footer__col a:hover { color: #123a92; text-decoration: underline; }
.su-footer__bottom {
  max-width: 1200px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: #777;
}
.su-footer__legal { display: flex; flex-direction: column; gap: 6px; }
.su-footer__legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.su-footer__legal-links a { color: #777; text-decoration: none; }
.su-footer__legal-links a:hover { color: #123a92; text-decoration: underline; }
.su-footer__social { display: flex; gap: 12px; }
.su-footer__social a { display: flex; text-decoration: none; }
.su-footer__social i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f2f4fa;
  color: #123a92;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.su-footer__social i svg { width: 14px; height: 14px; }
.su-footer__social a:hover i { background: #123a92; color: #fff; }

@media (max-width: 767.98px) {
  /* Extra bottom padding so the floating support button doesn't cover the social icons */
  .su-footer { padding: 40px 20px 88px; }
  .su-footer__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .su-footer__brand { grid-column: 1 / -1; text-align: center; }
  .su-footer__brand img { margin-left: auto; margin-right: auto; }
  .su-footer__col h4 { font-size: 0.85rem; }
  .su-footer__col a { font-size: 0.76rem; }
  .su-footer__bottom { flex-direction: column; text-align: center; }
  .su-footer__legal { align-items: center; }
  .su-footer__legal-links { justify-content: center; }
}

/* ---------- Floating support widget (from support-widget.component.css) ---------- */
.support-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1030;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.support-widget-fab {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #5840ff, #0b58bc);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 8px 24px rgba(88, 64, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.support-widget-fab::before {
  content: '';
  position: absolute;
  top: 90%;
  left: 90%;
  width: 85px;
  height: 85px;
  margin: -65px 0 0 -65px;
  border-radius: 50%;
  background: #887be661;
  opacity: 0.1;
  z-index: -1;
  animation: support-fab-breathe 1.8s ease-in-out infinite;
}
@keyframes support-fab-breathe {
  0%, 100% { transform: scale(0.92); }
  50% { transform: scale(1.06); }
}
.support-widget-panel {
  width: 300px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.support-widget-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #5840ff, #0b58bc);
  color: #fff;
}
.support-widget-header-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.support-widget-header h6 { margin: 0; font-weight: 700; font-size: 14.5px; }
.support-widget-header p { margin: 2px 0 0; font-size: 12px; color: rgba(255, 255, 255, 0.85); }
.support-widget-body { padding: 16px 18px 8px; }
.support-widget-number {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #e8f8ee;
  color: #16794b;
  font-weight: 700;
  font-size: 15.5px;
  border-radius: 8px;
  padding: 10px 12px;
  text-decoration: none;
  margin-bottom: 14px;
}
.support-widget-number-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: #16794b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}
.support-widget-hours-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; color: #0b58bc; }
.support-widget-hours-row > div { display: flex; flex-direction: column; line-height: 1.3; }
.support-widget-hours-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8c90a4;
  text-transform: uppercase;
}
.support-widget-hours-value { font-size: 13px; color: #353b58; }
.support-widget-hint {
  text-align: center;
  font-size: 11.5px;
  color: #8c90a4;
  font-style: italic;
  border-top: 1px solid #eceef3;
  margin: 12px -18px 0;
  padding: 10px 18px 4px;
}

@media (max-width: 576px) {
  .support-widget { right: 16px; bottom: 16px; }
  .support-widget-panel { width: calc(100vw - 32px); max-width: 320px; }
}

/* ---------- Full-screen loader (replaces ngx-spinner) ---------- */
.page-loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-loader .spinner-border { width: 3rem; height: 3rem; }

/* =====================================================================
   1) LANDING VIEW
   ===================================================================== */

/* ---------- Banner + search form ---------- */
.tracking-section-gradientBanner {
  background: transparent linear-gradient(111deg, rgba(255, 255, 255, 1) 0%, rgba(188, 205, 255, 1) 100%) 0% 0% no-repeat !important;
  background-position: bottom;
  overflow: hidden;
  position: relative;
  padding: 50px 0 80px;
}

.tracking-section-gradientBanner::after {
  transform: rotate(-3deg);
  bottom: -50px;
  right: -5px;
  z-index: 0;
  width: 100%;
  height: 100px;
  background: #fff;
  position: absolute;
  content: "";
}

.tracking-section-gradientBanner .container { position: relative; z-index: 1; }

.title-vmcal-banner > h1 {
  color: rgba(0, 36, 95, 1);
  font-size: 2.4rem;
  font-weight: bold;
}
.title-vmcal-banner > h1 span { color: #00C9FF; }
.title-vmcal-banner > p { font-size: 1rem; }

.tracking-form-container {
  background: #fff;
  box-shadow: -2px 15px 19px rgba(0, 0, 0, 0.08);
  border-radius: 15px;
  padding: 30px;
}

.tracking-form h2 {
  color: rgba(0, 28, 140, 1);
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.tracking-form .form-group input,
.tracking-form .form-group .form-select {
  width: 100%;
  padding: 10px 10px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color .3s ease;
}

.btn-success,
.ship_button {
  color: #fff;
  background-color: rgba(13, 207, 27, 1);
  border-color: rgba(13, 207, 27, 1);
}

/* ---------- Delivery status steps ---------- */
.cal-courier-delivery-section {
  width: 100%;
  padding: 80px 0 0;
  background-color: #fff !important;
}

.volum-weight-content > h2,
.courier-showcase-content > h2 {
  color: rgba(0, 36, 95, 1);
  font-size: 2.5rem;
  font-weight: 100;
}

.box-step-content .svg-img {
  width: 56px;
  height: 56px;
  margin-bottom: 7px;
}
.box-step-content > h3 { color: rgba(0, 36, 95, 1); font-size: 1.2rem; }
.box-step-content > p { font-size: 1rem; }

/* ---------- "Make delivery tracking on-the-go" banner ---------- */
.tracking-click-action-container {
  background: transparent linear-gradient(101deg, #F1EDFF 0%, #EBF9FD 51%, #F1F3DF 100%) 0% 0% no-repeat padding-box;
  border-radius: 7px;
  overflow: hidden;
}

.tracking-click-action-wrapper {
  background: transparent url('../images/tracking-click-actionimg-bg.svg') 0% 0% no-repeat padding-box;
  background-size: cover;
  padding: 40px;
  margin: 0;
}

.tracking-click-action-wrapper .heading-wrapper h3 {
  color: rgba(0, 36, 95, 1);
  font-size: 2.4rem;
  font-weight: 300;
}
.tracking-click-action-wrapper .heading-wrapper p { color: rgba(0, 36, 95, 1); font-size: 1rem; }

/* ---------- Courier carousel (slick) ---------- */
.courier-showcase-section {
  background: transparent linear-gradient(360deg, #39F1E5 0%, #FFFFFF 0%, #FFFFFF 8%, #FDF1FF 43%, #E9F8FE 73%, #FFFFFF 100%) 0% 0% no-repeat;
  padding: 80px 0 50px;
}

.wrapper { width: 100%; padding-top: 20px; text-align: center; }
.courier-carousel { width: 90%; margin: 0 auto; }
.courier-slide { margin: 10px; }

.logo_wraper {
  border: 2px solid #fff;
  background-color: #fff;
  border-radius: 15px;
  box-shadow: 0 3px 27px #0000000D;
}

.logo_wraper img {
  width: 100%;
  max-width: 200px;
  height: 100px;
  padding: 20px;
  margin: 0 auto;
  object-fit: contain;
}

.courier-carousel .slick-dots { bottom: -35px; }
.courier-carousel .slick-dots li button:before { font-size: 14px; color: #1b70f1; }

/* ---------- FAQ accordion ---------- */
.helpyou-accordion-container {
  width: 100%;
  padding: 30px 0 70px;
  background-color: rgba(242, 249, 252, 1);
}

.franc-faq-content > h2 {
  color: rgba(0, 36, 95, 1);
  font-size: 2.5rem;
  font-weight: 600;
}

.faq-accordion {
  box-shadow: 0 3px 20px rgba(0, 0, 0, 0.06);
}
.faq-accordion .accordion-item { border-radius: 0 !important; }

.faq-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: .8rem .8rem .4rem;
  margin-bottom: 5px;
  background: transparent;
  border: 0;
  text-align: left;
}

.question-title { font-size: 1.05rem; font-weight: 700; color: #000; }
.faq-accordion .accordion-body { padding: .8rem; color: #000; }

.plus-icon, .minus-icon { font-size: 0.9rem; }
.icon_size { font-size: 2em; }
.plus-icon { color: #0066FF; }
.minus-icon { color: #FFA200; }

/* Bootstrap adds .collapsed to the button when its panel is closed */
.faq-toggle .minus-icon,
.faq-toggle.collapsed .plus-icon { display: inline; }
.faq-toggle .plus-icon,
.faq-toggle.collapsed .minus-icon { display: none; }

/* ---------- Landing view: phone spacing & type scale ---------- */
@media (max-width: 767.98px) {
  /* A little more side breathing room than Bootstrap's default 12px */
  #tracking-page .container { --bs-gutter-x: 2rem; }

  /* Hero */
  .tracking-section-gradientBanner { padding: 28px 0 56px; }
  .tracking-section-gradientBanner::after { left: -5%; right: auto; width: 110%; height: 60px; bottom: -40px; }
  .title-vmcal-banner { margin-bottom: 20px; }
  .title-vmcal-banner > h1 { font-size: 1.9rem; line-height: 1.2; }
  .title-vmcal-banner > p { font-size: 0.95rem; margin-bottom: 0; }
  .title-vmcal-banner > p br { display: none; } /* desktop-only line break */
  .tracking-form-container { padding: 20px; border-radius: 12px; }
  .tracking-form h2 { font-size: 1.35rem; }

  /* Section headings */
  .volum-weight-content > h2,
  .courier-showcase-content > h2,
  .franc-faq-content > h2 { font-size: 1.75rem; line-height: 1.25; }
  /* Even out heading lines so no single word is left alone on a line */
  #tracking-page h1, #tracking-page h2, #tracking-page h3 { text-wrap: balance; }
  .courier-showcase-content > h2 br { display: none; }
  .courier-showcase-content > h2 span { display: block; } /* "The Lowest Rates" on its own line */
  .tracking-click-action-wrapper h3 .light_color { white-space: nowrap; } /* keep "on-the-go" together */

  /* Delivery status steps */
  .cal-courier-delivery-section { padding-top: 40px; }
  .box-step-content { margin-bottom: 28px; }
  .cal-courier-delivery-section .col-md-3:last-child .box-step-content { margin-bottom: 0; }
  .box-step-content > h3 { font-size: 1.1rem; margin-bottom: 4px; }
  .box-step-content > p { font-size: 0.95rem; margin-bottom: 0; }

  /* "Make delivery tracking on-the-go" banner */
  .tracking-click-action-wrapper { padding: 28px 8px; text-align: center; }
  .tracking-click-action-wrapper .heading-wrapper h3 { font-size: 1.6rem; line-height: 1.25; }
  .tracking-click-action-wrapper .heading-wrapper p { font-size: 0.95rem; }
  .tracking-click-action-wrapper .btn { margin-top: 18px; }

  /* Courier carousel */
  .courier-showcase-section { padding: 48px 0 40px; }
  .courier-carousel { width: 100%; }
  .courier-slide { margin: 8px 6px; }
  .logo_wraper img { height: 80px; padding: 14px; }

  /* FAQ */
  .helpyou-accordion-container { padding: 40px 0 48px; }
  .question-title { font-size: 0.95rem; }
  .icon_size { font-size: 1.6em; }
  .faq-accordion .accordion-body { font-size: 0.92rem; }
}

@media (max-width: 374.98px) {
  .title-vmcal-banner > h1 { font-size: 1.65rem; }
  .tracking-form-container { padding: 16px; }
  .tracking-click-action-wrapper .heading-wrapper h3 { font-size: 1.4rem; }
}

/* =====================================================================
   2) RESULT VIEW
   ===================================================================== */

/* ---------- Result toolbar under the header: [Home] [type] [AWB/LR] [number + Track] [Download PDF] ---------- */
.trk-quicksearch {
  --trk-ctl-h: 46px; /* every control in the bar has this height, so the row lines up */
  background: linear-gradient(111deg, #fff 0%, rgba(188, 205, 255, 0.6) 100%);
  border-bottom: 1px solid #e3e9f7;
  padding: 14px 0;
}
.trk-quicksearch__form {
  display: flex;
  align-items: flex-start; /* an error under the number field doesn't stretch the other controls */
  gap: 12px;
}

/* Home: square icon button */
.trk-quicksearch__icon-btn {
  flex: 0 0 var(--trk-ctl-h);
  height: var(--trk-ctl-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8ee;
  border-radius: 8px;
  background: #fff;
  color: #123a92;
  font-size: 1.1rem;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.trk-quicksearch__icon-btn:hover,
.trk-quicksearch__icon-btn:focus-visible { background: #123a92; border-color: #123a92; color: #fff; }

.trk-quicksearch__segment { flex: 0 0 180px; }
.trk-quicksearch__type {
  display: flex;
  align-items: center;
  gap: 14px;
  height: var(--trk-ctl-h);
  white-space: nowrap;
}
.trk-quicksearch__type .form-check { margin: 0; }
.trk-quicksearch__type .form-check-label { font-weight: 500; color: rgba(0, 36, 95, 1); }
.trk-quicksearch__number { flex: 1 1 auto; min-width: 0; }
.trk-quicksearch .form-control,
.trk-quicksearch .form-select {
  height: var(--trk-ctl-h);
  border-color: #ccc;
  font-size: 16px; /* 16px stops iOS zooming in on focus */
}
.trk-quicksearch .input-group .btn { padding: 0 26px; }
.trk-quicksearch__error { display: block; margin-top: 4px; }

/* Download PDF */
.trk-quicksearch__pdf {
  flex: 0 0 auto;
  height: var(--trk-ctl-h);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-radius: 8px;
  white-space: nowrap;
}

/* Tablets: still one line; Download PDF shows only its icon */
@media (max-width: 991.98px) {
  .trk-quicksearch__form { gap: 10px; }
  .trk-quicksearch__segment { flex-basis: 140px; }
  .trk-quicksearch__type { gap: 10px; }
  .trk-quicksearch .input-group .btn { padding: 0 18px; }
  .trk-quicksearch__pdf { width: var(--trk-ctl-h); padding: 0; justify-content: center; }
  .trk-quicksearch__pdf span { display: none; }
}

/* Phones: [Home] [type] [PDF]  /  AWB-LR (Domestic only)  /  [number + Track], full width */
@media (max-width: 767.98px) {
  .trk-quicksearch { padding: 10px 0 12px; }
  .trk-quicksearch__form { flex-wrap: wrap; gap: 8px; }
  .trk-quicksearch__home { order: 1; }
  .trk-quicksearch__segment { order: 2; flex: 1 1 0; min-width: 0; }
  .trk-quicksearch__pdf { order: 3; }
  .trk-quicksearch__type { order: 4; flex-basis: 100%; height: auto; padding: 2px 2px 0; }
  .trk-quicksearch__number { order: 5; flex-basis: 100%; }
  .trk-quicksearch .input-group .btn { padding: 0 18px; }
}

/* ---------- Result body (mobile-first: customers land here from WhatsApp / email links, mostly on phones).
   Status colour comes from TrackingPresenter::tone(): success / danger / info. ---------- */
.trk-page {
  --trk-ink: #0f172a;
  --trk-muted: #64748b;
  --trk-line: #e2e8f0;
  --trk-soft: #f8fafc;
  --trk-brand: #2563eb;
  background: linear-gradient(180deg, #eef3ff 0, #f6f8fc 320px, #f6f8fc 100%);
  padding: 16px 0 96px; /* room for the floating support button */
  color: var(--trk-ink);
}

.trk-wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ---------- Hero card ---------- */
.trk-hero {
  --tone-a: #1e3a8a;
  --tone-b: #2563eb;
  --tone-c: #0ea5e9;
  --tone: #2563eb;
  --tone-soft: #dbeafe;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
  overflow: hidden;
  margin-bottom: 14px;
}
.trk-hero--success { --tone-a: #14532d; --tone-b: #16a34a; --tone-c: #4ade80; --tone: #16a34a; --tone-soft: #dcfce7; }
.trk-hero--danger  { --tone-a: #7f1d1d; --tone-b: #dc2626; --tone-c: #fb7185; --tone: #dc2626; --tone-soft: #fee2e2; }

.trk-hero__band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--tone-a) 0%, var(--tone-b) 60%, var(--tone-c) 100%);
}
.trk-hero__eyebrow {
  display: block;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
}
.trk-hero__title {
  margin: 4px 0 6px;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  text-transform: capitalize;
  overflow-wrap: anywhere;
}
.trk-hero__sub {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .78rem;
  font-weight: 500;
  opacity: .9;
}
.trk-hero__logo {
  flex: 0 0 72px;
  width: 72px;
  height: 52px;
  padding: 6px;
  border-radius: 12px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}
.trk-hero__logo img { width: 100%; height: 100%; object-fit: contain; }

/* IDs */
.trk-hero__ids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--trk-line);
  border-bottom: 1px solid var(--trk-line);
}
.trk-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 18px;
  background: #fff;
  min-width: 0;
}
.trk-id__label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--trk-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.trk-id__value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--trk-ink);
  word-break: break-all;
}
.trk-id__copy {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: var(--trk-soft);
  color: var(--trk-muted);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.trk-id__copy:hover { background: #e0e7ff; color: var(--trk-brand); }

/* Progress tracker: nodes joined by a line; the line leading to a reached node is tinted */
.trk-progress {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 18px 10px 16px;
}
.trk-progress__step {
  position: relative;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}
.trk-progress__step + .trk-progress__step::before {
  content: "";
  position: absolute;
  top: 17px;
  right: calc(50% + 22px);
  left: calc(-50% + 22px);
  height: 3px;
  border-radius: 3px;
  background: var(--trk-line);
}
.trk-progress__step.is-done::before,
.trk-progress__step.is-current::before { background: var(--tone) !important; }

.trk-progress__node {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  background: var(--trk-soft);
  color: #94a3b8;
  border: 2px solid var(--trk-line);
}
.is-done .trk-progress__node { background: var(--tone); border-color: var(--tone); color: #fff; }
.is-current .trk-progress__node {
  background: #fff;
  border-color: var(--tone);
  color: var(--tone);
  box-shadow: 0 0 0 5px var(--tone-soft);
}
.trk-progress__label {
  margin-top: 8px;
  padding: 0 2px;
  font-size: .7rem;
  line-height: 1.25;
  font-weight: 600;
  color: var(--trk-muted);
}
.is-done .trk-progress__label { color: var(--trk-ink); }
.is-current .trk-progress__label { color: var(--tone); font-weight: 700; }

/* ---------- Key dates ---------- */
.trk-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.trk-fact {
  flex: 1 1 calc(50% - 5px);
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf1f7;
  box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
}
.trk-fact__icon {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2ff;
  color: var(--trk-brand);
  font-size: 1rem;
}
.trk-fact__label {
  margin: 0 0 2px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--trk-muted);
  line-height: 1.3;
}
.trk-fact__value {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--trk-ink);
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.trk-fact__value small {
  display: block;
  font-size: .75rem;
  font-weight: 600;
  color: var(--trk-muted);
}

/* ---------- NDR banner wrapper ---------- */
.trk-ndr .ndr-action { margin-bottom: 14px; }

/* ---------- Journey timeline ---------- */
.trk-journey {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .06);
  padding: 18px 16px 8px;
}
.trk-journey__head {
  padding-bottom: 12px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--trk-line);
}
.trk-journey__title { margin: 0; font-size: 1.1rem; font-weight: 800; color: var(--trk-ink); }
.trk-journey__sub { margin: 2px 0 0; font-size: .8rem; color: var(--trk-muted); overflow-wrap: anywhere; }

.trk-day { padding-top: 12px; }
.trk-day__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.trk-events { list-style: none; margin: 0; padding: 0; }

.trk-event {
  /* the dot is centred on the status line: li top gap + card border/padding + half the line */
  --ev-gap: 8px;
  --ev-pad: 10px;
  --ev-line: 1.2rem;
  --ev-mid: calc(var(--ev-gap) + 1px + var(--ev-pad) + var(--ev-line) / 2);
  position: relative;
  padding: var(--ev-gap) 0 14px 28px;
}

/* vertical rail */
.trk-event::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--trk-line);
}
.trk-day:last-child .trk-event:last-child::before { bottom: auto; height: var(--ev-mid); }

.trk-event__dot {
  position: absolute;
  left: 2px;
  top: calc(var(--ev-mid) - 6px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #94a3b8;
}
.trk-event--latest .trk-event__dot {
  left: 0;
  top: calc(var(--ev-mid) - 8px);
  width: 16px;
  height: 16px;
  border: 0;
  background: var(--trk-brand);
  box-shadow: 0 0 0 4px #dbeafe;
}

.trk-event__body {
  padding: var(--ev-pad) 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--trk-soft);
}
.trk-event--latest .trk-event__body { background: #eff6ff; border-color: #bfdbfe; }

.trk-event__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.trk-event__status {
  font-size: .9rem;
  font-weight: 700;
  color: var(--trk-ink);
  line-height: var(--ev-line);
  overflow-wrap: anywhere;
}
.trk-event__time {
  flex: 0 0 auto;
  font-size: .75rem;
  font-weight: 600;
  color: var(--trk-muted);
  padding-top: 2px;
}
.trk-event__loc {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 4px;
  font-size: .8rem;
  color: #475569;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.trk-event__loc i { color: #94a3b8; }
.trk-event__note {
  margin-top: 4px;
  font-size: .78rem;
  color: var(--trk-muted);
  overflow-wrap: anywhere;
}

.trk-empty { text-align: center; padding: 28px 12px 24px; color: var(--trk-muted); }
.trk-empty i { font-size: 2rem; color: #cbd5e1; }
.trk-empty p { margin: 6px 0 0; font-size: .85rem; }

/* ---------- Result body: breakpoints ---------- */
@media (max-width: 359.98px) {
  .trk-hero__title { font-size: 1.3rem; }
  .trk-progress__label { font-size: .64rem; }
}

@media (min-width: 576px) {
  .trk-wrap { padding: 0 20px; }
  .trk-hero__band { padding: 24px 24px 26px; }
  .trk-hero__title { font-size: 1.75rem; }
  .trk-hero__logo { flex-basis: 96px; width: 96px; height: 64px; }
  .trk-hero__ids { grid-template-columns: 1fr 1fr; }
  .trk-id { padding: 14px 24px; }
  .trk-progress { padding: 22px 16px 20px; }
  .trk-progress__label { font-size: .78rem; }
  .trk-fact { flex-basis: calc(33.333% - 7px); }
  .trk-journey { padding: 22px 24px 12px; }
}

@media (min-width: 768px) {
  .trk-page { padding-top: 24px; }
  .trk-progress__node { width: 42px; height: 42px; font-size: 1rem; }
  .trk-progress__step + .trk-progress__step::before { top: 20px; right: calc(50% + 26px); left: calc(-50% + 26px); }
  .trk-event { padding-left: 34px; --ev-pad: 12px; --ev-line: 1.25rem; }
  .trk-event::before { left: 9px; }
  .trk-event__dot { left: 4px; }
  .trk-event--latest .trk-event__dot { left: 2px; }
  .trk-event__body { padding: var(--ev-pad) 16px; }
  .trk-event__status { font-size: .95rem; }
  .trk-event__time { font-size: .8rem; }
}

/* Desktop: all five dates in one row */
@media (min-width: 992px) {
  .trk-fact { flex-basis: 0; }
}

/* ---------- NDR (Undelivered) action banner ---------- */
.ndr-action {
  background: #fff7ec;
  border: 1px solid #f3dcae;
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.ndr-action__ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  background: #fcebcf;
  color: #c47d12;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.ndr-action__ic svg { width: 20px; height: 20px; }
.ndr-action__tx { flex: 1; min-width: 200px; }
.ndr-action__tx h4 { margin: 0 0 3px; color: #8a5a0c; font-size: 14px; font-weight: 700; }
.ndr-action__tx p { margin: 0; color: #7a5a1e; font-size: 12.5px; }
.ndr-action__btn {
  border: none;
  background: #2f6ae6;
  color: #fff;
  border-radius: 9px;
  padding: 12px 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.ndr-action__btn:hover { background: #2456c9; }
.ndr-action--pos { background: #eaf7ef; border-color: #bfe3cc; }
.ndr-action--pos .ndr-action__ic { background: #d4f0de; color: #1f9d57; }
.ndr-action--pos .ndr-action__tx h4 { color: #157a43; }
.ndr-action--pos .ndr-action__tx p { color: #2a6a46; }
.ndr-action--neg { background: #f1f2f5; border-color: #dcdfe7; }
.ndr-action--neg .ndr-action__ic { background: #e3e6ee; color: #5b6475; }
.ndr-action--neg .ndr-action__tx h4 { color: #3f4659; }
.ndr-action--neg .ndr-action__tx p { color: #5b6475; }

/* ---------- NDR response popup ---------- */
.bf-overlay {
  position: fixed;
  inset: 0;
  z-index: 1060;
  background: rgba(17, 24, 45, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.bf-card {
  background: #fff;
  border-radius: 16px;
  width: 470px;
  max-width: 100%;
  max-height: 92vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
  color: #1f2733;
  font-size: 14px;
}
.bf-head {
  padding: 17px 20px;
  border-bottom: 1px solid #e7e9f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bf-head__t { font-weight: 700; font-size: 15px; }
.bf-head__cx { border: none; background: none; cursor: pointer; color: #7c8498; font-size: 20px; line-height: 1; }
.bf-steps { display: flex; gap: 6px; padding: 14px 20px 0; }
.bf-steps__dot { height: 4px; flex: 1; border-radius: 3px; background: #e7e9f2; }
.bf-steps__dot.on { background: #2f6ae6; }
.bf-body { padding: 18px 20px; overflow: auto; }
.bf-foot {
  padding: 14px 20px;
  border-top: 1px solid #e7e9f2;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
}
.bf-btn {
  border: 1px solid #e7e9f2;
  background: #fff;
  color: #1f2733;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.bf-btn--solid { background: #2f6ae6; color: #fff; border-color: #2f6ae6; }
.bf-btn--solid:hover { background: #2456c9; }
.bf-btn--solid:disabled { opacity: .5; cursor: not-allowed; }
.bf-btn--ghost { color: #7c8498; }
.bf-field { margin-bottom: 14px; }
.bf-field label { display: block; font-size: 12.5px; font-weight: 700; margin-bottom: 6px; color: #45506a; }
.bf-field input {
  width: 100%;
  border: 1px solid #e7e9f2;
  border-radius: 9px;
  padding: 11px 12px;
  font-size: 14px;
  outline: none;
  color: #1f2733;
}
.bf-field input:focus, .bf-ta:focus, .bf-otp:focus { border-color: #2f6ae6; }
.bf-opt { color: #9aa2b4; font-weight: 600; }
.bf-ta {
  width: 100%;
  border: 1px solid #e7e9f2;
  border-radius: 9px;
  padding: 10px 11px;
  font-size: 13px;
  color: #1f2733;
  outline: none;
  min-height: 64px;
  resize: vertical;
}
.bf-info { font-size: 12.5px; color: #7c8498; line-height: 1.5; }
.bf-otp {
  width: 200px;
  max-width: 100%;
  letter-spacing: 8px;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  border: 1px solid #e7e9f2;
  border-radius: 12px;
  padding: 12px 10px 12px 18px;
  outline: none;
  color: #1f2733;
}
.bf-resend { font-size: 12px; color: #7c8498; margin-top: 10px; }
.bf-resend span { color: #2f6ae6; font-weight: 700; cursor: pointer; text-decoration: underline; }
.bf-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.bf-choice { border: 2px solid #e7e9f2; border-radius: 13px; padding: 16px; cursor: pointer; text-align: center; }
.bf-choice:hover { border-color: #2f6ae6; }
.bf-choice.sel { border-color: #3cb043; background: #eef9ef; }
.bf-choice.sel.neg { border-color: #dc5247; background: #fbe9e7; }
.bf-choice__ci {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 9px;
  font-size: 20px;
}
.bf-choice__ci svg { width: 20px; height: 20px; }
.bf-choice--reattempt .bf-choice__ci { background: #e1f6e6; color: #2a9d4e; }
.bf-choice--abandon .bf-choice__ci { background: #fbe4e2; color: #dc5247; }
.bf-choice__cl { font-weight: 800; font-size: 14px; }
.bf-choice__cd { font-size: 11.5px; color: #7c8498; margin-top: 4px; }
.bf-success { text-align: center; padding: 8px 4px; }
.bf-success__big {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto 14px;
  font-size: 30px;
}
.bf-success--pos .bf-success__big { background: #e1f6e6; color: #2a9d4e; }
.bf-success--neg .bf-success__big { background: #eef0f5; color: #5b6475; }
.bf-success h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; }
.bf-success p { color: #7c8498; font-size: 13px; margin: 0 auto; max-width: 340px; line-height: 1.5; }

/* ---------- Phones: full-width NDR button, popup as a bottom sheet ---------- */
@media (max-width: 575.98px) {
  .ndr-action__btn { width: 100%; }
  .ndr-action__tx { min-width: 0; }

  .bf-overlay { align-items: flex-end; padding: 0; }
  .bf-card { width: 100%; max-height: 90vh; border-radius: 20px 20px 0 0; }
  .bf-choices { grid-template-columns: 1fr; }
  .bf-foot { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
}
