.track-container {
  position: relative;
  z-index: 53;
  max-width: 950px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid #ddd;
}

.nav-tabs .nav-link {
  border: none;
  color: #111;
  font-weight: 600;
  padding: 16px 0;
  text-align: center;
  flex: 1;
  border-radius: 0;
}

.nav-tabs .nav-link.active {
  background-color: #03a4ed !important;
  color: #fff !important;
}

/* Form section */
.form-section {
  padding: 30px 40px;
}

.form-section h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #111;
}

.form-section p {
  font-size: 13px;
  color: #666;
  margin-bottom: 20px;
}

.form-input input {
  border-radius: 8px;
  padding: 14px 16px;
  width: 100%;
}

/* --- BUTTON BASE STYLE --- */
.btn-track,
.btn-track-success,
.btn-track-secondary {
  font-weight: 600;
  border-radius: 40px;
  padding: 11px 28px;
  transition: 0.3s;
  white-space: nowrap;
  border: none;
  display: inline-block;
}

/* --- PRIMARY / TRACK --- */
.btn-track {
  background: #fe3f40;
  color: #fff;
}

.btn-track:hover {
  background: #03a4ed;
  color: #fff;
}

/* --- SUCCESS --- */
.btn-track-success {
  background: #28a745; /* green */
  color: #fff;
}

.btn-track-success:hover {
  background: #1e7e34; /* darker green */
  color: #fff;
}

/* --- SECONDARY --- */
.btn-track-secondary {
  background: #6c757d; /* grey */
  color: #fff;
}

.btn-track-secondary:hover {
  background: #565e64; /* darker grey */
  color: #fff;
}

.info-added {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
}

.info-added strong {
  font-weight: 700;
}

/* Timeline */
.timeline {
  position: relative;
  margin: 2rem 0;
  padding-left: 40px;
  border-left: 3px solid #dee2e6;
}

.timeline-step {
  position: relative;
  margin-bottom: 2rem;
  word-wrap: break-word;
  word-break: break-word;
  overflow-wrap: anywhere;
  border-left: 3px solid #e2e2e2;
  padding-left: 20px;
  margin-left: 12px;
}

.timeline-step .text-muted {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.timeline-step:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -10px;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #0d6efd;
  border: 4px solid white;
  box-shadow: 0 0 0 3px #0d6efd;
}

/* Warna-warna dot */
.timeline-step:nth-child(1) .timeline-dot {
  background-color: #0d6efd;
  box-shadow: 0 0 0 3px #0d6efd;
} /* Biru */
.timeline-step:nth-child(2) .timeline-dot {
  background-color: #20c997;
  box-shadow: 0 0 0 3px #20c997;
} /* Hijau */
.timeline-step:nth-child(3) .timeline-dot {
  background-color: #ffc107;
  box-shadow: 0 0 0 3px #ffc107;
} /* Kuning */
.timeline-step:nth-child(4) .timeline-dot {
  background-color: #fd7e14;
  box-shadow: 0 0 0 3px #fd7e14;
} /* Oranye */
.timeline-step:nth-child(5) .timeline-dot {
  background-color: #dc3545;
  box-shadow: 0 0 0 3px #dc3545;
} /* Merah */

.timeline-content {
  padding-left: 20px;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 20px;
  height: calc(100% - 20px);
  width: 3px;
  background-color: #dee2e6;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-content h5 {
  font-weight: 600;
}

.timeline-content p {
  color: #6c757d;
  margin-bottom: 0;
}

/* Multistep form */
.step-active {
  color: #e01e37 !important;
  border-color: #e01e37 !important;
}

.hidden {
  display: none;
}

.service-card {
  border: 2px solid #ccc;
  border-radius: 15px;
  padding: 15px;
  cursor: pointer;
}

.service-card.active {
  border-color: #e01e37;
  background: #fff5f7;
}

.service-card.disabled {
  opacity: 0.5;
  pointer-events: none; /* Tidak bisa di-klik */
}

.service-card .note {
  font-size: 12px;
}

