/* Image previews: indicate zoom and keep the modal above the fixed header. */
[data-lightbox],
.qw-fleet-card img {
  cursor: zoom-in;
}

body .lightboxOverlay {
  z-index: 20000;
}

body .lightbox {
  z-index: 20001;
}

/* Temporary content switch and TBN language control. */
.latest-news-section {
  display: none !important;
}

.navbar-nav a[href="demo-logistics-latest-blog.html"],
.navbar-nav a[href="/berita"] {
  display: none !important;
}

/* Hover dropdown pilihan armada. */
.navbar-nav .dropdown-menu li a {
  position: relative;
  transition: color 0.25s ease, background-color 0.25s ease, padding-left 0.25s ease;
}

.navbar-nav .dropdown-menu li a:hover,
.navbar-nav .dropdown-menu li a:focus-visible {
  color: #141414;
  background-color: #ffc700;
  padding-left: 24px;
}

.navbar-nav .dropdown-menu li a::after {
  content: '→';
  position: absolute;
  right: 14px;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.navbar-nav .dropdown-menu li a:hover::after,
.navbar-nav .dropdown-menu li a:focus-visible::after {
  opacity: 1;
  transform: translateX(0);
}

.tbn-language-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  margin-left: 18px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: border-color 0.35s ease, background-color 0.35s ease, box-shadow 0.35s ease;
}

.tbn-language-switch::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: 34px;
  border-radius: 999px;
  background: #ffc700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transform: translateX(0);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.tbn-language-switch.is-en::before {
  transform: translateX(100%);
}

.tbn-language-switch:hover {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.tbn-language-switch button {
  position: relative;
  z-index: 1;
  width: 34px;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 5px 0;
  color: #c9d0cf;
  cursor: pointer;
  transition: color 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tbn-language-switch button:hover {
  color: #fff;
}

.tbn-language-switch button:active {
  transform: scale(0.9);
}

.tbn-language-switch button.is-active {
  color: #141414;
}

.header-top-bar .tbn-language-switch {
  margin-left: 18px;
}

.navbar .tbn-language-switch {
  display: none;
}

@media (max-width: 991px) {
  .header-top-bar .tbn-language-switch {
    margin: 8px 0;
  }

  .header-top-bar .row {
    height: auto !important;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

@keyframes tbn-whatsapp-pulse {
  0%,
  100% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32), 0 0 0 0 rgba(37, 211, 102, 0.45);
  }

  50% {
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32), 0 0 0 10px rgba(37, 211, 102, 0);
  }
}

.tbn-whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 18px;
  border-radius: 999px;
  background: #25d366;
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.32);
  animation: tbn-whatsapp-pulse 2.4s ease-out infinite;
  font-size: 13px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.tbn-whatsapp-float i {
  font-size: 27px;
}

.tbn-whatsapp-float:hover,
.tbn-whatsapp-float:focus-visible {
  background: #1ebe5d;
  color: #fff !important;
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
}

@media (max-width: 575px) {
  .tbn-whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 54px;
    padding: 0;
    justify-content: center;
  }

  .tbn-whatsapp-float span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tbn-whatsapp-float {
    animation: none;
  }
}

