/* Pembaruan 2026-11-14: kolom form tambahan, T&C, promo, testimoni lewat link, affiliate, kerja sama. */

/* Kolom pilihan "tombol bulat" (mis. Hijab / Non-hijab) */
.xf-radio { display: flex; flex-wrap: wrap; gap: 8px; }
.xf-pill { position: relative; cursor: pointer; margin: 0; }
.xf-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.xf-pill span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); font-size: .88rem; transition: .15s; }
.xf-pill input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.xf-pill input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.xf-line span { opacity: .8; }

/* Jendela Syarat & Ketentuan booking */
.terms-body { font-size: .92rem; line-height: 1.7; white-space: normal; }

/* ---------- Promo ---------- */
#promo { scroll-margin-top: 110px; }
.promo-card { height: 100%; border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.promo-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.promo-card.wide { flex-direction: row; }
.promo-card.wide .promo-img { flex: 0 0 46%; aspect-ratio: auto; }
.promo-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--glass-2); }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-body { padding: 26px 26px 28px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.promo-body h3 { font-size: 1.7rem; margin: 10px 0 8px; line-height: 1.15; }
.promo-body p { margin: 0; }
.promo-body .btn { margin-top: auto !important; }
.promo-body .promo-until { margin: 10px 0 14px; }
.promo-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: linear-gradient(135deg, #f2b84b, #e8875a); color: #2a1606; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.promo-until { color: var(--accent); }
@media (max-width: 767px) { .promo-card.wide { flex-direction: column; } .promo-card.wide .promo-img { aspect-ratio: 4 / 3; } }

.promo-pop .modal-dialog { max-width: 440px; }
.promo-pop .modal-content { position: relative; overflow: hidden; border-radius: 24px; background: var(--solid); border: 1px solid var(--stroke); }
.promo-pop-img { width: 100%; max-height: 52vh; object-fit: cover; display: block; }
.promo-pop h3 { font-size: 1.9rem; line-height: 1.15; }
.promo-x { position: absolute; top: 12px; right: 12px; z-index: 5; width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.55); color: #fff; font-size: 1rem; backdrop-filter: blur(6px); }
.promo-x:hover { background: rgba(0,0,0,.75); }
.promo-dots { display: flex; justify-content: center; gap: 6px; padding: 0 0 18px; }
.promo-dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; background: var(--stroke-2); padding: 0; transition: .2s; }
.promo-dots button.on { width: 22px; background: var(--accent); }
.promo-slide { animation: navaRise .4s ease both; }

/* Admin promo */
.promo-admin .promo-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--glass-2); display: grid; place-items: center; font-size: 2rem; color: var(--muted); }
.promo-admin .promo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.promo-admin .promo-badge { position: absolute; left: 10px; top: 10px; }

/* ---------- Testimoni: pilih bintang ---------- */
.star-input { display: flex; flex-direction: row-reverse; justify-content: center; gap: 6px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; color: var(--stroke-2); cursor: pointer; transition: .15s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f2b84b; }

/* Footer: tautan program affiliate & kerja sama */
.foot-extra { display: flex; flex-wrap: wrap; gap: 14px; font-size: .82rem; }

/* Camera Disposable: frame berkotak banyak */
.dispo-slotbar { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 8px; border-radius: 14px; background: var(--glass-2); border: 1px solid var(--stroke); }

