/* 08 foto. – laman tempahan awam */
:root {
  --ink: #1A1A1A; --ink2: #3A3632; --muted: #5E5850; --muted2: #67625B;
  --line: #ECE9E4; --line2: #CFCAC2; --soft: #F4F2EF; --soft2: #EFEDEA; --soft3: #F7F6F4;
  --warn-bg: #FDF1DC; --warn: #7A4B00; --dot: #B5651D; --err-bg: #FBEAEA; --err: #8A1F1F;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 15px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: var(--ink); }
a:hover { color: #555049; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.loading { padding: 80px 20px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Kepala */
.hero { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 24px 28px; text-align: center; border-bottom: 1px solid var(--line); }
.brand { font-family: var(--serif); font-size: 40px; font-weight: 600; letter-spacing: 1px; line-height: 1; text-decoration: none; }
.brand.sm { font-size: 28px; }
.place { margin: 0; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.hero h1 { margin: 16px 0 0; font-family: var(--serif); font-size: 32px; font-weight: 500; font-style: italic; line-height: 1.15; }
.hero p { margin: 0; font-size: 14px; color: var(--muted); }
.bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.bar.center { justify-content: center; }
.backbtn { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); background: #fff; }

/* Langkah */
.steps { display: flex; justify-content: center; gap: 8px; padding: 20px 16px 0; flex-wrap: wrap; }
.steps span { padding: 6px 12px; border-radius: 999px; background: var(--soft); color: #4A453F; font-size: 12px; font-weight: 500; }
.steps span.on { background: var(--ink); color: #fff; font-weight: 600; }
.steps span.done { color: var(--ink); font-weight: 600; }

/* Bahagian */
section { display: flex; flex-direction: column; gap: 14px; padding: 28px 20px 8px; }
h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; line-height: 1.15; }
h2.big { font-size: 32px; line-height: 1.1; }
h3 { margin: 8px 0 0; font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.num { width: 24px; height: 24px; flex: none; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.eyebrow { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.xs { font-size: 12px; }
.center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 6px; }

/* Kalendar */
.card { border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; }
.cal-head b { font-size: 16px; }
.iconbtn { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; }
.iconbtn:disabled { opacity: .35; }
.grid7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); }
.day { height: 44px; width: 100%; border-radius: 10px; font-size: 14px; font-weight: 500; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: #fff; border: 1px solid var(--line2); }
.day.full { background: var(--soft2); color: var(--muted2); border-color: var(--soft2); text-decoration: line-through; }
.day.past { background: #fff; color: #B9B3AA; border-color: var(--line); }
.day.sel { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.day .dot { width: 5px; height: 5px; border-radius: 999px; background: var(--dot); }
.day.sel .dot { background: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); padding-top: 4px; }
.legend span { display: flex; align-items: center; gap: 6px; }
.lg { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line2); background: #fff; display: inline-flex; align-items: flex-end; justify-content: center; padding-bottom: 2px; }
.lg.full { background: var(--soft2); border-color: var(--soft2); }
.lg.sel { background: var(--ink); border-color: var(--ink); }
.lg i { width: 4px; height: 4px; border-radius: 999px; background: var(--dot); }

/* Pilihan (slot, kategori, tier) */
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left; background: #fff; border: 1px solid var(--line2); color: var(--ink); min-height: 64px; }
.opt .t { font-size: 15px; font-weight: 600; }
.opt .s { font-size: 12px; color: var(--muted); }
.opt .p { font-size: 15px; font-weight: 600; margin-top: 4px; }
.opt.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt.on .s { color: #E4E1DC; }
.opt.off { background: var(--soft3); color: var(--muted2); border: 1px dashed var(--line2); }
.opt.off .s { color: var(--muted2); }
.opt.slot { min-height: 96px; padding: 14px; }
.opt.slot .t { font-size: 16px; }
.badge { margin-top: 6px; padding: 3px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--soft); color: var(--ink); }
.opt.on .badge { background: #fff; color: var(--ink); }
.opt.off .badge { background: var(--soft2); color: var(--muted2); }
.tiers { display: flex; flex-wrap: wrap; gap: 8px; }
.tiers .opt { flex: 1 1 140px; min-height: 88px; }
.hint { padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 13px; color: var(--muted); }

/* Kad pakej */
.pkg { display: flex; flex-direction: column; gap: 16px; padding: 20px; border: 1px solid var(--ink); border-radius: 18px; box-shadow: 0 8px 24px rgba(26,26,26,.06); }
.pkg-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.pkg-tier { font-family: var(--serif); font-size: 34px; font-weight: 600; line-height: 1; }
.pkg-price { font-size: 26px; font-weight: 600; white-space: nowrap; }
.warn { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13px; font-weight: 600; }
.cov { display: flex; flex-direction: column; gap: 8px; }
.cov-row { display: flex; justify-content: space-between; font-size: 13px; }
.cov-bar { position: relative; height: 8px; border-radius: 999px; background: var(--soft2); overflow: hidden; }
.cov-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); border-radius: 999px; }
.cov-ticks { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); }
.flags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.flag { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--soft); }
.flag b { font-weight: 600; }
.flag span { font-size: 11px; }
.flag.no { background: #fff; color: var(--muted2); border: 1px dashed var(--line2); }
.incl { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.incl li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--ink2); }
.incl svg { flex: none; margin-top: 3px; }
.incl .t { flex: 1; }
.new { flex: none; padding: 2px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; }

/* Borang */
form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
label .opt-note { font-weight: 400; color: var(--muted); }
input, textarea, select { height: 48px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 12px; background: #fff; font-size: 16px; width: 100%; }
textarea { height: auto; padding: 12px 14px; resize: vertical; }
input[aria-invalid="true"] { border-color: var(--err); }

/* Ringkasan */
.summary { display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 16px; background: var(--soft); font-size: 14px; }
.summary.bordered { background: #fff; border: 1px solid var(--line); }
.row { display: flex; justify-content: space-between; gap: 12px; }
.row > span:first-child { color: var(--muted); }
.row > span:last-child { font-weight: 600; text-align: right; }
.row.big { font-size: 16px; }
.row.big > span { color: var(--ink) !important; font-weight: 700; }
.sep { height: 1px; background: #E2DED8; margin: 6px 0; }
.btn { display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 16px; font-weight: 600; text-decoration: none; border: none; width: 100%; }
.btn:hover { color: #fff; background: #333; }
.btn:disabled { opacity: .55; }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line2); height: 48px; font-size: 15px; font-weight: 500; }
.btn.ghost:hover { background: var(--soft); color: var(--ink); }
.err { padding: 12px 14px; border-radius: 12px; background: var(--err-bg); color: var(--err); font-size: 14px; font-weight: 500; }
.linkbtn { background: none; border: none; padding: 8px; font-size: 14px; text-decoration: underline; color: var(--ink); }

/* Deposit */
.timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; font-weight: 600; }
.timer b { font-variant-numeric: tabular-nums; font-size: 16px; }
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; }
.qrbox img { width: 220px; max-width: 100%; height: auto; border-radius: 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: #E2DED8; }
.bank { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; font-size: 14px; }
.bank .row { align-items: center; }
.copy { display: inline-flex; align-items: center; gap: 8px; }
.copy button { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; display: flex; align-items: center; justify-content: center; }
.upload { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px; border: 2px dashed var(--line2); border-radius: 16px; color: var(--ink2); font-size: 14px; text-align: center; cursor: pointer; }
.upload.has { border-style: solid; border-color: var(--ink); background: var(--soft3); }
.upload input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.upload img { max-width: 160px; max-height: 160px; border-radius: 10px; }

/* Selesai */
.done-hero { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 48px 24px 24px; text-align: center; }
.tick { width: 84px; height: 84px; border-radius: 999px; background: var(--soft); display: flex; align-items: center; justify-content: center; }
.done-hero h1 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 500; font-style: italic; line-height: 1.15; }
.done-hero p { margin: 0; color: var(--ink2); }
.pill { padding: 4px 10px; border-radius: 999px; background: var(--warn-bg); color: var(--warn); font-size: 12px; font-weight: 600; }
.next { display: flex; gap: 12px; align-items: flex-start; color: var(--ink2); }
.next .num { width: 28px; height: 28px; font-size: 13px; }
footer { margin-top: auto; padding: 28px 20px 40px; text-align: center; font-size: 12px; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; }