.tbn-route-notice {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #141414;
  color: #fff;
  padding: 13px 18px;
  border-radius: 4px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tbn-route-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card testimonial putih dengan teks gelap agar kontras di atas foto. */
.testimonial-card {
  padding: 48px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(20, 20, 20, 0.16);
}

.testimonial-card .text-white {
  color: #141414 !important;
}

.testimonial-card .opacity-7 {
  opacity: 0.7;
}

.testimonial-card .review-star-icon {
  color: #e4a900;
}

@media (max-width: 767px) {
  .testimonial-card {
    padding: 30px 24px;
  }
}

/* Lapisan gelap transparan agar teks slider tetap terbaca di atas foto terang. */
.hero-slide-card {
  width: fit-content;
  max-width: 90%;
  padding: 34px 40px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

@media (max-width: 767px) {
  .hero-slide-card {
    max-width: 100%;
    padding: 25px 22px;
    border-radius: 8px;
  }
}

/* Quote wizard: form penawaran multi-langkah. */
.qw-intro,
.qw-hint {
  color: #6e7879;
  font-size: 14px;
  line-height: 1.6;
}

.qw-form {
  margin-top: 28px;
}

.qw-progress {
  position: relative;
  margin-bottom: 34px;
}

.qw-progress-line {
  position: absolute;
  top: 21px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: #d8dbd4;
}

.qw-progress-line span {
  display: block;
  width: 0;
  height: 100%;
  background: #ffc700;
  transition: width 0.25s ease;
}

.qw-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  list-style: none;
}

.qw-steps li {
  display: flex;
  cursor: pointer;
  min-width: 76px;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  color: #8a9492;
  font-size: 14px;
  font-weight: 600;
}

.qw-steps li span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid #d8dbd4;
  border-radius: 50%;
  background: #f7f7f2;
  font-size: 15px;
  font-weight: 700;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.qw-steps li.is-active,
.qw-steps li.is-complete {
  color: #17252b;
}

.qw-steps li:focus-visible {
  outline: 2px solid #ffc700;
  outline-offset: 5px;
  border-radius: 4px;
}

.qw-steps li.is-active span,
.qw-steps li.is-complete span {
  border-color: #ffc700;
  background: #ffc700;
  color: #141414;
}

.qw-status {
  min-height: 20px;
  color: #c6462d;
  font-size: 13px;
}

.qw-panel {
  border: 0;
  margin: 0;
  padding: 0;
  animation: qw-fade-in 0.22s ease both;
}

.qw-panel[hidden] {
  display: none;
}

.qw-panel legend {
  margin-bottom: 5px;
  color: #17252b;
  font: 700 25px 'Space Grotesk', sans-serif;
}

.qw-panel label {
  display: block;
  margin-bottom: 16px;
  color: #17252b;
  font-size: 13px;
  font-weight: 700;
}

.qw-panel label small {
  color: #87918f;
  font-size: 11px;
  font-weight: 400;
}

.qw-panel label:has([aria-invalid="true"]) {
  color: #c6462d;
}

.qw-panel label small.qw-error,
.qw-panel .qw-error {
  color: #c6462d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.qw-panel input:not([type="checkbox"]),
.qw-panel select,
.qw-panel textarea {
  display: block;
  width: 100%;
  margin-top: 7px;
  border: 1px solid #d8dbd4;
  border-radius: 4px;
  background: #fff;
  color: #17252b;
  padding: 13px 14px;
  font: 400 14px 'DM Sans', sans-serif;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.qw-panel input:not([type="checkbox"]):focus,
.qw-panel select:focus,
.qw-panel textarea:focus {
  border-color: #17252b;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.22);
}

.qw-panel [aria-invalid="true"] {
  border-color: #c6462d !important;
}

.qw-panel select[aria-invalid="true"] + .select2-container .select2-selection--single {
  border-color: #c6462d !important;
}

.qw-error {
  display: block;
  margin-top: 7px;
  color: #c6462d;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}

.qw-error:empty {
  display: none;
}

.qw-field-group {
  margin-bottom: 16px;
}

.qw-weight-group .qw-weight {
  margin-bottom: 0;
}

.qw-consent-group {
  margin-bottom: 16px;
}

.qw-fleet-error {
  width: 100%;
  margin-top: -8px;
  margin-bottom: 12px;
}

.qw-panel .select2-container {
  display: block;
  width: 100% !important;
  margin-top: 7px;
}

.qw-panel .select2-container--default .select2-selection--single {
  height: 48px;
  border: 1px solid #d8dbd4;
  border-radius: 4px;
  background: #fff;
}

.qw-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 9px 14px;
  color: #17252b;
  line-height: 28px;
}

.qw-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 10px;
  right: 10px;
}

.qw-panel .select2-container--default.select2-container--focus .select2-selection--single,
.qw-panel .select2-container--default.select2-container--open .select2-selection--single {
  border-color: #17252b;
  box-shadow: 0 0 0 3px rgba(255, 199, 0, 0.22);
}

.qw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}

.qw-weight {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.qw-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dbd4;
  border-radius: 4px;
  background: #fff;
}

.qw-stepper button {
  width: 42px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #17252b;
  font-size: 22px;
  cursor: pointer;
}

.qw-stepper input {
  width: 80px !important;
  margin: 0 !important;
  border: 0 !important;
  border-right: 1px solid #d8dbd4 !important;
  border-left: 1px solid #d8dbd4 !important;
  border-radius: 0 !important;
  text-align: center;
}

.qw-fleet {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}

.qw-fleet-card {
  display: flex;
  height: 176px;
  min-height: 176px;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid #d8dbd4;
  border-radius: 12px;
  background: #fff;
  color: #17252b;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.qw-fleet-card img {
  display: block;
  width: calc(100% + 2px);
  height: 96px;
  flex: 0 0 96px;
  margin: -1px -1px 0;
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0;
  filter: saturate(0.9);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.qw-fleet-card strong,
.qw-fleet-card small {
  margin: 0 12px;
}

.qw-fleet-card strong {
  margin-top: 10px;
}

.qw-fleet-card small {
  margin-bottom: 10px;
}

.qw-fleet-card:hover,
.qw-fleet-card[aria-checked="true"] {
  border-color: #ffc700;
  background: #fff9dc;
  box-shadow: 0 10px 24px rgba(23, 37, 43, 0.12);
  transform: translateY(-2px);
}

.qw-fleet-card:hover img,
.qw-fleet-card[aria-checked="true"] img {
  filter: saturate(1.15);
  transform: scale(1.04);
}

.qw-fleet[aria-invalid="true"] .qw-fleet-card {
  border-color: #c6462d;
}

.qw-fleet-card:focus-visible {
  outline: 3px solid rgba(255, 199, 0, 0.65);
  outline-offset: 3px;
}

.qw-fleet-card strong {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.2px;
}

.qw-fleet-card small {
  color: #5e6a6c;
  font-size: 12px;
  font-weight: 600;
}

.qw-custom-note[hidden] {
  display: none;
}

.qw-summary {
  display: grid;
  gap: 8px;
  margin: 15px 0 20px;
  padding: 16px;
  border-radius: 5px;
  background: #fff;
  color: #53605f;
  font-size: 13px;
  line-height: 1.5;
}

.qw-summary strong {
  color: #17252b;
}

.qw-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  font-weight: 400 !important;
  line-height: 1.5;
}

.qw-consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px;
}

