:root{
  --purple:#5d2b86;
  --purple-dark:#452064;
  --yellow:#f3c623;
  --ink:#242126;
  --muted:#746f78;
  --white:#fff;
  --surface:rgba(255,255,255,.82);
  --line:#ebe7ee;
  --shadow:0 14px 40px rgba(56,38,68,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  font-family:Inter,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:#f8f8fa;
}
a{color:var(--purple);text-decoration:none}
a:hover{text-decoration:underline}
.wrap{width:min(1080px,100%);margin:0 auto;padding:18px 20px 56px}
.brand{display:flex;align-items:center;gap:12px;padding:6px 0 18px;margin:0}
.brand-logo{width:52px;height:52px;max-width:52px;flex:0 0 52px;object-fit:contain;display:block}
.brand h1{margin:0;color:var(--purple-dark);font:700 clamp(19px,2.1vw,25px) Georgia,"Times New Roman",serif;line-height:1.15}
.brand small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:600}
.hero,.glass{
  background:var(--surface);
  border:1px solid rgba(255,255,255,.92);
  box-shadow:var(--shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-radius:18px;
}
.hero{padding:28px;margin-bottom:16px;position:relative;overflow:hidden}
.eyebrow{letter-spacing:.12em;text-transform:uppercase;color:var(--purple);font-size:10px;font-weight:800}
.hero h2{font:700 clamp(29px,4.8vw,47px) Georgia,"Times New Roman",serif;color:var(--purple-dark);margin:8px 0 10px;line-height:1.06}
.hero p{max-width:720px;color:#5d5861;line-height:1.65;margin:0}
.glass{padding:24px;margin:16px 0}
.glass h3{font:700 clamp(20px,2.8vw,25px) Georgia,"Times New Roman",serif;color:var(--purple-dark);margin:0 0 16px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.rules{counter-reset:r}
.rule{display:grid;grid-template-columns:34px minmax(0,1fr);gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}
.rule:last-child{border-bottom:0}
.rule:before{counter-increment:r;content:counter(r);width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#fbf4cc;color:var(--purple-dark);font-size:12px;font-weight:800}
.rule b{display:block;color:#332d37;margin-bottom:4px;font-size:14px}
.rule span{color:#69636d;line-height:1.55;font-size:13px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field.full{grid-column:1/-1}
label{font-weight:700;color:#433d48;font-size:13px}
input,textarea,select{
  width:100%;min-width:0;padding:12px 13px;border-radius:10px;
  border:1px solid #ded9e2;background:rgba(255,255,255,.92);color:var(--ink);outline:none;
  transition:border-color .18s,box-shadow .18s,background .18s;
}
input::placeholder,textarea::placeholder{color:#aaa4ad}
input:focus,textarea:focus,select:focus{border-color:#9d7bb8;box-shadow:0 0 0 3px rgba(93,43,134,.08);background:#fff}
input[type=file]{padding:9px;background:#fff}
textarea{min-height:104px;resize:vertical}
.hint{font-size:11px;color:var(--muted);line-height:1.45}
.consent{display:flex;gap:9px;align-items:flex-start;padding:13px;border-radius:10px;background:#fffdf3;border:1px solid #eee4ad}
.consent input{width:auto;margin-top:3px;accent-color:var(--purple)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:11px 17px;background:var(--purple);color:#fff;font-weight:800;cursor:pointer;box-shadow:none;transition:background .18s,transform .18s}
.btn:hover{background:var(--purple-dark);transform:translateY(-1px);text-decoration:none}
.btn.secondary{background:#fff;color:var(--purple-dark);border:1px solid #ddd5e4}
.btn.secondary:hover{background:#faf8fb}
.btn.danger{background:#b7475a;color:#fff}
.actions{display:flex;gap:8px;flex-wrap:wrap}
.notice{padding:12px 14px;border-radius:10px;background:#f1faf5;border:1px solid #cae9d7;color:#27603e;margin:12px 0}
.error{background:#fff4f5;border-color:#f0cbd2;color:#8b3345}
.topbar{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.topbar h1{color:var(--purple-dark)!important;font-size:clamp(25px,3.5vw,35px)!important}
.muted{color:var(--muted)}
.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border-radius:12px;border:1px solid var(--line);padding:0}
table{width:100%;border-collapse:collapse;font-size:12px;min-width:940px;background:#fff}
th,td{padding:11px 10px;border-bottom:1px solid #eeeaf1;text-align:left;vertical-align:top}
th{color:#493a55;background:#faf9fb;white-space:nowrap}
td{color:#56505a}
.pill{display:inline-block;padding:4px 8px;border-radius:999px;background:#f1ebf5;color:var(--purple-dark);font-weight:700}
.uploadbox{border:1px dashed #cfc5d6;padding:24px;border-radius:12px;text-align:center;background:#fcfbfd}
.captcha-box{display:grid;grid-template-columns:minmax(0,1fr) 145px;gap:16px;align-items:center;padding:14px;border-radius:10px;background:#fbfafc;border:1px solid #e3dde8}
.captcha-box strong{display:block;font:700 22px Georgia,serif;color:var(--purple-dark);margin:2px 0}
.captcha-box small{display:block;color:var(--muted)}
.captcha-label{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--purple);font-weight:800}
.captcha-box input{text-align:center;font-size:17px;font-weight:800;background:#fff}
.setting-toggle{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px;border-radius:12px;background:#faf9fb;border:1px solid #e8e2ec}
.setting-toggle b{display:block;font-size:16px;color:var(--purple-dark)}
.setting-toggle small{display:block;color:var(--muted);margin-top:4px;font-weight:400}
.switch{position:relative;display:inline-block;width:54px;height:30px;flex:0 0 auto}.switch input{position:absolute;opacity:0;width:1px;height:1px}.switch i{position:absolute;inset:0;border-radius:999px;background:#dcd7df;transition:.2s}.switch i:before{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 5px rgba(0,0,0,.15)}.switch input:checked+i{background:var(--purple)}.switch input:checked+i:before{transform:translateX(24px)}
.status-card{display:flex;flex-direction:column;gap:3px;margin-top:12px;padding:12px 14px;border-radius:10px}.status-card.open{background:#f2faf5;border:1px solid #cde7d6;color:#28603f}.status-card.closed{background:#fff4f5;border:1px solid #efcfd5;color:#873447}.status-card span{font-size:12px;opacity:.82}
.closed-panel{display:grid;grid-template-columns:54px minmax(0,1fr);gap:16px;align-items:start;padding:20px;border-radius:12px;background:#fbfafc;border:1px solid #e7e1eb}.closed-panel .closed-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:12px;font-size:21px;background:#fff7cf}.closed-panel h3{margin:4px 0 7px}.closed-panel p{margin:0;color:#68616d;line-height:1.6}

/* Minimal photo banner: photography remains the visual focus, decoration does not. */
.photo-hero{
  min-height:330px;display:flex;flex-direction:column;justify-content:flex-end;padding:30px;
  background:
    linear-gradient(90deg,rgba(34,23,42,.72),rgba(34,23,42,.20)),
    url('https://rudragarjana.com/images/gallery/gh8.webp') center 36%/cover no-repeat;
  border:0;
  box-shadow:0 14px 34px rgba(35,28,39,.10)
}
.photo-hero h2{color:#fff;max-width:760px;text-shadow:none}
.photo-hero p{color:rgba(255,255,255,.92);max-width:680px;text-shadow:none}
.photo-hero .eyebrow{color:#ffe27b}
.photo-hero:before,.photo-hero:after{display:none}

.admin-logo{display:block;width:64px;height:64px;max-width:64px;object-fit:contain;margin:0 auto 10px}

@media(max-width:760px){
  .wrap{padding:14px 14px 42px}
  .brand{gap:10px;padding:4px 0 14px}
  .brand-logo{width:44px;height:44px;max-width:44px;flex-basis:44px}
  .brand h1{font-size:19px}
  .brand small{font-size:11px}
  .hero,.glass{border-radius:15px}
  .hero{padding:22px}
  .glass{padding:18px}
  .grid{grid-template-columns:1fr;gap:14px}
  .field.full{grid-column:auto}
  .photo-hero{min-height:300px;padding:22px;background-position:center center}
  .photo-hero h2{font-size:clamp(30px,10vw,40px)}
  .captcha-box{grid-template-columns:1fr}
  .captcha-box input{text-align:left}
  .setting-toggle{align-items:flex-start}
  .closed-panel{grid-template-columns:1fr}
  .actions{gap:7px}
  .actions .btn{width:auto}
  .uploadbox{padding:18px 12px}
  input,textarea,select{font-size:16px}
}
@media(max-width:480px){
  .wrap{padding-left:12px;padding-right:12px}
  .brand-logo{width:38px;height:38px;max-width:38px;flex-basis:38px}
  .brand h1{font-size:17px}
  .brand small{font-size:10px}
  .hero{padding:18px}
  .glass{padding:16px}
  .photo-hero{min-height:260px;padding:18px}
  .rule{grid-template-columns:30px minmax(0,1fr)}
  .rule:before{width:26px;height:26px}
  .btn{width:100%}
  .actions .btn{width:auto;flex:1 1 auto}
  .admin-logo{width:54px;height:54px;max-width:54px}
}

.success-toast{position:fixed;top:18px;right:18px;z-index:9999;display:grid;grid-template-columns:40px minmax(0,1fr) 32px;gap:12px;align-items:center;width:min(440px,calc(100vw - 28px));padding:14px 14px 14px 12px;background:rgba(255,255,255,.96);border:1px solid #cfe7d8;border-radius:14px;box-shadow:0 16px 40px rgba(40,30,50,.16);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);transition:opacity .3s ease,transform .3s ease}.success-toast.hide{opacity:0;transform:translateY(-10px)}.success-icon{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e9f7ee;color:#257044;font-size:21px;font-weight:900}.success-toast strong{display:block;color:#245c3b;font-size:14px;margin-bottom:2px}.success-toast span{display:block;color:#5d665f;font-size:12px;line-height:1.45}.toast-close{border:0;background:transparent;color:#807887;font-size:24px;line-height:1;cursor:pointer;padding:2px}.toast-close:hover{color:#392a44}@media(max-width:600px){.success-toast{top:10px;right:10px;left:10px;width:auto}}


/* Dedicated successful-submission screen */
.submitted-wrap{min-height:100vh;display:flex;flex-direction:column;justify-content:center;padding-top:34px;padding-bottom:34px}
.submitted-brand{justify-content:center;text-align:left;margin-bottom:18px}
.submitted-card{width:min(720px,100%);margin:0 auto;text-align:center;padding:clamp(28px,5vw,48px)}
.submitted-check{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;background:#f1faf5;border:1px solid #cae9d7;color:#247044;font-size:32px;font-weight:900}
.submitted-card h2{font:700 clamp(27px,4vw,38px) Georgia,"Times New Roman",serif;color:var(--purple-dark);line-height:1.16;margin:8px auto 14px;max-width:600px}
.submitted-card>p{color:#68616d;line-height:1.7;max-width:610px;margin:8px auto}
.application-number{margin:24px auto 16px;padding:18px;border-radius:12px;background:#faf9fb;border:1px solid #e6dfeb;max-width:460px}
.application-number span,.application-number small{display:block;color:var(--muted);font-size:12px}
.application-number strong{display:block;color:var(--purple-dark);font-size:clamp(20px,4vw,28px);letter-spacing:.05em;margin:5px 0}
.submitted-note{display:flex;flex-direction:column;gap:5px;text-align:left;margin:18px auto 24px;padding:14px 16px;border-radius:11px;background:#fffdf3;border:1px solid #eee4ad;max-width:560px;color:#625b45}
.submitted-note strong{color:#493f21}
.submitted-note span{font-size:12px;line-height:1.55}
.submitted-home{margin-top:2px}
@media(max-width:600px){.submitted-wrap{justify-content:flex-start;padding-top:18px}.submitted-brand{justify-content:flex-start}.submitted-card{padding:26px 18px}.submitted-check{width:56px;height:56px;font-size:28px}.submitted-home{width:100%}}
