* {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, sans-serif;
}

body {
  margin: 0 auto;
  padding: 14px;
  min-height: 100vh;
  width: 100%;
  max-width: 430px;
  background-color: #f4f4f4;
  background-image: url("./img/background.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #222;
}

.maintenance-banner {
  position: sticky;
  top: 0;
  z-index: 1200;
  margin: -14px -14px 12px;
  padding: 12px 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #7a1f1f;
  background: #ffe2e2;
  border-bottom: 1px solid #f1b7b7;
}

.head-text {
  max-width: 260px;
  width: 100%;
  display: block;
  margin: 0 auto 14px;
}





section {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 14px;
  position: relative;
}


.section-data-pemesan-highlight {
  z-index: 30;
  border: 2px solid #ffd65a;
  background: linear-gradient(180deg, rgba(255, 250, 224, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 10px 24px rgba(128, 86, 0, 0.12);
}

.section-highlight-note {
  margin: -2px 0 12px;
  font-size: 12px;
  color: #7a5a00;
  font-weight: 600;
}

.subsection-title {
  margin-top: 6px;
}

.section-tanggal {
  z-index: 30;
}

.section-paket {
  z-index: 10;
}

h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

label {
  font-size: 13px;
}

input {
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #ccc;
  font-size: 15px;
}



.jumlah-orang-note {
  margin: 8px 0 0;
  color: #7a7a7a;
  font-size: 11px;
  font-weight: 300;
}


.tanggal-dropdown {
  position: relative;
  margin-top: 6px;
}

.tanggal-trigger {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #ccc;
  background: #fff;
  text-align: left;
  font-size: 14px;
}

.tanggal-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  z-index: 40;
}

.tanggal-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

.tanggal-item {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 6px;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
}

.tanggal-item span {
  display: block;
  color: #888;
  font-size: 11px;
  margin-bottom: 3px;
}

.tanggal-item strong {
  font-size: 12px;
}

.tanggal-item.active {
  background: #1e88e5;
  border-color: #1e88e5;
  color: #fff;
}

.tanggal-item.active span {
  color: #e6f2ff;
}

.tanggal-item.disabled {
  background: #ffeceb;
  border-color: #f1b7b2;
  color: #b9342b;
  cursor: not-allowed;
}

.tanggal-item.disabled span {
  color: #cc645c;
}

.tanggal-legend {
  margin: 10px 2px 0;
  font-size: 11px;
  color: #8a3a33;
  display: flex;
  align-items: center;
  gap: 6px;
}

.tanggal-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #de5d55;
  border: 1px solid #c84f47;
  flex: 0 0 auto;
}


.order-lock-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #f1b7b7;
  background: #fff1f1;
  color: #8f2a2a;
  font-size: 12px;
  line-height: 1.4;
}

.order-lock-note strong {
  display: inline-block;
  margin-right: 4px;
}


#btnSubmit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border-radius: 14px;
  border: none;
  background: #1e88e5;
  color: #fff;
}

#btnSubmit.loading,
#btnSubmit[aria-disabled="true"] {
  opacity: 0.8;
  pointer-events: none;
}

#btnSubmit.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: text-bottom;
}

.paket-card {
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  display: flex;
  gap: 12px;
  align-items: stretch;
}

.paket-skeleton-card {
  pointer-events: none;
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: #ececec;
  border-radius: 10px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  animation: shimmer 1.2s infinite;
}

.skeleton-thumb {
  width: 92px;
  min-width: 92px;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

.skeleton-line {
  height: 10px;
  margin-bottom: 8px;
}

.skeleton-title {
  width: 70%;
  height: 16px;
}

.skeleton-price {
  width: 45%;
  margin-bottom: 0;
}

.skeleton-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.skeleton-qty {
  width: 24px;
  height: 14px;
  border-radius: 6px;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

.paket-img {
  width: 92px;
  min-width: 92px;
  border-radius: 12px;
  object-fit: cover;
  aspect-ratio: 1 / 1;
  cursor: zoom-in;
}

.paket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.paket-info {
  flex: 1;
}


.paket-meta,
.paket-price,
.summary-meta {
  margin: 2px 0;
  color: #7a7a7a;
  font-size: 12px;
  font-weight: 300;
}

.paket-price {
  margin-bottom: 0;
}

.summary-item {
  margin-bottom: 10px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-control button {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: none;
  background: #eee;
  font-size: 18px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  width: 90%;
  max-width: 360px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  animation: popupIn 0.25s ease;
}

.modal.modal-opening {
  animation: fadeIn 0.25s ease;
}

.total {
  font-size: 22px;
  font-weight: bold;
  margin: 6px 0 10px;
}

.qris-img {
  width: 220px;
  margin: 10px auto;
  display: block;
}

.instruksi {
  font-size: 13px;
  text-align: left;
  margin: 10px 0;
}

.btn-wa {
  display: block;
  padding: 12px;
  background: #25d366;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  margin-top: 12px;
}

.btn-wa.loading,
.btn-wa[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.75;
}

.btn-wa.loading::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: text-bottom;
}

.btn-close {
  margin-top: 8px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 10px;
}

.modal-content-preview {
  max-width: 420px;
  padding: 16px;
  position: relative;
}

.preview-image {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.preview-caption {
  margin: 12px 0 4px;
  font-size: 13px;
  color: #666;
}

.preview-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

@keyframes popupIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


@media (max-width: 420px) {
  .paket-card {
    gap: 10px;
  }

  .paket-img {
    width: 82px;
    min-width: 82px;
  }

  .skeleton-thumb {
    width: 82px;
    min-width: 82px;
  }
}


.section-addon {
  z-index: 9;
}

.addon-note {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #3f3f3f;
}

.addon-subtitle {
  margin: 14px 0 8px;
  font-size: 14px;
}

.addon-reveal-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  background: #1e88e5;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.addon-consent-inline {
  border: 1px solid #d7e7f8;
  background: #f4f9ff;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 8px;
}

.addon-expand-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  margin-bottom: 2px;
}

.addon-expand-wrap.expanded {
  margin-bottom: 8px;
}

.addon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding-bottom: 12px;
}

.addon-card {
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 6px;
  background: #fff;
}

.addon-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 6px;
}

.addon-img-dummy {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: linear-gradient(135deg, #e8e8e8, #d7d7d7);
  margin-bottom: 6px;
}

.addon-name {
  margin: 0;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  min-height: 26px;
}

.addon-price {
  margin: 4px 0 6px;
  font-size: 10px;
  color: #666;
}

.addon-qty-control {
  justify-content: flex-end;
  gap: 4px;
}

.addon-qty-control button {
  width: 24px;
  height: 24px;
  font-size: 15px;
  border-radius: 6px;
}

.addon-qty {
  min-width: 12px;
  text-align: center;
}

.addon-consent-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.45;
}

.addon-consent-actions {
  display: grid;
  gap: 8px;
}

.addon-consent-agree,
.addon-consent-decline {
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 10px;
  font-size: 13px;
}

.addon-consent-agree {
  background: #1e88e5;
  color: #fff;
}

.addon-consent-decline {
  background: #d5d5d5;
  color: #333;
}

.summary-group {
  margin: 10px 0 6px;
}

.addon-total-note {
  margin: 0 0 10px;
  font-size: 12px;
  color: #555;
}

.addon-total-note small {
  color: #7a1f1f;
}
