/* ===== SELF-HOSTED FONT =============================================
   Noto Sans Devanagari (variable, SIL Open Font License 1.1)
   Served from /fonts - no third-party request, works fully offline.
   ================================================================== */
@font-face{
  font-family:'Noto Sans Devanagari';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('/fonts/noto-sans-devanagari-devanagari.woff2') format('woff2');
  unicode-range:U+0900-097F, U+1CD0-1CF4, U+1CF7-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF, U+11B00-11B0A;
}
@font-face{
  font-family:'Noto Sans Devanagari';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('/fonts/noto-sans-devanagari-latin.woff2') format('woff2');
  unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face{
  font-family:'Noto Sans Devanagari';
  font-style:normal;
  font-weight:400 700;
  font-display:swap;
  src:url('/fonts/noto-sans-devanagari-latin-ext.woff2') format('woff2');
  unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root{--g:#176b3a;--gd:#104d2a;--p:#eaf6ed;--bg:#f2f8f3;--ink:#1e2d24;--muted:#64756a;--line:#dce8de}
*{box-sizing:border-box}
body{margin:0;padding:22px 12px;background:linear-gradient(180deg,#f3faf4,#eaf4ec);
  font-family:'Noto Sans Devanagari',Mangal,sans-serif;color:var(--ink);letter-spacing:0.2px}
body.modal-open{overflow:hidden}
/* Form controls do not inherit font-family by default (they fall back to the
   browser's Arial). Force every control to the one app font. */
button,input,select,textarea,option{font-family:inherit}
.wrap{max-width:760px;margin:auto}

/* HERO */
.hero{background:linear-gradient(135deg,var(--gd),var(--g));color:white;text-align:left;padding:12px 18px;border-radius:18px 18px 0 0}
.hero-body{display:flex;align-items:center;gap:14px;max-width:100%}
.hero-body .logo-sm{width:48px;height:48px;margin:0;flex-shrink:0}
.hero-titles{display:flex;flex-direction:column;gap:2px}
.hero h6{margin:0;font-size:11.5px;letter-spacing:1px;font-weight:600;opacity:0.92;text-align:left}
.hero h1{font-size:clamp(15px,2.2vw,19px);line-height:1.28;margin:0;font-weight:600;text-shadow:0 1px 4px rgba(0,0,0,0.15);text-align:left}
.hero-sub-wrap{margin-top:3px}
.hero-sub{font-size:11.5px !important;font-weight:600 !important;letter-spacing:0.3px;color:#ffffff !important;background:rgba(255,255,255,0.18);display:inline-block;padding:2px 10px;border-radius:12px}
.logo{width:100px;height:100px;margin:0 auto 15px}
.logo img{width:100%;height:100%;object-fit:contain;display:block}
.logo-sm{width:80px;height:80px;margin-bottom:12px}

/* FORM */
form{background:white;padding:clamp(18px,4vw,34px);border-radius:0 0 20px 20px;box-shadow:0 16px 40px #174d2a12}
.section{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #edf2ee}
.heading{display:flex;gap:10px;align-items:center;margin-bottom:18px}
.ico{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--p);font-size:19px}
.heading h2{font-size:17.5px;color:var(--gd);margin:0;font-weight:600}
.heading p{font-size:12.5px;color:var(--muted);margin:4px 0 0}
.grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:8px}
.full{grid-column:1/-1}
label{font-size:13px;font-weight:700;color:#344c3b}
input[type=text],input[type=tel],select,textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:13px 14px;font:inherit;font-size:14px;outline:none;background:#fcfefc}
select{cursor:pointer;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2368796e' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:calc(100% - 14px) center}
select:disabled{background-color:#f1f5f2;cursor:not-allowed;color:#99a}
input:focus,select:focus,textarea:focus{border-color:#58a873;box-shadow:0 0 0 3px #37914f1c}
textarea{min-height:95px;resize:vertical}
.field-hint{font-size:12px;color:#0b7a3e;margin-top:-2px}

/* OPTIONS */
.options{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:start}
.option-card{display:flex;flex-direction:column;gap:6px}
.option{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;border:1px solid var(--line);border-radius:12px;padding:13px;cursor:pointer;min-height:54px;transition:all .15s ease}
.option:has(input:checked){background:var(--p);border-color:#58a873}
input[type=checkbox],input[type=radio]{accent-color:var(--g);width:18px;height:18px;flex-shrink:0}
.copy{display:flex;flex-direction:column;gap:3px}
.copy strong{font-size:14px}
.copy small{font-size:11px;color:var(--muted)}

/* DEPARTMENT LOGOS */
.dept-logo{width:48px;height:48px;object-fit:contain;flex-shrink:0;background:#fff;
  border:1px solid var(--line);border-radius:10px;padding:3px}
/* Flex (not grid) so the checkbox centres on the whole 2-line label block,
   exactly like the radio buttons in the participation section. */
.option-card .option{display:flex;flex-wrap:wrap;align-items:center;column-gap:11px;row-gap:2px}
.option-card .option>input{flex:0 0 auto;align-self:center;margin:0}
.option-card .dept-logo{flex:0 0 auto;align-self:center}
.option-card .copy{flex:1 1 120px;min-width:0}
.option-card .readmore{flex:0 0 100%;padding:0 0 0 88px;text-align:left}

/* READ MORE LINK */
.readmore{white-space:nowrap;justify-self:end;background:none;border:0;padding:2px 6px;color:var(--g);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;text-decoration:underline}
.readmore:hover{color:var(--gd)}

/* SUBMIT */
.submit{width:100%;padding:15px;border:0;border-radius:12px;background:linear-gradient(135deg,var(--g),#27864b);color:white;font-size:16px;font-weight:700;cursor:pointer;box-shadow:0 6px 16px rgba(23,107,58,0.25);transition:transform .1s ease}
.submit:active{transform:scale(0.99)}
.submit[disabled]{opacity:.6;cursor:not-allowed}
.privacy,.footer{text-align:center;color:var(--muted);font-size:11px;line-height:1.6}
.privacy{margin:13px 0 0}
.footer{padding:17px}
.msg{display:none;padding:12px;border-radius:10px;margin-bottom:16px;font-size:13px;line-height:1.6}
.msg.error{display:block;background:#fff0ef;color:#a52218}
.msg.success{display:block;background:var(--p);color:var(--gd)}

/* POPUP */
.modal-overlay{position:fixed;inset:0;background:rgba(10,30,18,.65);backdrop-filter:blur(3px);display:none;align-items:center;justify-content:center;padding:16px;z-index:1000}
.modal-overlay.open{display:flex}
.modal{background:white;width:100%;max-width:520px;max-height:88vh;overflow-y:auto;border-radius:18px;box-shadow:0 24px 64px rgba(0,0,0,.35);animation:pop .25s ease}
@keyframes pop{from{transform:translateY(16px) scale(.95);opacity:0}to{transform:none;opacity:1}}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:20px 22px 14px;background:linear-gradient(135deg,var(--gd),var(--g));color:white;border-radius:18px 18px 0 0}
.modal-head>div{flex:1;min-width:0}
.dept-modal-logo{width:56px;height:56px;object-fit:contain;flex-shrink:0;background:#fff;
  border-radius:50%;padding:6px}
.modal-head h3{margin:0;font-size:19px}
.modal-head p{margin:4px 0 0;font-size:12.5px;color:#d9eede}
.modal-close{background:rgba(255,255,255,.18);border:0;color:white;width:32px;height:32px;border-radius:50%;font-size:20px;line-height:1;cursor:pointer;flex-shrink:0}
.modal-body{padding:20px 22px;font-size:14px;line-height:1.75}
.modal-body h4{margin:16px 0 8px;color:var(--gd);font-size:14.5px}
.modal-body ul{margin:0;padding-left:20px}
.modal-body li{margin-bottom:6px}
.modal-foot{display:flex;gap:10px;padding:16px 22px 20px}
.modal-foot button{flex:1;padding:12px 16px;border-radius:10px;font:inherit;font-size:14px;font-weight:700;cursor:pointer}
.justify-center{justify-content:center}
.justify-between{justify-content:space-between}
.btn-select{background:var(--g);color:white;border:0}
.btn-close{background:white;color:var(--muted);border:1px solid #c8d6cb}

/* SUCCESS POP-UP STYLES */
.success-dialog{text-align:center;padding:26px 24px 20px}
.success-top-title{margin:0 0 14px;font-size:15px;color:var(--gd);font-weight:600;letter-spacing:1px}
.success-icon-wrap{width:68px;height:68px;background:#e3f7ea;border-radius:50%;display:grid;place-items:center;margin:0 auto 16px}
.success-checkmark{font-size:36px;color:#176b3a;font-weight:900}
.success-dialog h3{font-size:20px;color:var(--gd);margin:0 0 8px;font-weight:700}
.success-sub{color:#284e36;font-size:14.5px;margin:0 0 16px;font-weight:500;line-height:1.5}
.reg-id-box{background:#f1f8f3;border:1px dashed #4ca66b;border-radius:10px;padding:12px;font-size:14.5px;color:var(--gd);margin-bottom:20px}
.btn-ok{min-width:140px;flex:none}

/* WA SECTION IN SUCCESS POPUP */
.wa-section{border-top:1px solid var(--line);padding-top:16px;margin-top:10px;text-align:left}
.wa-intro{font-size:13px;font-weight:700;color:#2c4b37;margin:0 0 10px}
.wa-buttons-list{display:flex;flex-direction:column;gap:8px}
.wa-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 14px;background:#f0faf2;border:1px solid #99d8ae;border-radius:10px;color:#0e5828;text-decoration:none;font-weight:700;font-size:13px;transition:background .15s}
.wa-btn:hover{background:#25d366;color:white;border-color:#25d366}
.wa-label{flex:1;min-width:0}
.wa-logo{width:28px;height:28px;object-fit:contain;flex-shrink:0;background:#fff;
  border:1px solid var(--line);border-radius:7px;padding:2px}

/* DUPLICATE DIALOG */
.duplicate-dialog{padding:28px 24px;text-align:center}
.dup-icon{font-size:42px;margin-bottom:12px}
.duplicate-dialog h3{margin:0 0 10px;color:#a83232;font-size:18px}
.duplicate-dialog p{font-size:14px;color:#444;line-height:1.6;margin:0 0 20px}

@media(max-width:560px){
  body{padding:8px}
  .hero{padding:10px 14px;border-radius:16px 16px 0 0}
  form{padding:20px 14px;border-radius:0 0 16px 16px}
  .grid,.options{grid-template-columns:1fr}
  .section{margin-bottom:21px;padding-bottom:21px}
}
