/* Sewa Database MySQL — halaman publik */
:root { --c: #0f4c81; --c2: #0a365c; --c-soft: #e6eff8; --gold: #f2b705; --gold2: #ffd65c; --ink: #17241d; --muted: #5b6b62; --line: #e1e7e3; --bg: #f6f8f6; --err: #b42318; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); }
a { color: var(--c); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
img { max-width: 100%; }
.wrap { width: min(1040px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 32px); margin: 28px auto; }
.center { text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 12px; flex-wrap: wrap; padding: 8px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-t b { color: var(--c2); overflow-wrap: anywhere; }
.brand-t small { color: var(--muted); font-weight: 600; font-size: .78rem; }
.logo { width: 40px; height: 40px; border-radius: 11px; background: var(--c); display: grid; place-items: center; flex: none; }
.logo svg { width: 25px; height: 25px; fill: var(--gold2); }
.brand-logo { width: 42px; height: 42px; object-fit: contain; flex: none; }
.top nav { display: flex; gap: 6px 14px; align-items: center; flex-wrap: wrap; }
.top nav a { font-weight: 600; text-decoration: none; }
.top nav a[aria-current] { text-decoration: underline; text-underline-offset: 5px; }
.pratinjau { background: #fff4d6; color: #6b4500; text-align: center; padding: 8px 16px; font-weight: 600; font-size: .9rem; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 0; background: var(--c); color: #fff !important; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--c2); }
.btn-sm { min-height: 38px; padding: 0 16px; }
.btn-gold { background: linear-gradient(135deg, var(--gold), var(--gold2)); color: #2a1e05 !important; }
.btn-gold:hover { background: linear-gradient(135deg, var(--gold), var(--gold2)); filter: brightness(1.04); }
.btn-line { background: #fff; color: var(--c) !important; box-shadow: inset 0 0 0 2px var(--c); }
.btn-line:hover { background: var(--c-soft); }
.btn-ghost { background: transparent; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .65); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-wa { background: #1fa855; }
.btn-wa:hover { background: #178a45; }
.btn-block { width: 100%; margin-top: 16px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.center .cta { justify-content: center; }

.hero { color: #fff; padding: clamp(40px, 8vw, 84px) 0; background:
    radial-gradient(circle at 88% 12%, rgba(255, 214, 92, .22) 0, transparent 36%),
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(155deg, #1a64a8, var(--c) 45%, var(--c2)); }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
.hero h1 span { color: var(--gold2); }
.lead { font-size: 1.12rem; opacity: .93; max-width: 720px; }
.hero-in { max-width: 820px; }
.lencana { display: inline-block; background: var(--gold2); color: #2a1e05; font-weight: 800; font-size: .8rem; letter-spacing: .4px; text-transform: uppercase; border-radius: 999px; padding: 5px 14px; margin-bottom: 14px; }
.lencana.tutup { background: #fde8e8; color: #8a1c1c; }
.lencana.segera { background: #e5efff; color: #1d4ed8; }

.sekolah-hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; }
.sekolah-hero .logo-besar { width: 108px; height: 108px; border-radius: 22px; background: #fff; display: grid; place-items: center; padding: 10px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.sekolah-hero .logo-besar img { width: 100%; height: 100%; object-fit: contain; }
.sekolah-hero .logo-besar svg { width: 64px; height: 64px; fill: var(--c); }
@media (max-width: 560px) { .sekolah-hero { grid-template-columns: 1fr; } .sekolah-hero .logo-besar { width: 84px; height: 84px; } }

.ringkas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: -30px 0 8px; position: relative; }
.ringkas div { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; box-shadow: 0 8px 22px rgba(0, 0, 0, .06); border-top: 4px solid var(--gold); }
.ringkas b { display: block; font-size: 1.05rem; color: var(--c2); }
.ringkas span { color: var(--muted); font-size: .86rem; font-weight: 600; }

.bag { padding: 34px 0 6px; }
.bag > h2 { font-size: 1.6rem; color: var(--c2); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 24px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.card h2, .card h3 { color: var(--c2); }
.card > p:last-child { margin-bottom: 0; }
.fitur .card p { color: var(--muted); margin: 0; }
.daftar-cek { list-style: none; padding: 0; margin: 0; }
.daftar-cek li { position: relative; padding: 8px 0 8px 32px; border-bottom: 1px dashed var(--line); }
.daftar-cek li:last-child { border-bottom: 0; }
.daftar-cek li::before { content: ""; position: absolute; left: 0; top: 11px; width: 20px; height: 20px; border-radius: 50%; background: var(--c-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%230f4c81' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21.1 7.4 19.7 6z'/%3E%3C/svg%3E") center / 14px no-repeat; }
.daftar-cek .wajib { color: var(--err); font-weight: 700; font-size: .8rem; margin-left: 4px; }
.jadwal { list-style: none; padding: 0; margin: 0; }
.jadwal li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.jadwal li:last-child { border-bottom: 0; }
.jadwal span { color: var(--muted); }
.teks p { margin: 0 0 .8em; }
.langkah { list-style: none; padding: 0; counter-reset: l; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 18px 0 30px; }
.langkah li { counter-increment: l; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.langkah li::before { content: counter(l); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c); color: var(--gold2); font-weight: 800; margin-bottom: 10px; }
.langkah b { display: block; }
.langkah span { color: var(--muted); font-size: .92rem; }

/* formulir */
.form label { display: block; font-weight: 600; margin: 14px 0 6px; }
.form input:not([type=checkbox]):not([type=radio]):not([type=file]), .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #cdd6d0; border-radius: 12px; font: inherit; background: #fff; }
.form textarea { resize: vertical; min-height: 84px; }
.form input[type=file] { width: 100%; padding: 10px; border: 1px dashed #b6c4bb; border-radius: 12px; background: #fafcfb; font: inherit; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--c-soft); border-color: var(--c); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form .seksi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 16px; }
.form .seksi > h2 { font-size: 1.15rem; color: var(--c2); margin: 0 0 4px; }
.form .seksi > h2 + p { margin-top: 0; }
.baris { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .baris { grid-template-columns: 1fr; } }
.pilihan { display: flex; flex-wrap: wrap; gap: 8px; }
.pilihan label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; cursor: pointer; background: #fff; }
.pilihan label:has(input:checked) { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: var(--c-soft); }
.pilihan input { accent-color: var(--c); width: 18px; height: 18px; }
.cek-label { display: flex !important; gap: 10px; align-items: flex-start; }
.cek-label input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--c); flex: none; }
.hint { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.err { display: block; color: var(--err); font-size: .86rem; font-weight: 600; margin-top: 4px; }
[aria-invalid="true"] { border-color: var(--err) !important; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.berkas-item { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.berkas-item:last-child { border-bottom: 0; }
.berkas-item label { margin-top: 0; }
.berkas-item .wajib { color: var(--err); font-size: .8rem; }

.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0 0; font-weight: 600; }
.flash-ok { background: #dcf5e4; color: #11683a; }
.flash-err { background: #fdecea; color: #8a1c1c; }

/* hasil / status */
.status-box { text-align: center; }
.nomor-besar { font-size: clamp(2rem, 8vw, 2.8rem); font-weight: 800; letter-spacing: .04em; color: var(--c2); margin: 4px 0; font-variant-numeric: tabular-nums; }
.pin-box { display: inline-block; background: #fff8e0; border: 2px dashed var(--gold); border-radius: 14px; padding: 10px 22px; margin: 8px 0 4px; }
.pin-box b { font-size: 1.8rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }
.tanda { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .9rem; background: #eef2f0; color: var(--muted); }
.tanda-valid, .tanda-diterima { background: #dcf5e4; color: #11683a; }
.tanda-perbaikan, .tanda-cadangan { background: #fff4d6; color: #8a5a00; }
.tanda-tidak { background: #fde8e8; color: #9b1c1c; }
.tanda-menunggu, .tanda-proses { background: #e5efff; color: #1d4ed8; }
.dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 8px 16px; margin: 0; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.catatan { background: #fff8e0; border-left: 4px solid var(--gold); padding: 10px 14px; border-radius: 8px; margin: 10px 0 0; }
.tabel-wrap { overflow-x: auto; }
.tabel { width: 100%; border-collapse: collapse; background: #fff; }
.tabel th, .tabel td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tabel th { background: var(--c-soft); color: var(--c2); font-size: .88rem; }
.cari-baris { display: flex; gap: 8px; margin: 10px 0 14px; }
.cari-baris input { flex: 1; min-height: 44px; padding: 8px 12px; border: 1px solid #cdd6d0; border-radius: 10px; font: inherit; }

.foot { color: var(--muted); font-size: .9rem; padding: 30px 0 40px; text-align: center; }
.foot p { margin: 6px 0; }
.donasi { max-width: 560px; margin: 0 auto 14px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px; }
.donasi summary { cursor: pointer; font-weight: 700; color: var(--c2); }
.rek { list-style: none; padding: 0; margin: 8px 0; }
.rek li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.rek li span { width: 70px; color: var(--muted); }
.rek li b { flex: 1; font-variant-numeric: tabular-nums; }
.rek-salin { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 4px 10px; cursor: pointer; font: inherit; font-size: .85rem; }
@media print { .top, .foot, .no-print { display: none !important; } body { background: #fff; } }
.promo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; justify-content: center; align-items: end; margin-top: 18px; }
.promo-item { margin: 0; padding: 12px; }
.promo-item img { width: 100%; height: auto; border-radius: 10px; display: block; }
.promo-item figcaption { display: grid; font-size: .85rem; color: var(--muted); margin: 8px 0 0; }
.promo-item figcaption b { color: var(--ink); }
.caption-box { max-width: 560px; margin: 16px auto 0; }
.caption-box summary { cursor: pointer; font-weight: 700; color: var(--c2); }
.caption-text { white-space: pre-wrap; font-size: .92rem; }
.db-input { display: flex; border: 1px solid #cdd6d0; border-radius: 12px; overflow: hidden; background: #fff; }
.db-input span { background: #eef3f8; color: var(--c2); font-weight: 700; padding: 0 12px; display: flex; align-items: center; font-family: ui-monospace, monospace; }
.db-input input { border: 0 !important; border-radius: 0 !important; min-width: 0; flex: 1; font-family: ui-monospace, monospace; }
.harga { margin: 18px 0; }
.harga .angka { font-size: 2.4rem; font-weight: 800; color: var(--c2); margin: 10px 0 0; }
.harga .angka small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.tanda { display: inline-block; font-weight: 700; padding: 4px 12px; border-radius: 999px; font-size: .85rem; background: var(--c-soft); color: var(--c2); }
