:root {
  --paper: #ffffff;
  --line: #dcdcdc;
  --ink: #222;
  --ink-soft: #666;
  --amber: #0dcaf0;
  --steel-light: #0dcaf0;
  --font-display: "Poppins", sans-serif;
}
body {
  /* margin-top: 90px; */
  /* overflow-x: hidden !important; */
  font-family: Arial, sans-serif;
  color: #172536;
}

.dropdown-menu {
  z-index: 10000;
}

/* jQuery Validate error messages (errorClass: 'error' in includes/footer.php) */

/* Staff quote and shipment conversations */
.wf-msg-panel > td {
  padding: 0.75rem 1rem !important;
  background: #f3f6fa;
}
.wf-chat {
  max-width: 920px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(24, 39, 75, 0.06);
}
.wf-chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8edf3;
  background: #fff;
}
.wf-chat-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  background: #3157a4;
}
.wf-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  height: 280px;
  overflow-y: auto;
  padding: 1rem;
  background: #f7f9fc;
}
.wf-chat-empty {
  margin: auto;
  color: #778397;
  font-size: 0.9rem;
}
.wf-chat-line {
  display: flex;
  width: 100%;
}
.wf-chat-incoming {
  justify-content: flex-start;
}
.wf-chat-outgoing {
  justify-content: flex-end;
}
.wf-chat-bubble {
  max-width: min(78%, 620px);
  padding: 0.6rem 0.8rem;
  border: 1px solid #e3e8ef;
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  overflow-wrap: anywhere;
}
.wf-chat-outgoing .wf-chat-bubble {
  border-color: #d5e3ff;
  border-radius: 12px 12px 3px 12px;
  background: #eaf2ff;
}
.wf-chat-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.25rem;
  color: #48566a;
  font-size: 0.75rem;
}
.wf-chat-meta time {
  color: #8792a2;
  font-size: 0.7rem;
}
.wf-chat-text {
  white-space: pre-wrap;
  color: #202a38;
  font-size: 0.9rem;
}
.wf-chat-image {
  display: block;
  max-width: 220px;
  max-height: 170px;
  margin-top: 0.5rem;
  border-radius: 8px;
  object-fit: contain;
}
.wf-chat-attachment {
  display: inline-block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
}
.wf-chat-compose {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid #e8edf3;
  background: #fff;
}
.wf-chat-compose .wf-msg-input {
  flex: 1 1 220px;
  min-width: 120px;
}
.wf-chat-compose .wf-msg-file {
  flex: 0 1 220px;
  min-width: 150px;
  font-size: 0.8rem;
}
@media (max-width: 640px) {
  .wf-chat-compose {
    flex-wrap: wrap;
  }
  .wf-chat-compose .wf-msg-input {
    flex-basis: 100%;
  }
  .wf-chat-bubble {
    max-width: 92%;
  }
}
label.error {
  display: block;
  width: 100%;
  color: #dc3545;
  font-size: 0.875rem;
  font-weight: 500;
  margin-top: 4px;
}
.navbar {
  top: 2px;
  width: 100%;
  z-index: 1050;
  padding: 6px 7px;
  /* Your transparent color */
  background-color: rgba(240, 245, 247, 0.7) !important;
  /* Blur behind navbar */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

/* Logo */
.navbar-brand {
  color: #f0f5f7bf !important;
}

.navbar .nav-link {
  color: rgb(53, 71, 77) !important;
  transition: all 0.3s ease;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  transform: scale(1.1);
  color: #eb620e !important;
}

.navbar .nav-link.active {
  font-weight: 600 !important;
}
.orange {
  color: #ff6418;
}

.bg-orange {
  background: #ff6418;
}

.btn-orange {
  background: #ff6418;
  color: #fff;
  border: 0;
}

.btn-orange:hover {
  background: #e9540d;
  color: #fff;
}

.feature-icon {
  width: 55px;
  height: 55px;
  background: #fffffe;
  color: white;
  border-radius: 50%;
  border: 2px solid #e9540d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  flex-shrink: 0;
}

.tracking {
  background: #f4f5f7;
}

.why-icon {
  font-size: 38px;
  color: #ff6418;
}

.banner {
  background: #fff3eb;
}

.step-number {
  font-size: 38px;
  font-weight: bold;
  color: #ffe0d1;
}

.cta {
  background: linear-gradient(90deg, #ff6418, #ff8a45);
}

.tracking-card,
.timeline-card,
.details-card {
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
}

.status {
  background: #e4f7e3;
  color: #198b18;
}

/* Live-tracking status pill variants (track.php) */
.status.status-delivered {
  background: #e4f7e3;
  color: #198b18;
}

.status.status-transit {
  background: #fff1e9;
  color: #f05f1d;
}

.status.status-booked {
  background: #e7f1ff;
  color: #0d6efd;
}

.status.status-pending {
  background: #f1f1f1;
  color: #6c757d;
}

.status.status-cancelled {
  background: #fde8e8;
  color: #dc3545;
}

.timeline-line {
  height: 2px;
  background: var(--orange);
}

.timeline-line-gray {
  height: 2px;
  background: #ddd;
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--orange);
  font-size: 21px;
}

.timeline-icon.active {
  background: var(--orange);
  color: #fff;
}

/* Mobile */
@media (max-width: 990.98px) {
  /* Navbar */
  .navbar {
    left: 0%;
    right: 0%;
    width: 100%;
    background-color: rgba(240, 245, 247, 0.7) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
  }

  /* Mobile menu */
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    border-radius: 10px;
    background: linear-gradient(105deg, #ffffffa5, hsla(21, 81%, 63%, 0.342)), url("../images/menu.png") !important;
    background-size: contain;
    background-position: center bottom;
    background-repeat: no-repeat !important;
    backdrop-filter: blur(50px);
    -webkit-backdrop-filter: blur(50px);

    z-index: 1;
    padding: 20px;
    overflow-y: auto;

    /* Animation */
    transform: translateY(-100%);
    opacity: 0;
    visibility: visible;

    transition:
      transform 0.5s ease,
      opacity 0.4s ease,
      visibility 0.5s ease;
  }

  /* Menu OPEN */
  .navbar-collapse.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  /* Keep the toggler tappable above the full-screen overlay so it still closes the menu */
  .navbar-toggler {
    position: relative;
    z-index: 2;
  }

  /* Mobile Connect button */
  .navbar-nav .btn {
    width: 100vw !important;
    margin-top: 15px;
    padding: 12px !important;
    margin-left: 4vw;
  }
}

.door-btn {
  position: relative;
  overflow: hidden;
  z-index: 1;
  background: #ffffff7a;
  color: #f05f1d;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid #f05f1d;
}

.door-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #f05f1d;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease-out;
  z-index: -1;
  border: 1px solid #f05f1d;
}

