[hidden] { display: none !important; }
:root {
  --ink: #17202e;
  --ink-2: #4b5565;
  --ink-3: #6b7482;
  --line: #d9dde4;
  --line-2: #e9ecf1;
  --bg: #f3f5f8;
  --card: #ffffff;
  --brand: #16325c;
  --brand-2: #1f4a86;
  --focus: #2563eb;
  --err: #b42318;
  --err-bg: #fef3f2;
  --warn-bg: #fff8e6;
  --warn-line: #f0d9a0;
  --ok: #067647;
  --ok-bg: #ecfdf3;
  --radius: 10px;
  --font: "Noto Sans Devanagari", "Nirmala UI", "Mangal", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}

.masthead {
  background: var(--brand);
  color: #fff;
  padding: 22px 16px 26px;
}
.masthead-inner { max-width: 860px; margin: 0 auto; }
.org { margin: 0 0 4px; font-size: 14px; letter-spacing: .02em; opacity: .85; }
.masthead h1 { margin: 0 0 8px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.deadline {
  display: inline-block; margin: 0; padding: 4px 10px;
  background: rgba(255,255,255,.12); border-radius: 999px; font-size: 14px;
}

.page { max-width: 860px; margin: -12px auto 0; padding: 0 12px 32px; }
.card {
  background: var(--card);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 18px 16px 22px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.req-note { margin: 0 0 8px; color: var(--ink-3); font-size: 14px; }

fieldset { border: 0; padding: 0; margin: 0; }
fieldset + fieldset { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
legend {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin: 0 0 14px; font-size: 18px; font-weight: 700; color: var(--brand);
}
.step {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--brand); color: #fff; font-size: 14px;
}
.section-help { margin: -6px 0 12px; }
legend + * { clear: both; }

.grid { display: grid; grid-template-columns: 1fr; gap: 14px 18px; }
@media (min-width: 720px) {
  .card { padding: 26px 28px 28px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .span-2 { grid-column: 1 / -1; }
  .masthead h1 { font-size: 28px; }
}

.field { min-width: 0; }
label, .label { display: block; font-weight: 600; font-size: 15px; margin: 0 0 6px; }
.opt { font-weight: 400; color: var(--ink-3); }

input[type=text], input[type=tel], input[type=email], select, textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  appearance: none;
}
textarea { min-height: 96px; resize: vertical; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, .dropzone:focus-within, .check input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent);
  outline-offset: 1px; border-color: var(--focus);
}
input[readonly] { background: var(--bg); color: var(--ink-2); }
input:disabled { background: var(--bg); }

.prefixed { display: flex; align-items: stretch; }
.prefixed span {
  display: grid; place-items: center; padding: 0 12px;
  background: var(--bg); border: 1px solid var(--line); border-right: 0;
  border-radius: 8px 0 0 8px; color: var(--ink-2); font-size: 15px;
}
.prefixed input { border-radius: 0 8px 8px 0; }

.help { margin: 6px 0 0; font-size: 13px; color: var(--ink-3); }
.error { margin: 6px 0 0; font-size: 14px; color: var(--err); font-weight: 600; }
.error:empty { display: none; }
.has-error input, .has-error select, .has-error textarea, .has-error .dropzone, .has-error .prefixed span { border-color: var(--err); }

.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.consent span { font-size: 15px; line-height: 1.6; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 20px 14px; border: 2px dashed var(--line); border-radius: 10px;
  background: #fafbfc; text-align: center; cursor: pointer; font-weight: 400;
}
.dropzone:hover { border-color: var(--brand-2); }
.dz-title { font-weight: 700; color: var(--brand-2); }
.dz-sub { font-size: 13px; color: var(--ink-3); }
.file-chip {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc;
}
.file-meta { min-width: 0; display: flex; flex-direction: column; }
.file-name { font-weight: 600; overflow-wrap: anywhere; }
.file-size { font-size: 13px; color: var(--ink-3); }
.btn-link {
  margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: #fff; color: var(--brand-2); font-weight: 600; cursor: pointer; white-space: nowrap;
}

.notice { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--warn-bg); border: 1px solid var(--warn-line); font-size: 15px; }
.ineligible { background: var(--err-bg); border-color: #f5c2bd; color: var(--err); font-weight: 600; }
.form-alert { margin: 0 0 14px; padding: 12px 14px; border-radius: 8px; background: var(--err-bg); border: 1px solid #f5c2bd; color: var(--err); font-weight: 600; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.actions { margin-top: 26px; }
.btn-primary {
  width: 100%; min-height: 52px; padding: 12px 20px;
  font: inherit; font-size: 17px; font-weight: 700; color: #fff;
  background: var(--brand); border: 0; border-radius: 10px; cursor: pointer;
}
.btn-primary:hover { background: var(--brand-2); }
.btn-primary:disabled { background: #8a9ab3; cursor: not-allowed; }
@media (min-width: 720px) { .btn-primary { width: auto; min-width: 240px; } }
.progress { margin-top: 12px; }
.bar { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.bar span { display: block; height: 100%; width: 0; background: var(--brand-2); transition: width .2s; }
#progress_text { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }

.success { text-align: left; }
.success:focus { outline: none; }
.tick {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: var(--ok-bg); color: var(--ok); font-size: 28px; font-weight: 700; margin-bottom: 8px;
}
.success h2 { margin: 0 0 4px; font-size: 22px; color: var(--ok); }
.lead { margin: 0 0 14px; font-size: 17px; }
.receipt { margin: 0 0 14px; padding: 14px; background: var(--bg); border-radius: 8px; display: grid; gap: 8px; }
.receipt div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.receipt dt { color: var(--ink-2); }
.receipt dd { margin: 0; font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.email-status.ok { background: var(--ok-bg); border-color: #abefc6; color: var(--ok); }

.closed-notice { display: none; margin-top: 24px; background: var(--err-bg); border-color: #f5c2bd; color: var(--err); font-weight: 600; }
body.is-closed .closed-notice { display: block; }
body.is-closed #app-form { display: none; }

.foot { text-align: center; font-size: 13px; color: var(--ink-3); padding: 0 16px 28px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
