/* Library public page, admission form, rasid */
:root { --b: #4338ca; --b2: #6366f1; --ink: #0f172a; --mut: #64748b; --line: #e5e7f0; --bg: #f6f7fb; --ok: #059669; --bad: #dc2626; --wa: #16a34a; }
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--b); text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 560px; }
.center { text-align: center; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; box-shadow: 0 4px 18px rgba(15,23,42,.05); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 600; font-size: 15px; border: 1px solid transparent; cursor: pointer; font-family: inherit; transition: .15s; }
.btn.primary { background: linear-gradient(180deg, var(--b2), var(--b)); color: #fff; box-shadow: 0 8px 20px rgba(67,56,202,.3); }
.btn.wa { background: var(--wa); color: #fff; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
main .btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn.sm { padding: 8px 14px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.hero { background: radial-gradient(900px 500px at 10% 0%, #6366f1, #312e81 60%, #1e1b4b); color: #fff; padding: 46px 0 64px; text-align: center; border-radius: 0 0 32px 32px; }
.hero.small { padding: 28px 0 40px; }
.hero-in { display: flex; flex-direction: column; align-items: center; }
.logo { width: 76px; height: 76px; border-radius: 20px; object-fit: cover; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.logo.ph { display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--b); }
.logo.ph.sm { width: 48px; height: 48px; font-size: 22px; border-radius: 12px; box-shadow: none; background: #eef2ff; }
.hero h1 { font-size: clamp(24px, 5vw, 36px); margin: 14px 0 4px; line-height: 1.2; }
.hero .tag { opacity: .85; margin: 0; font-size: 15.5px; }
.hero .meta { opacity: .75; font-size: 13.5px; margin: 10px 0 0; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 22px; }
.sec { margin-top: 28px; }
.sec h2 { font-size: 20px; margin: 0 0 14px; }
.facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.fac { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 14px; }
.fac span { font-size: 24px; }
.shifts { display: grid; gap: 10px; }
.shift { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shift small { display: block; color: var(--mut); font-size: 13px; }
.shift .right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.fee { font-size: 20px; color: var(--b); } .fee small { display: inline; font-size: 12px; color: var(--mut); font-weight: 400; }
.pill { font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 99px; }
.pill.ok { background: #d1fae5; color: #047857; } .pill.no { background: #fee2e2; color: #b91c1c; }
.hint { color: var(--mut); font-size: 12.5px; margin: 8px 0 0; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 14px; }
.rules { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 14px 34px; margin: 0; }
.rules li { margin: 4px 0; }
.contact p { margin: 6px 0; }
.foot { text-align: center; color: var(--mut); font-size: 12.5px; padding: 30px 16px 90px; }
.float-wa { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; font-size: 26px; box-shadow: 0 10px 26px rgba(22,163,74,.45); z-index: 10; }
/* form */
.form { margin-top: -24px; display: grid; gap: 14px; }
.form label { display: block; font-weight: 500; font-size: 14px; }
.form input, .form select, .form textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #d9dcea; border-radius: 12px; padding: 11px 13px; font: inherit; font-weight: 400; background: #fff; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--b2); box-shadow: 0 0 0 3px #eef2ff; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.err { background: #fee2e2; color: #991b1b; padding: 10px 12px; border-radius: 10px; margin: 0; font-size: 14px; }
.big { font-size: 56px; }
/* receipt */
.receipt-wrap { padding: 24px 14px 40px; }
.receipt { position: relative; max-width: 620px; margin: 0 auto; background: #fff; border-radius: 16px; padding: 26px; border: 1px solid var(--line); box-shadow: 0 8px 30px rgba(15,23,42,.08); overflow: hidden; }
.receipt .stamp { position: absolute; right: 22px; top: 92px; transform: rotate(-14deg); border: 3px solid var(--bad); color: var(--bad); font-weight: 700; padding: 4px 14px; border-radius: 8px; font-size: 20px; opacity: .8; letter-spacing: .05em; }
.receipt .stamp.paid { border-color: var(--ok); color: var(--ok); opacity: .55; }
.receipt.void .items, .receipt.void .valid { opacity: .5; }
.rh { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; border-bottom: 2px solid #eef2ff; }
.rh img { width: 54px; height: 54px; border-radius: 12px; object-fit: cover; }
.rh h1 { font-size: 20px; margin: 0; } .rh p { margin: 2px 0 0; color: var(--mut); font-size: 12.5px; }
.rt { text-align: center; margin: 14px 0; } .rt span { background: #eef2ff; color: var(--b); padding: 5px 16px; border-radius: 99px; font-weight: 600; font-size: 13.5px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 20px; margin-bottom: 16px; }
.grid small { display: block; color: var(--mut); font-size: 11.5px; } .grid b { font-size: 14.5px; }
.items { width: 100%; border-collapse: collapse; font-size: 14px; }
.items th { text-align: left; background: #f8f9fd; padding: 9px 10px; font-size: 12px; color: var(--mut); }
.items td { padding: 9px 10px; border-bottom: 1px solid #f1f2f7; }
.items .r { text-align: right; white-space: nowrap; }
.items tfoot td { border: 0; padding: 6px 10px; }
.items .tot td { font-weight: 600; border-top: 1px dashed #cfd3e3; padding-top: 10px; }
.items .paid td { font-weight: 700; font-size: 16px; color: var(--ok); }
.items .bal td { color: var(--bad); font-weight: 600; }
.valid { background: #ecfdf5; color: #065f46; border-radius: 12px; padding: 10px 14px; margin-top: 14px; font-size: 14px; }
.note { font-size: 13px; color: var(--mut); } .note.err { color: var(--bad); background: none; padding: 0; }
.rf { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 22px; font-size: 12px; color: var(--mut); }
.rf p { margin: 0; max-width: 60%; }
.sign { text-align: center; border-top: 1px solid #cbd5e1; padding-top: 4px; min-width: 130px; } .sign span { display: block; color: var(--ink); font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.pw { text-align: center; color: #94a3b8; font-size: 10.5px; margin: 18px 0 0; }
.actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .receipt { padding: 18px; } .shift { flex-wrap: wrap; } }
@media print { body { background: #fff; } .noprint { display: none !important; } .receipt { box-shadow: none; border: 0; max-width: none; } .receipt-wrap { padding: 0; } }