.door-btn:hover {
  color: #ffffff !important;
  border: 1px solid #f05f1d;
  transform: scale(1);
  transition: transform 0.2s ease-in-out;
}

.door-btn:hover::before {
  transform: scaleX(1);
}

.btn-thunder {
  position: relative;
  overflow: hidden;
}

.btn-thunder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.489), transparent 60%);
  transform: translateX(-100%);
}

.btn-thunder:hover::after {
  animation: thunder 5s linear infinite;
}

.l-thunder {
  position: relative;
  overflow: hidden;
}

.l-thunder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.489), transparent 65%);
  transform: translateX(-100%);
}

.l-thunder:hover::after {
  animation: thunder 4s linear infinite;
}

.thunder-bg {
  position: relative;
  overflow: hidden;
  background: linear-gradient(105deg, #ffffff9d, hsla(21, 81%, 63%, 0.247)), url("../images/ab_service.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Small background spots */
.thunder-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ef641971 2px, transparent 1px);
  background-size: 75px 70px;
  opacity: 35;
  animation: spots 8s linear infinite;
}

/* Thunder flash */
.thunder-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, #fb793435, transparent 65%);
  transform: translateX(-100%);
  animation: thunder 12s linear infinite;
}

@keyframes spots {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.45;
  }
  100% {
    opacity: 0;
  }
}
@keyframes thunder {
  0%,
  205% {
    transform: translateX(-100%);
  }
  40% {
    transform: translateX(100%);
  }
  60% {
    transform: translateX(100%);
  }
  80% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(100%);
  }
}
label.error {
  display: block;
  margin-top: 5px;
  font-size: 0.875rem;
  color: #dc3545;
}
/* ================================
   AIRPORT SELECT2 FORM CONTROL
================================ */