/* Admin: perancang kolom foto frame */
.fs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.fs-stage { position: relative; margin: 0 auto; max-width: 100%; width: fit-content; border-radius: 12px; overflow: hidden; touch-action: none; user-select: none;
  background: repeating-conic-gradient(#8884 0% 25%, transparent 0% 50%) 0 0 / 18px 18px; border: 1px solid var(--stroke); }
.fs-stage img { display: block; max-width: 100%; max-height: 62vh; pointer-events: none; }
.fs-layer { position: absolute; inset: 0; }
.fs-box { position: absolute; border: 2px dashed rgba(255,255,255,.9); background: rgba(var(--accent-rgb), .22); box-shadow: 0 0 0 1px rgba(0,0,0,.45) inset; cursor: move; }
.fs-box.on { border-style: solid; border-color: var(--accent); background: rgba(var(--accent-rgb), .32); z-index: 2; }
.fs-no { position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .8rem; }
.fs-rs { position: absolute; right: -8px; bottom: -8px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); cursor: nwse-resize; }
.fs-list { display: grid; gap: 6px; max-height: 240px; overflow: auto; }
.fs-row { display: flex; justify-content: space-between; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--stroke); background: transparent; color: var(--text); font-size: .86rem; }
.fs-row.on { border-color: var(--accent); }
.fs-thumb { position: relative; max-width: 100%; max-height: 100%; height: 100%; }
.fs-thumb img { width: 100%; height: 100%; object-fit: fill; display: block; }
.fs-mini { position: absolute; border: 1.5px dashed var(--accent); background: rgba(var(--accent-rgb), .18); color: #fff; font-size: .65rem; font-weight: 700; display: grid; place-items: center; text-shadow: 0 1px 2px #000; }

/* Setting > Warna aksen */
.acc-swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.acc-swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--stroke-2); background: var(--sw); padding: 0; transition: transform .15s; }
.acc-swatches button:hover { transform: scale(1.1); }
.acc-swatches button.on { box-shadow: 0 0 0 3px var(--bg2), 0 0 0 5px var(--sw); }
.acc-preview { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.acc-btn { background: linear-gradient(135deg, var(--pa), var(--pa2)); color: var(--pink); border: 0; border-radius: 99px; padding: .4rem 1rem; }
.acc-lang { display: inline-flex; border-radius: 99px; border: 1px solid var(--stroke); overflow: hidden; font-size: .78rem; }
.acc-lang b, .acc-lang span { padding: 4px 10px; } .acc-lang b { background: linear-gradient(135deg, var(--pa), var(--pa2)); color: var(--pink); }
.acc-link { color: var(--pa); font-size: .9rem; }

/* Akses menu per paket langganan */
.sb-item.locked { opacity: .55; }
.sb-item.locked:hover { opacity: .85; }
.sb-lock { margin-left: auto; font-size: .8rem; color: var(--muted); }
.plan-menus { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 14px; }
.pkg-hit { border-color: var(--accent) !important; box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .35); }
.plan-access summary { cursor: pointer; color: var(--text); }

/* Camera Disposable: nama tamu wajib */
.dispo-name-hint { color: var(--muted); }
#dGuest.is-invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,.25); }
#dGuest.is-invalid + .dispo-name-hint { color: #ff8a8a; }