.qw-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0;
}

.qw-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

.qw-actions-main {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.qw-button {
  min-height: 46px;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  background: #17252b;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.qw-button:hover:not(:disabled),
.qw-button:focus-visible:not(:disabled) {
  background: #ffc700;
  color: #141414;
  transform: translateY(-2px);
}

.qw-button.qw-back:hover:not(:disabled),
.qw-button.qw-back:focus-visible:not(:disabled) {
  border-color: #ffc700;
}

.qw-button.qw-back {
  background: transparent;
  color: #17252b;
  border: 1px solid #d8dbd4;
}

.qw-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.qw-result {
  min-height: 24px;
  margin-top: 12px;
  color: #53605f;
  font-size: 13px;
}

.qw-result.is-error {
  color: #c6462d;
}

.qw-result.is-success {
  color: #26734d;
}

.qw-image {
  min-height: 650px;
}

.qw-image > div {
  position: relative;
}

.qw-trust {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 190px;
  padding: 15px 18px;
  border-radius: 5px;
  background: rgba(23, 37, 43, 0.88);
  color: #fff;
}

.qw-trust strong {
  color: #ffc700;
  font-size: 15px;
}

.qw-trust span {
  font-size: 12px;
}

@keyframes qw-fade-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 991px) {
  .qw-image {
    min-height: 320px;
  }

  .qw-fleet {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .qw-steps li {
    min-width: 58px;
    font-size: 12px;
  }

  .qw-steps li span {
    width: 40px;
    height: 40px;
  }

  .qw-grid,
  .qw-fleet {
    grid-template-columns: 1fr;
  }

  .qw-weight {
    align-items: flex-start;
    flex-direction: column;
  }

  .qw-stepper {
    width: 100%;
  }

  .qw-stepper input {
    flex: 1;
  }

  .qw-fleet-card {
    height: 70px;
    min-height: 70px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
  }

  .qw-fleet-card img {
    width: 58px;
    height: 54px;
    flex: 0 0 58px;
    margin: 0;
    border-radius: 7px;
  }

  .qw-fleet-card strong,
  .qw-fleet-card small {
    margin: 0;
  }

  .qw-fleet-card small {
    margin-left: auto;
  }

  .qw-actions {
    position: sticky;
    bottom: 0;
    z-index: 2;
    margin: 20px -24px -24px;
    padding: 12px 24px;
    background: rgba(247, 247, 242, 0.96);
  }

  .qw-actions-main {
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qw-panel,
  .qw-progress-line span,
  .qw-fleet-card,
  .qw-button {
    animation: none;
    transition: none;
  }
}

/* Format angka counter menggunakan pemisah ribuan. */
.vertical-counter-separator {
  display: inline-block;
  width: auto !important;
  margin: 0 0.04em;
  vertical-align: top;
  line-height: 1;
}

/* Tombol pilihan armada selalu sejajar di bagian bawah kartu. */
.fleet-select-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 132px;
  margin-top: auto;
  padding: 12px 20px;
  border-radius: 4px;
  background: #ffc700;
  color: #141414 !important;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fleet-select-button:hover,
.fleet-select-button:focus-visible {
  background: #141414;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(20, 20, 20, 0.18);
}

/* Menyamakan tinggi setiap kartu mitra armada. */
.services-boxes .swiper-wrapper,
.services-box-style-02.swiper-wrapper {
  align-items: stretch;
}

.swiper .swiper-wrapper:has(.services-box-style-02) {
  align-items: stretch;
}

.swiper-slide:has(.services-box-style-02) {
  height: auto;
  display: flex;
}

.swiper-slide:has(.services-box-style-02) .services-box-style-02 {
  height: 100%;
  width: 100%;
  display: flex;
}

.swiper-slide:has(.services-box-style-02) .services-box-style-02 > .services-box {
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.swiper-slide:has(.services-box-style-02) .services-box-style-02 > .services-box-img {
  min-height: 330px;
}

.swiper-slide:has(.services-box-style-02) .services-box-content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.swiper-slide:has(.services-box-style-02) .fleet-select-button {
  margin-top: auto !important;
}

@media (max-width: 767px) {
  .swiper-slide:has(.services-box-style-02) .services-box-style-02 > .services-box,
  .swiper-slide:has(.services-box-style-02) .services-box-style-02 > .services-box-img {
    min-height: 300px;
  }
}
