/* PELNI Cargo — extends pelni-entertainment layout */

body.page-order-cargo {
  --ent-sidebar: 160px;
  --cargo-banner-height: 320px;
}

/* Background blur dari banner cargo */
body.page-order-cargo.theme-light .bg-parallax.bg-parallax--static-image,
body.page-order-cargo.theme-dark .bg-parallax.bg-parallax--static-image {
  background-image: url("images/banner-cargo.jpg");
  background-color: #1a2e4a;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 1;
}

body.page-order-cargo .bg-parallax.cargo-page-blur-host {
  background-image: none !important;
}

body.page-order-cargo .cargo-page-blur-layer {
  position: absolute;
  inset: -60px;
  background-size: cover;
  background-position: center left;
  background-repeat: no-repeat;
  filter: blur(52px);
  transform: scale(1.18);
  opacity: 0;
  transition: opacity 0.7s ease;
  will-change: opacity;
}

body.page-order-cargo .cargo-page-blur-layer.is-active {
  opacity: 1;
}

body.page-order-cargo .cargo-banner {
  position: relative;
  width: 100%;
  height: var(--cargo-banner-height);
  flex-shrink: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 5px;
}

body.page-order-cargo .cargo-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center left;
  display: block;
}

body.page-order-cargo .ent-cat-item {
  width: 110px;
  height: 110px;
}

body.page-order-cargo .ent-cat-name {
  font-size: 11px;
  white-space: normal;
  line-height: 1.15;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.page-order-cargo .ent-cat-thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 50%;
}

body.page-order-cargo .ent-cat-thumb--icon i {
  font-size: 28px;
  color: var(--text-main);
}

body.page-order-cargo .ent-cat-item.is-active .ent-cat-thumb--icon {
  background: rgba(255, 255, 255, 0.22);
}

body.page-order-cargo .ent-cat-item.is-active .ent-cat-thumb--icon i {
  color: #fff;
}

body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg [stroke]:not([stroke="none"]),
body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg path.secondary,
body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg .secondary,
body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg path.primary,
body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg .primary {
  stroke: #ffffff !important;
}

body.page-order-cargo .ent-cat-item.is-active .ent-cat-lottie svg [fill]:not([fill="none"]) {
  fill: #ffffff !important;
}

/* Panels */
.cargo-panels {
  flex: 1;
  min-height: 0;
}

.cargo-panel[hidden] {
  display: none !important;
}

.cargo-panel.is-active {
  display: block;
}

/* Booking card */
.cargo-booking-card,
.cargo-info-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  padding: 20px 24px 24px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

body.theme-dark.page-order-cargo .cargo-booking-card {
  background: rgba(19, 19, 24, 0.3);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.18),
    0 8px 22px rgba(0, 0, 0, 0.22);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

body.theme-dark.page-order-cargo .cargo-info-card {
  background: rgba(22, 27, 40, 0.88);
  border-color: rgba(255, 255, 255, 0.08);
}

/* Stepper */
.cargo-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 14px 20px;
}

.cargo-step {
  flex-shrink: 0;
}

.cargo-step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: rgba(15, 23, 42, 0.35);
  font-size: 20px;
  border: 2px solid rgba(15, 23, 42, 0.08);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.cargo-step.is-active .cargo-step-icon {
  background: linear-gradient(135deg, #4159f6 0%, #395aff 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

body.theme-dark.page-order-cargo .cargo-step-icon {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.1);
}

body.theme-dark.page-order-cargo .cargo-step.is-active .cargo-step-icon {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #fff;
  border-color: transparent;
}

.cargo-step-line {
  flex: 1;
  min-width: 24px;
  max-width: 56px;
  height: 2px;
  background: rgba(15, 23, 42, 0.12);
  margin: 0 4px;
}

body.theme-dark.page-order-cargo .cargo-step-line {
  background: rgba(255, 255, 255, 0.15);
}

.cargo-form-title,
.cargo-info-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin: 0 0 18px;
}

body.theme-dark.page-order-cargo .cargo-form-title,
body.theme-dark.page-order-cargo .cargo-info-title {
  color: #93c5fd;
}

