:root {
  --primary: #2563eb;
  --primary-light: #eff6ff;
  --success: #16a34a;
  --border: #e2e8f0;
  --text-muted: #64748b;
  --bg-soft: #f8fafc;
  --tab-active-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.badge--primary-soft {
  background: rgba(13, 110, 253, 0.08);
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.2) !important;
}
.badge--info-soft {
  background: rgba(13, 202, 240, 0.1);
  color: #0a8ea0;
  border-color: rgba(13, 202, 240, 0.25) !important;
}
.badge--warning-soft {
  background: rgba(255, 193, 7, 0.1);
  color: #a07800;
  border-color: rgba(255, 193, 7, 0.3) !important;
}
.badge--success-soft {
  background: rgba(25, 135, 84, 0.08);
  color: #198754;
  border-color: rgba(25, 135, 84, 0.2) !important;
}
.badge--secondary-soft {
  background: rgba(108, 117, 125, 0.1);
  color: #495057;
  border-color: rgba(108, 117, 125, 0.25) !important;
}
.badge {
  font-weight: 500;
  font-size: 0.75rem;
  padding: 0.3em 0.65em;
  border-radius: 5px;
}
.card {
  border: 1px solid #e8ecf0;
}
.card:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.07) !important;
  transition: box-shadow 0.2s;
}

.package-form-wrapper {
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 24px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.form-tabs-header {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.form-tabs-header::-webkit-scrollbar {
  display: none;
}

.form-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.875rem;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.form-tab-btn:hover {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.04);
}

.form-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  background: #fff;
  font-weight: 600;
}

.form-tab-btn .tab-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all 0.2s ease;
}

.form-tab-btn.active .tab-icon {
  background: var(--primary-light);
  color: var(--primary);
}

.form-tab-btn .tab-number {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.2s;
}

.form-tab-btn.has-error .tab-number {
  background: #ef4444;
  opacity: 1;
  transform: scale(1);
}

.form-tab-body {
  padding: 32px;
}

.tab-pane-custom {
  display: none;
  animation: fadeSlideIn 0.25s ease;
}

.tab-pane-custom.active {
  display: block;
}

@keyframes fadeSlideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-section-title i {
  color: var(--primary);
}

.form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: #374151;
  margin-bottom: 6px;
}

.form-control,
.form-select {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  outline: none;
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

.input-group .form-control {
  border-radius: 10px 0 0 10px;
}

.input-group-text {
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-left: none;
  border-radius: 0 10px 10px 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.time-range-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.coord-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.package-img {
  max-height: 160px;
  object-fit: cover;
  width: 100%;
}

.map-img {
  max-height: 160px;
  object-fit: cover;
  width: 100%;
}

.image-upload-box {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-soft);
}

.image-upload-box:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.image-upload-box i {
  font-size: 2rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.image-upload-box p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.image-upload-box input[type="file"] {
  display: none;
}

.tab-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.btn-tab-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-prev {
  background: #fff;
  border: 1.5px solid var(--border);
  color: #374151;
}

.btn-prev:hover {
  background: var(--bg-soft);
  border-color: #94a3b8;
}

.btn-next {
  background: var(--primary);
  color: #fff;
}

.btn-next:hover {
  background: #1d4ed8;
}

.btn-submit-final {
  background: var(--success);
  color: #fff;
  display: none;
}

.btn-submit-final:hover {
  background: #15803d;
}

.tab-progress {
  display: flex;
  gap: 6px;
  align-items: center;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.progress-dot.active {
  background: var(--primary);
  width: 24px;
  border-radius: 4px;
}

.progress-dot.done {
  background: var(--success);
}

.status-toggle-card {
  padding: 16px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: var(--bg-soft);
}

.form-check-input:checked {
  background-color: var(--primary);
  border-color: var(--primary);
}

.video-icon {
  border-left: 1.5px solid var(--border);
  border-radius: 10px 0 0 10px;
}

.video-url {
  border-radius: 0 10px 10px 0;
  border-left: none;
}

.status_switch {
  width: 3rem;
  height: 1.5rem;
}

.btn-prev {
  visibility: hidden;
}

/* image gallery */
.image-uploader {
  min-height: 180px;
  border: 2px dashed #d9d9d9;
  border-radius: 8px;
  background: #fafafa;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
}

.image-uploader:hover {
  border-color: #4099ff;
  background: #f5faff;
}

.image-uploader input[type="file"] {
  width: 0;
  height: 0;
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.image-uploader .uploaded {
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.image-uploader .upload-text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #6c757d;
  font-size: 15px;
  text-align: center;
  pointer-events: none;
}

.image-uploader .upload-text i {
  font-size: 40px;
  margin-bottom: 10px;
  color: #6c757d;
}

.package-image-wrap {
  width: 190px;
  height: 210px;
  border-radius: 10px;
  overflow: hidden;
}

.package-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-time-info {
  font-size: 0.875rem;
  color: #555;
}



.input-group-mobile .input-group .form-control {
    border-radius: 5px;
    
}

.input-group-mobile .input-group-text {
    border-radius: 5px 0px 0px 5px;
    border-left: 1px solid var(--border) !important;
}