/* ---------- Camera Disposable: layar kamera di web ---------- */
html.cam-open, html.cam-open body { overflow: hidden; }
.cam-ui { --cam-or: #ff7a2f; position: fixed; inset: 0; z-index: 3000; background: #0b0b0c; color: #f3f3f3; display: flex; flex-direction: column;
  padding: calc(10px + env(safe-area-inset-top)) 16px calc(14px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; user-select: none; }
.cam-top { display: flex; align-items: center; gap: 10px; padding: 4px 2px 10px; }
.cam-title { flex: 1; min-width: 0; text-align: center; line-height: 1.15; }
.cam-title b { display: block; font-family: var(--serif); font-size: 1.35rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam-title small { color: #9a9a9a; font-size: .74rem; letter-spacing: .04em; }
.cam-date { min-width: 44px; text-align: right; font: 700 .9rem "Courier New", ui-monospace, monospace; color: var(--cam-or); letter-spacing: .12em; text-shadow: 0 0 6px rgba(255,122,47,.6); }
.cam-ic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #1c1c1e; color: #eee; display: grid; place-items: center; font-size: 1.1rem; flex: none; }
.cam-ic.on { background: var(--cam-or); color: #160a02; }
.cam-view { position: relative; flex: 1; min-height: 0; border-radius: 26px; overflow: hidden; background: #000; border: 2px solid var(--cam-or); box-shadow: 0 0 0 6px #161617; }
.cam-view video { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: center; transition: transform .2s; }
.cam-view video.mirror { transform: scaleX(-1); }
.cam-stamp { position: absolute; right: 18px; bottom: 16px; font: 700 1.25rem "Courier New", ui-monospace, monospace; color: #ff8a3d; letter-spacing: .14em; text-shadow: 0 0 8px rgba(255,120,40,.85); pointer-events: none; }
.cam-zoom { position: absolute; left: 50%; bottom: 58px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(20,20,20,.6); backdrop-filter: blur(8px); }
.cam-zoom button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: #eee; font: 700 .78rem "Courier New", monospace; }
.cam-zoom button.on { background: #f3f3f3; color: #111; }
.cam-sending { position: absolute; left: 14px; top: 14px; font-size: .75rem; padding: 4px 10px; border-radius: 99px; background: rgba(0,0,0,.55); color: #ffd2b5; }
.cam-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 24px; background: rgba(8,8,9,.86); }
.cam-empty i { font-size: 2.4rem; color: var(--cam-or); } .cam-empty b { font-size: 1.2rem; } .cam-empty span { color: #b5b5b5; font-size: .9rem; max-width: 260px; }
.cam-mid { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px 10px; }
.cam-mid span { font: 700 .74rem "Courier New", monospace; letter-spacing: .24em; color: #cfcfcf; }
.cam-bottom { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.cam-left { width: 64px; height: 64px; border-radius: 18px; background: #1c1c1e; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.cam-left b { font: 700 1.5rem "Courier New", monospace; color: var(--cam-or); line-height: 1; }
.cam-left small { font-size: .55rem; letter-spacing: .2em; color: #8c8c8c; margin-top: 3px; }
.cam-shot { width: 86px; height: 86px; border-radius: 50%; border: 4px solid #2a2a2c; background: #161617; display: grid; place-items: center; padding: 0; }
.cam-shot span { width: 64px; height: 64px; border-radius: 50%; background: var(--cam-or); box-shadow: 0 0 22px rgba(255,122,47,.45); transition: transform .12s; }
.cam-shot:active span { transform: scale(.88); }
.cam-shot:disabled span { background: #444; box-shadow: none; }
.cam-album { width: 64px; height: 64px; border-radius: 18px; border: 0; background: #1c1c1e center / cover; color: #ddd; font-size: 1.3rem; }
.cam-album.has i { display: none; }
.cam-album.has { border: 2px solid #f3f3f3; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; transition: opacity .15s; }
.cam-flash.on { opacity: 1; }
.cam-ui.snap .cam-view::after { content: ""; position: absolute; inset: 0; background: #fff; animation: camSnap .22s ease-out; }
@keyframes camSnap { from { opacity: .85; } to { opacity: 0; } }
/* Layar lebar (laptop): jendela bidik tetap mengisi sisa tinggi layar, tidak pernah melebihi layar. */
.cam-ui > * { flex-shrink: 0; } .cam-ui > .cam-view { flex: 1 1 0; }

/* ---------- Photobooth Virtual (tamu) ---------- */
.pb-quota { display: flex; flex-wrap: wrap; gap: 8px; }
.pb-quota span { padding: 5px 12px; border-radius: 99px; background: var(--glass-2); border: 1px solid var(--stroke); font-size: .82rem; }
.pb-quota b { color: var(--accent); margin-left: 3px; }
.pb-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.pb-tab { padding: 7px 16px; border-radius: 99px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); font-size: .86rem; }
.pb-tab.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.pb-frames { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pb-frame { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px; border-radius: 18px; border: 1px solid var(--stroke); background: var(--glass); color: var(--text); transition: transform .15s, border-color .15s; }
.pb-frame:hover:not(:disabled) { transform: translateY(-3px); border-color: var(--accent); }
.pb-frame:disabled { opacity: .45; }
.pb-frame-img { width: 100%; aspect-ratio: 3 / 4; display: grid; place-items: center; border-radius: 12px; overflow: hidden;
  background: repeating-conic-gradient(#8883 0% 25%, transparent 0% 50%) 0 0 / 14px 14px; }
.pb-frame-img img { width: 100%; height: 100%; object-fit: contain; }
.pb-frame b { font-size: .88rem; } .pb-frame small { color: var(--muted); font-size: .75rem; }
.pb-cam { background: #0b0b0c; color: #eee; border-radius: 26px; padding: 12px; }
.pb-cam-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pb-cam-top b { font: 700 .9rem "Courier New", monospace; letter-spacing: .12em; }
.pb-view { position: relative; margin: 0 auto; width: 100%; border-radius: 20px; overflow: hidden; background: #000; border: 2px solid var(--accent); }
.pb-view video, .pb-view canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.pb-view video.mirror { transform: scaleX(-1); }
.pb-count { position: absolute; inset: 0; display: grid; place-items: center; font: 700 7rem var(--serif); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.6); pointer-events: none; }
.pb-count.pop { animation: pbPop 1s ease-out; }
@keyframes pbPop { from { transform: scale(1.6); opacity: 0; } 25% { transform: scale(1); opacity: 1; } to { opacity: .2; } }
.pb-thumbs { display: flex; justify-content: center; gap: 8px; margin: 12px 0 8px; }
.pb-th { width: 46px; height: 46px; border-radius: 12px; background: #1c1c1e center / cover; display: grid; place-items: center; font-size: .8rem; color: #888; border: 2px solid transparent; }
.pb-th.on { border-color: var(--accent); }
.pb-actions { display: flex; justify-content: center; align-items: center; min-height: 92px; }
.pb-actions .cam-shot span { background: var(--accent); box-shadow: 0 0 22px rgba(var(--accent-rgb), .45); }
.pb-preview { display: grid; place-items: center; border-radius: 16px; overflow: hidden; background: repeating-conic-gradient(#8882 0% 25%, transparent 0% 50%) 0 0 / 16px 16px; }
.pb-preview canvas, .pb-preview img { max-width: 100%; max-height: 62vh; display: block; }
/* Admin: album & antrean photobooth */
.pb-album { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.pb-album img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; border-radius: 10px; background: var(--glass-2); display: block; }
.pb-copies { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); }
.pb-copies span { margin-right: auto; font-size: .9rem; }
.pb-copies b { font-size: 1.4rem; min-width: 28px; text-align: center; color: var(--accent); }
.pb-copies small { color: var(--muted); margin-left: -6px; }
.op-copies { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .85rem; }