.main-content {
  padding: 226px 0px 120px 0px;
  position: relative;
  overflow: hidden;
  max-width: 900px;
  z-index: 53;
}

.breadcrumb-wrapper {
  position: relative;
  overflow: hidden;
  padding-top: 110px;
  /* agar gradient tidak keluar */
}

.order-section__backdrop-header {
  width: 100%;
  height: 400px;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;

  /* Gradient dari putih → abu */
  background: linear-gradient(to bottom, #ffffff, #e6e6e6);

  /* Rounded bawah */
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;

  overflow: hidden;
  /* penting agar bentuk rounded rapi */
  pointer-events: none;
}

.upload-box {
  background: #1f497d;
  color: #fff;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
}

.preview {
  margin-top: 12px;
  max-width: 100%;
  border-radius: 8px;
  display: none;
}

/* MOBILE VIEW */
@media (max-width: 576px) {
  .form-input {
    flex-direction: column;
  }

  .step-header {
    gap: 10px !important;
  }

  .step-header .d-flex {
    flex-direction: column !important;
    text-align: center;
    gap: 4px !important;
  }

  .step-header span.rounded-circle {
    margin-bottom: 2px;
  }

  .step-header > span.text-secondary {
    font-size: 12px !important;
    /* panah lebih kecil */
  }

  .step-header {
    font-size: 12px !important;
  }
}

/* Lebarkan Select2 mengikuti container */
#nomor_perkara + .select2-container {
  width: 100% !important;
}

/* Samakan tinggi dengan input Bootstrap */
.select2-selection--single {
  height: 48px !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #ced4da !important;
}

/* Samakan teks */
.select2-selection__rendered {
  line-height: 28px !important;
  font-size: 1rem;
  color: #495057;
}

/* Samakan arrow */
.select2-selection__arrow {
  height: 100% !important;
}

.form-control {
  height: 48px !important;
}

/* // Tokopedia style summary box */
.tokopedia-summary {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tkp-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e6e7e8;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.tkp-header {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #14a80010;
  padding: 10px 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  font-weight: 600;
  color: #0f8a00;
}

.tkp-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px dashed #e0e0e0;
  font-size: 14px;
}

.tkp-row:last-child {
  border-bottom: none;
}

.tkp-label {
  color: #6b6b6b;
  font-weight: 500;
}

.tkp-value {
  color: #222;
  font-weight: 600;
  text-align: right;
}

.tkp-section-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 5px;
}

/* ini bagian succes page */
.success-box {
  z-index: 95;
  position: relative;
  background: white;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  margin: 40px auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.success-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #2ecc71;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 20px;
}

.success-icon i {
  font-size: 45px;
  color: white;
}

.warning-icon {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #f39c12;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  margin-bottom: 20px;
}

.reg-box {
  background: #f0f9f4;
  border: 1px solid #ccebdc;
  padding: 15px;
  border-radius: 10px;
  margin-top: 20px;
}

.reg-code {
  font-size: 28px;
  font-weight: bold;
  color: #fe3f40;
  letter-spacing: 1px;
}

.qr-box {
  margin-top: 25px;
}

/* Page Tracker */
.text-primary-jne {
  color: #0c2e66;
}

.track-input {
  border-radius: 32px !important;
  padding: 22px !important;
}

.track-image {
  max-width: 380px;
}

@media (max-width: 768px) {
  .track-image {
    width: 60%;
  }
}

/* hasil tracking */
.card-tokped {
  background: white;
  border-radius: 18px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
  max-width: 950px;
}

/* Landing Page - Cek Ketersediaan */
.perkara-input-box {
  border: 2px dashed #ccc;
  padding: 18px;
  border-radius: 12px;
  background: #fdfdfd;
  margin-bottom: 25px;
}

.perkara-input-box h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.service-card.available {
  border-color: #198754 !important;
  box-shadow: 0 0 10px rgba(25, 135, 84, 0.3);
  transition: 0.3s ease;
}

.service-card.available i {
  color: #198754 !important;
}