.cargo-info-title {
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0;
}

.cargo-info-title i {
  font-size: 22px;
  color: var(--primary);
}

.cargo-info-desc {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  margin: 0 0 16px;
  line-height: 1.5;
}

/* Form */
.cargo-form-row {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.cargo-form-row--2 {
  grid-template-columns: 1fr 1fr;
}

.cargo-field {
  min-width: 0;
}

.cargo-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.cargo-required {
  color: #ef4444;
}

.cargo-select-wrap {
  position: relative;
}

.cargo-select,
.cargo-input {
  width: 100%;
  height: 42px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  padding: 0 36px 0 12px;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

body.theme-dark.page-order-cargo .cargo-select,
body.theme-dark.page-order-cargo .cargo-input {
  background: rgba(15, 23, 42, 0.5);
  border-color: rgba(255, 255, 255, 0.12);
}

.cargo-select:focus,
.cargo-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.cargo-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

.cargo-input-wrap {
  position: relative;
}

.cargo-input-wrap .cargo-input {
  padding-right: 48px;
}

.cargo-input--plain {
  padding-right: 12px;
}

.cargo-input-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted, #64748b);
  pointer-events: none;
}

/* Schedule info grid */
.cargo-schedule-info {
  margin-top: 4px;
  margin-bottom: 8px;
  padding: 16px 4px 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark.page-order-cargo .cargo-schedule-info {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.cargo-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
}

.cargo-info-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cargo-info-item {
  font-size: 13px;
  line-height: 1.4;
}

.cargo-info-item strong {
  display: block;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1px;
}

.cargo-info-item span {
  color: var(--primary);
}

body.theme-dark.page-order-cargo .cargo-info-item span {
  color: #8b9eff;
}

/* Actions */
.cargo-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

body.theme-dark.page-order-cargo .cargo-form-actions {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.cargo-btn-booking,
.cargo-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}

.cargo-btn-booking {
  grid-column: 2;
  width: 100%;
  min-width: 0;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px rgba(57, 90, 255, 0.35);
}

.cargo-btn-booking:hover {
  background: #2f4ae0;
}

.cargo-btn-booking:active {
  transform: scale(0.98);
}

.cargo-btn-secondary {
  background: rgba(57, 90, 255, 0.12);
  color: var(--primary);
  margin-top: 4px;
}

.cargo-btn-secondary:hover {
  background: rgba(57, 90, 255, 0.2);
}

/* Tracking */
.cargo-track-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

.cargo-track-result {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(57, 90, 255, 0.08);
  border: 1px solid rgba(57, 90, 255, 0.18);
  font-size: 13px;
  line-height: 1.5;
}

.cargo-track-result strong {
  color: var(--primary);
}

/* Pricing table */
.cargo-pricing-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.cargo-pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.cargo-pricing-table th,
.cargo-pricing-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.cargo-pricing-table th {
  background: rgba(57, 90, 255, 0.08);
  font-weight: 600;
  color: var(--text-main);
}

.cargo-pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.cargo-info-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-muted, #64748b);
  font-style: italic;
}

/* FAQ */
.cargo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cargo-faq-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  overflow: hidden;
}

.cargo-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: none;
  background: rgba(57, 90, 255, 0.04);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
}

.cargo-faq-q i {
  font-size: 18px;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.cargo-faq-item.is-open .cargo-faq-q i {
  transform: rotate(180deg);
}

.cargo-faq-a {
  display: none;
  padding: 0 14px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-muted, #64748b);
}

.cargo-faq-item.is-open .cargo-faq-a {
  display: block;
}

/* Terms */
.cargo-terms-body h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin: 16px 0 6px;
}

.cargo-terms-body h3:first-child {
  margin-top: 0;
}

.cargo-terms-body p {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted, #64748b);
  margin: 0;
}

@media (max-width: 900px) {
  .cargo-form-row--2,
  .cargo-info-grid,
  .cargo-form-actions {
    grid-template-columns: 1fr;
  }

  .cargo-btn-booking {
    grid-column: 1;
  }

  .cargo-step-line {
    min-width: 12px;
  }

  .cargo-step-icon {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
}