.airport-select + .select2 {
  width: 100% !important;
}

.airport-select + .select2 .select2-selection--single {
  height: 38px;
  min-height: 38px;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: #fff;
  display: flex;
  align-items: center;
  box-shadow: none;
}

.airport-select + .select2 .select2-selection__rendered {
  line-height: 36px;
  padding-left: 12px;
  padding-right: 40px;
  color: #212529;
}

.airport-select + .select2 .select2-selection__arrow {
  height: 36px;
  right: 8px;
}

/* Focus - same idea as Bootstrap */
.airport-select + .select2.select2-container--focus .select2-selection--single,
.airport-select + .select2.select2-container--open .select2-selection--single {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* Validation error */
.airport-select.is-invalid + .select2 .select2-selection--single {
  border-color: #dc3545;
}

.airport-select.is-valid + .select2 .select2-selection--single {
  border-color: #198754;
}

/* Error message */
label.error {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: #dc3545;
}
.new:hover {
  background: #f790615d;
}

.wheel {
  animation: spin 12s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}
/* feedback stars */

.rating-stars {
  display: flex;
  gap: 10px;
}
.star {
  font-size: 48px;
  color: #ccc;
  cursor: pointer;
  transition: 0.4s;
}
.star.active {
  color: #ef750bed;
}
.star:hover {
  transform: scale(1.6);
}

/*    FOOTER */
footer {
  background: #152536;
}

footer a {
  color: #0a0909;
  text-decoration: none;
}

footer a:hover {
  color: #ff6418;
  transform: scale(1.01);
}

.bi {
  color: #ff6418;
}

@media (max-width: 768px) {
  .hero {
    text-align: start;
    min-height: 580px;
    /* align-items:baseline; */
    background-size: cover !important;
    background-position: center start !important;
    background-repeat: repeat;
  }

  .hero h1 {
    font-size: 45px !important;
  }

  .hero p {
    margin-top: 18px !important;
  }

  .hero a {
    align-items: end !important;
    margin-top: 30px;
  }

  .tracking-card .route {
    border-top: 1px solid #ddd;
    margin-top: 15px;
    padding-top: 20px;
  }

  .timeline-scroll {
    overflow-x: auto;
  }

  .timeline-inner {
    min-width: 850px;
  }

  .shipment-details {
    overflow-x: auto;
  }

  .shipment-table {
    min-width: 1000px;
  }
}
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #22c55e;
  box-shadow: 0 0 0 rgba(32, 180, 86, 0.518);
  animation: pulseAnim 1.5s infinite;
}
@keyframes pulseAnim {
  0% {
    box-shadow: 0 0 0 1px rgba(31, 169, 82, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.orange-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ff6418;
  box-shadow: 0 0 0 rgba(197, 91, 4, 0.664);
  animation: orangeAnim 1.5s infinite;
}
@keyframes orangeAnim {
  0% {
    box-shadow: 0 0 0 1px rgba(206, 95, 4, 0.7);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(34, 197, 94, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}
.pillar {
  transition: opacity 0.6s ease-in-out;
}

/* =================================
   STACKED GALLERY
================================= */

.stacked-gallery {
  position: relative;
  width: 100%;
  height: 380px;
}

/* EVERY CARD */

.stack-card {
  position: absolute;
  left: 0;
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 5px;
  cursor: pointer;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  will-change: transform;
}

/* IMAGE */

.stack-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;

  filter: blur(2px) brightness(0.95);
  transform: scale(1.05);

  transition:
    filter 0.4s ease,
    transform 0.4s ease;
}

.stack-card:hover img {
  filter: blur(0) brightness(1);
  transform: scale(1);
}

/* =================================
   FIXED STACK POSITION
================================= */

.card-1 {
  top: 0;
  z-index: 1;
}

.card-2 {
  top: 40px;
  z-index: 2;
}

.card-3 {
  top: 80px;
  z-index: 3;
}

.card-4 {
  top: 120px;
  z-index: 4;
}

/* =================================
   HOVER
   DON'T MOVE TO TOP
================================= */

.stack-card:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.28);
}

/* =================================
   IMPORTANT:
   HOVERED CARD COMES FORWARD
   BUT STAYS IN ITS ORIGINAL PLACE
================================= */

.card-1:hover {
  z-index: 20;
}

.card-2:hover {
  z-index: 20;
}

.card-3:hover {
  z-index: 20;
}

.card-4:hover {
  z-index: 20;
}

/* =================================
   FULLSCREEN POPUP
================================= */

.image-popup {
  position: fixed;

  inset: 0;

  width: 100%;
  height: 100vh;

  background: rgba(0, 0, 0, 0.92);

  display: flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  visibility: hidden;

  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;

  z-index: 999999;
}

/* POPUP OPEN */

.image-popup.active {
  opacity: 1;
  visibility: visible;
}

/* POPUP IMAGE */

.image-popup img {
  max-width: 92%;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;

  border-radius: 10px;

  opacity: 0;

  transform: scale(0.85);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

/* ZOOM IN */

.image-popup.active img {
  opacity: 1;
  transform: scale(1);
}

/* =================================
   CLOSE BUTTON
================================= */

.popup-close {
  position: absolute;

  top: 20px;
  right: 25px;

  width: 45px;
  height: 45px;

  border: none;

  border-radius: 50%;

  background: rgba(255, 255, 255, 0.15);

  color: #fff;

  font-size: 32px;

  cursor: pointer;

  z-index: 100;

  transition: 0.25s ease;
}

.popup-close:hover {
  background: rgba(255, 255, 255, 0.3);

  transform: rotate(90deg);
}

/* =================================
   MOBILE
================================= */

@media (max-width: 576px) {
  .stacked-gallery {
    height: 290px;
  }

  .stack-card {
    height: 190px;
  }

  .card-2 {
    top: 30px;
  }

  .card-3 {
    top: 60px;
  }

  .card-4 {
    top: 90px;
  }

  .image-popup img {
    max-width: 95%;
    max-height: 85vh;
  }
}
/* feedback slider */

.feedback-track {
  display: flex;
  gap: 10px;
  /* width: max-content; */
  animation: feedbackSlide 25s linear infinite;
}

.feedback-card {
  width: 350px;
  flex-shrink: 0;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feedback-card:hover {
  box-shadow: 0px 0px 15px 5px #0a0909;
  transform: scale(1.03);
  background: #edebebc6;
  border: 1px solid #ec800e !important;
}

.feedback-track:hover {
  animation-play-state: paused;
}

/* Must come AFTER the base rules above: same specificity, so the later rule
   wins. It used to sit before them, which made the 290px card (and 20s pace)
   dead code and left 350px cards that don't fit a 320-350px phone. */
@media (max-width: 767px) {
  .feedback-card {
    width: 290px;
  }

  .feedback-track {
    animation-duration: 20s;
  }
}

@keyframes feedbackSlide {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}
