/* Reservasi Online Labkesda — tampilan publik */
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url(font/jakarta-400.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url(font/jakarta-600.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url(font/jakarta-700.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url(font/jakarta-800.woff2) format('woff2'); }

:root {
  --utama: #0d8a7d; --utama-tua: #0a5f57; --utama-muda: #e3f5f2; --utama-garis: #b9e3dc;
  --aksen: #f59e0b; --teks: #16302c; --redup: #5f7470; --garis: #e2ebe9; --latar: #f2f7f6;
  --bayang: 0 1px 2px rgba(16, 48, 44, .06), 0 8px 24px rgba(16, 48, 44, .08);
  --bayang-besar: 0 18px 50px rgba(10, 95, 87, .18);
}
* { -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Jakarta', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: var(--teks);
  background: var(--latar); min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; position: relative; z-index: 1; }
a { color: var(--utama); }
.wadah { width: 100%; max-width: 760px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
.wadah-sempit { max-width: 480px; }

/* ---------- kepala / hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden; padding: 18px 0 64px;
  background:
    radial-gradient(900px 300px at 110% -20%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(500px 260px at -10% 120%, rgba(245, 158, 11, .22), transparent 60%),
    linear-gradient(135deg, #0b6e64 0%, #0d8a7d 45%, #12a594 100%);
}
.hero::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: var(--latar);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
.hero .gelembung { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero .g1 { width: 220px; height: 220px; right: -60px; top: 30px; }
.hero .g2 { width: 120px; height: 120px; left: 55%; top: -50px; }
.merek { display: flex; align-items: center; gap: 10px; position: relative; }
.merek img { width: 42px; height: 42px; background: #fff; border-radius: 50%; padding: 3px; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.merek .nama { font-weight: 700; line-height: 1.2; font-size: 15px; }
.merek .sub { font-size: 12px; opacity: .85; }
.hero h1 { font-weight: 800; font-size: clamp(24px, 6vw, 34px); letter-spacing: -.5px; margin: 22px 0 6px; position: relative; }
.hero p.lead { font-size: 15px; opacity: .92; margin: 0; max-width: 520px; position: relative; }
.lencana { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; }
.lencana span {
  background: rgba(255, 255, 255, .15); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(4px);
  border-radius: 99px; padding: 5px 12px; font-size: 12.5px; font-weight: 600;
}
body.lanjut .hero h1, body.lanjut .hero p.lead, body.lanjut .lencana { display: none; }
body.lanjut .hero { padding-bottom: 54px; }
.hero-kecil { padding-bottom: 54px; }
.hero-kecil h1 { font-size: 22px; margin-top: 16px; }

/* ---------- stepper ---------- */
.stepper { display: flex; list-style: none; padding: 12px 6px 9px; margin: -46px 0 14px; position: relative; z-index: 2; background: #fff; border-radius: 18px; box-shadow: var(--bayang); }
.stepper li { flex: 1; text-align: center; position: relative; font-size: 11.5px; color: var(--redup); font-weight: 600; z-index: 0; }
.stepper li::before {
  content: ''; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--garis);
}
.stepper li:first-child::before { display: none; }
.stepper .bulat {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 4px;
  background: #fff; border: 2px solid var(--garis); color: var(--redup); font-weight: 700; font-size: 13px;
  transition: all .25s;
}
.stepper li.lewat::before, .stepper li.aktif::before { background: var(--utama); }
.stepper li.lewat .bulat { background: var(--utama); border-color: var(--utama); color: #fff; }
.stepper li.lewat .bulat span { display: none; }
.stepper li.lewat .bulat::after { content: '✓'; }
.stepper li.aktif { color: var(--utama-tua); }
.stepper li.aktif .bulat { border-color: var(--utama); color: var(--utama); box-shadow: 0 0 0 5px rgba(13, 138, 125, .15); background: #fff; }

/* ---------- kartu ---------- */
.kartu {
  background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--bayang); border: 1px solid rgba(226, 235, 233, .7);
  animation: muncul .35s ease;
}
.kartu-angkat { margin-top: -42px; position: relative; z-index: 2; }
@keyframes muncul { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.judul-langkah { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.judul-langkah .ikon {
  width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--utama-muda), #fff); border: 1px solid var(--utama-garis);
}
.judul-langkah h2 { font-size: 19px; font-weight: 800; margin: 0 0 2px; color: var(--teks); }
.judul-langkah p { font-size: 13.5px; color: var(--redup); margin: 0; }
.sub-judul { font-weight: 700; font-size: 14px; margin: 20px 0 8px; display: flex; align-items: center; gap: 6px; }
.sub-judul small { font-weight: 400; color: var(--redup); }

/* ---------- formulir ---------- */
.form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: 12px; border: 1.5px solid var(--garis); padding: 11px 14px; font-size: 15px; background-color: #fbfdfc;
  transition: border-color .15s, box-shadow .15s;
}
.form-control:focus, .form-select:focus { border-color: var(--utama); box-shadow: 0 0 0 4px rgba(13, 138, 125, .12); background-color: #fff; }
.form-text { color: var(--redup); }
.kolom-ikon { position: relative; }
.kolom-ikon .form-control { padding-left: 42px; }
.kolom-ikon .ik { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 17px; opacity: .7; pointer-events: none; }
.kolom-ikon.berlabel .ik { top: auto; bottom: 12px; transform: none; }
.btn { border-radius: 12px; font-weight: 600; padding: 10px 18px; }
.btn-sm { border-radius: 10px; padding: 6px 12px; }
.btn-utama {
  background: linear-gradient(135deg, var(--utama), #12a594); border: 0; color: #fff;
  box-shadow: 0 6px 16px rgba(13, 138, 125, .28);
}
.btn-utama:hover, .btn-utama:focus { background: linear-gradient(135deg, var(--utama-tua), var(--utama)); color: #fff; }
.btn-utama:disabled { background: #9cc9c3; box-shadow: none; }
.btn-hantu { background: #fff; border: 1.5px solid var(--garis); color: var(--teks); }
.btn-hantu:hover { background: var(--latar); border-color: var(--utama-garis); }

/* ---------- pilih paket (ubin) ---------- */
.cari { position: relative; margin-bottom: 10px; }
.cari .form-control { padding-left: 40px; border-radius: 99px; }
.cari .ik { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); opacity: .55; }
.daftar-paket {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px;
  max-height: 360px; overflow-y: auto; padding: 2px 4px 2px 2px; scrollbar-width: thin;
}
.tile { position: relative; margin: 0; cursor: pointer; }
.tile-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-body {
  display: flex; gap: 10px; align-items: flex-start; height: 100%; padding: 11px 12px; border-radius: 14px;
  border: 1.5px solid var(--garis); background: #fff; transition: all .15s;
}
.tile-body:hover { border-color: var(--utama-garis); background: #fbfefd; }
.tile-cek {
  width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c4d3d0; flex-shrink: 0; display: grid; place-items: center;
  font-size: 13px; color: transparent; transition: all .15s; margin-top: 1px;
}
.tile-nama { font-weight: 600; font-size: 14px; line-height: 1.3; }
.tile-isi { font-size: 11.5px; color: var(--redup); margin-top: 2px; line-height: 1.35; }
.tile-input:checked + .tile-body { border-color: var(--utama); background: var(--utama-muda); box-shadow: 0 4px 12px rgba(13, 138, 125, .12); }
.tile-input:checked + .tile-body .tile-cek { background: var(--utama); border-color: var(--utama); color: #fff; }
.tile-input:focus-visible + .tile-body { outline: 3px solid rgba(13, 138, 125, .35); outline-offset: 1px; }
.kosong-cari { grid-column: 1 / -1; text-align: center; color: var(--redup); padding: 20px; font-size: 14px; }
.terpilih { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--utama); color: #fff; border: 0;
  border-radius: 99px; padding: 5px 8px 5px 12px; font-size: 12.5px; font-weight: 600; animation: muncul .2s ease;
}
.chip b { background: rgba(255, 255, 255, .25); border-radius: 50%; width: 18px; height: 18px; display: grid; place-items: center; font-size: 11px; }

/* ---------- pilih tanggal (kartu hari) ---------- */
.pilih-hari { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.hari {
  flex: 0 0 auto; width: 74px; scroll-snap-align: start; border: 1.5px solid var(--garis); background: #fff; border-radius: 16px;
  padding: 9px 4px 10px; text-align: center; cursor: pointer; transition: all .15s; color: var(--teks);
}
.hari:hover { border-color: var(--utama-garis); transform: translateY(-2px); }
.hari .h { font-size: 11.5px; color: var(--redup); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.hari .t { font-size: 24px; font-weight: 800; line-height: 1.15; }
.hari .b { font-size: 11.5px; color: var(--redup); }
.hari.minggu .h { color: #dc2626; }
.hari.tutup, .hari.tutup:hover { opacity: .38; cursor: not-allowed; transform: none; background: repeating-linear-gradient(135deg, #f1f5f4, #f1f5f4 6px, #e6ecea 6px, #e6ecea 12px); }
.hari.dipilih { background: linear-gradient(160deg, var(--utama), #12a594); border-color: transparent; color: #fff; box-shadow: 0 8px 18px rgba(13, 138, 125, .3); }
.hari.dipilih .h, .hari.dipilih .b { color: rgba(255, 255, 255, .85); }
.hari:focus-visible { outline: 3px solid rgba(13, 138, 125, .35); }
.info-tanggal { font-size: 12.5px; color: var(--redup); display: flex; gap: 6px; }

/* ---------- jenis kelamin ---------- */
.pilih-dua { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pilih-dua .tile-body { justify-content: center; align-items: center; padding: 12px; font-weight: 600; }
.pilih-dua .emo { font-size: 20px; }

/* ---------- anti-bot ---------- */
.kotak-captcha { background: var(--latar); border: 1.5px dashed var(--utama-garis); border-radius: 16px; padding: 14px; margin-top: 16px; }
.kotak-captcha img { background: #fff; border-radius: 10px; border: 1px solid var(--garis); }
.kode-captcha { width: 130px; font-size: 22px; letter-spacing: 6px; text-align: center; font-weight: 700; }
.ganti { background: none; border: 0; color: var(--utama); font-weight: 600; font-size: 13px; padding: 4px 6px; }

/* ---------- kotak info ---------- */
.info-kotak { border-radius: 16px; padding: 14px 16px; font-size: 14px; display: flex; gap: 12px; align-items: flex-start; }
.info-kotak .ik { font-size: 22px; line-height: 1; }
.info-hijau { background: #ecfdf5; border: 1px solid #a7f3d0; }
.info-kuning { background: #fffbeb; border: 1px solid #fde68a; }
.info-biru { background: #eff6ff; border: 1px solid #bfdbfe; }
.info-merah { background: #fef2f2; border: 1px solid #fecaca; }
.info-abu { background: #f4f6f6; border: 1px solid var(--garis); }
.nama-samar { font-size: 20px; font-weight: 800; letter-spacing: 1px; }
#pesan { border-radius: 14px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
#pesan.alert-danger::before { content: '⚠️'; }

/* ---------- tombol aksi melekat ---------- */
.aksi {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 20px -22px -22px; padding: 14px 22px;
  border-top: 1px solid var(--garis); background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px);
  border-radius: 0 0 20px 20px; position: sticky; bottom: 0; z-index: 5;
}
.aksi .ringkas-kecil { font-size: 12.5px; color: var(--redup); line-height: 1.3; }
.aksi .ringkas-kecil b { color: var(--teks); }
.aksi .btn-utama { min-width: 130px; }

/* ---------- ringkasan ---------- */
.ringkasan-blok { border: 1px solid var(--garis); border-radius: 16px; overflow: hidden; }
.ringkasan-blok .bagian { padding: 12px 16px; border-bottom: 1px solid var(--garis); }
.ringkasan-blok .bagian:last-child { border-bottom: 0; }
.ringkasan-blok .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--redup); font-weight: 700; margin-bottom: 4px; }
.ringkasan-blok .nilai { font-weight: 600; font-size: 14.5px; word-break: break-word; }
.ringkasan-blok .nilai .chip { background: var(--utama-muda); color: var(--utama-tua); padding: 4px 10px; margin: 2px 4px 2px 0; }
.sk { white-space: pre-line; background: var(--latar); border-radius: 14px; padding: 12px 14px; margin-top: 14px; font-size: 12.5px; color: #3c524e; max-height: 180px; overflow-y: auto; }
.setuju { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; font-weight: 600; cursor: pointer; }
.setuju input { width: 22px; height: 22px; margin-top: 0; flex-shrink: 0; }
.form-check-input:checked { background-color: var(--utama); border-color: var(--utama); }
.jebakan { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- tiket (berhasil & status) ---------- */
.tiket { background: #fff; border-radius: 22px; box-shadow: var(--bayang-besar); overflow: hidden; animation: muncul .4s ease; }
.tiket-atas { background: linear-gradient(135deg, #0b6e64, #12a594); color: #fff; padding: 22px; text-align: center; position: relative; }
.tiket-atas .lbl { font-size: 12px; opacity: .85; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.kode-besar { font-size: clamp(24px, 7vw, 32px); font-weight: 800; letter-spacing: 2px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.tiket-potong { position: relative; height: 22px; background: #fff; }
.tiket-potong::before, .tiket-potong::after { content: ''; position: absolute; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--latar); }
.tiket-potong::before { left: -11px; }
.tiket-potong::after { right: -11px; }
.tiket-potong span { position: absolute; left: 18px; right: 18px; top: 0; border-top: 2px dashed var(--garis); }
.tiket-isi { padding: 4px 22px 22px; }
.qr { display: flex; justify-content: center; }
.qr img, .qr canvas { width: 150px; height: 150px; padding: 8px; background: #fff; border-radius: 12px; border: 1px solid var(--garis); }
.centang {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 10px; display: grid; place-items: center; font-size: 36px;
  background: rgba(255, 255, 255, .2); border: 2px solid rgba(255, 255, 255, .5); animation: denyut 1.8s ease-out 1;
}
@keyframes denyut { 0% { transform: scale(.4); opacity: 0; } 50% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.lencana-status { display: inline-flex; align-items: center; gap: 6px; border-radius: 99px; padding: 6px 14px; font-weight: 700; font-size: 13.5px; background: #fff; }
.st-warning { color: #92400e; } .st-success { color: #065f46; } .st-info { color: #1e40af; } .st-danger { color: #991b1b; } .st-secondary { color: #475569; }
.data-baris { display: grid; grid-template-columns: 130px 1fr; gap: 8px 12px; font-size: 14px; margin: 14px 0 0; }
.data-baris dt { color: var(--redup); font-weight: 400; }
.data-baris dd { margin: 0; font-weight: 600; word-break: break-word; }
.linimasa { list-style: none; padding: 0; margin: 8px 0 0; }
.linimasa li { position: relative; padding: 0 0 14px 26px; font-size: 13.5px; }
.linimasa li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--utama); box-shadow: 0 0 0 4px var(--utama-muda); }
.linimasa li::after { content: ''; position: absolute; left: 10px; top: 18px; bottom: 0; width: 2px; background: var(--garis); }
.linimasa li:last-child::after { display: none; }
.linimasa .wkt { color: var(--redup); font-size: 12px; }

/* ---------- kaki ---------- */
.kaki { color: var(--redup); padding: 26px 0 30px; text-align: center; font-size: 12.5px; }
.kaki .tautan-cek { display: inline-flex; gap: 6px; align-items: center; background: #fff; border: 1px solid var(--garis); border-radius: 99px; padding: 8px 16px; font-weight: 600; text-decoration: none; margin-bottom: 14px; box-shadow: var(--bayang); }

/* ---------- memuat ---------- */
.kerangka { height: 16px; border-radius: 8px; background: linear-gradient(90deg, #eef3f2 25%, #f7faf9 50%, #eef3f2 75%); background-size: 200% 100%; animation: kilau 1.2s infinite; margin-bottom: 10px; }
@keyframes kilau { to { background-position: -200% 0; } }

@media (max-width: 520px) {
  .kartu { padding: 18px 16px; border-radius: 18px; }
  .aksi { margin: 18px -16px -18px; padding: 12px 16px; border-radius: 0 0 18px 18px; }
  .stepper li { font-size: 10px; }
  .stepper .bulat { width: 28px; height: 28px; font-size: 12px; }
  .stepper li::before { top: 13px; }
  .daftar-paket { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 330px; }
  .tile-body { padding: 10px; gap: 8px; }
  .tile-nama { font-size: 13px; }
  .data-baris { grid-template-columns: 1fr; gap: 2px; }
  .data-baris dt { margin-top: 8px; }
  .lencana span { font-size: 11.5px; padding: 4px 10px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media print {
  .hero, .kaki, .aksi, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .tiket { box-shadow: none; border: 1px solid #ccc; }
  .tiket-atas { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
