/* ============================================================
   not 9-5 : design tokens
   Change the colours here and the whole site follows.
   ============================================================ */
:root {
  --ink: #0C1A4B;
  --cobalt: #2D54F0;
  --cobalt-deep: #1F3FC2;
  --sun: #FFC933;
  --sun-soft: #FFD766;
  --tint: #EEF2FF;
  --paper: #F7F8FC;
  --line: #DCE3F6;
  --text: #2B3560;
  --muted: #5A6590;
  --display: "Unbounded", "Trebuchet MS", Arial, sans-serif;
  --body: "Figtree", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); margin: 0; letter-spacing: -0.02em; line-height: 1.12; }
h2 { font-size: clamp(26px, 3.8vw, 42px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
a { color: var(--cobalt); }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible { outline-color: var(--sun); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 660px; margin-bottom: 44px; }
.section-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px;
  font: 700 16px/1 var(--body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-sun { background: var(--sun); color: var(--ink); }
.btn-sun:hover { background: var(--sun-soft); }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-deep); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #16276A; }
.btn-line-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-line-light:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-line-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line-ink:hover { background: var(--ink); color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.04em; color: var(--ink); text-decoration: none; }
.logo-mark { background: var(--cobalt); color: var(--sun); padding: 4px 9px; border-radius: 9px; font-size: 16px; }
.logo-light { color: #fff; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--cobalt); }

/* ---------- Hero ---------- */
.hero { background: var(--cobalt); color: #fff; padding: clamp(52px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 60px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.06; }
.lead { margin-top: 22px; font-size: clamp(18px, 2vw, 20px); color: #DCE4FF; max-width: 33em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 20px; font-size: 15px; color: #C3D0FF; }

.dial-wrap { position: relative; width: min(100%, 440px); margin-inline: auto; }
.dial { width: 100%; height: auto; overflow: visible; }
.dial-not { font: 700 22px var(--display); fill: #DCE4FF; }
.dial-num { font: 800 46px var(--display); fill: #fff; letter-spacing: -0.04em; }
.dial-label { font: 700 18px var(--display); fill: #fff; }
.arc-free { stroke-dasharray: 100; stroke-dashoffset: 100; animation: sweep 1.5s .25s cubic-bezier(.3,.7,.2,1) forwards; }
@keyframes sweep { to { stroke-dashoffset: 0; } }
.chip {
  position: absolute; padding: 9px 16px; border-radius: 999px; background: #fff; color: var(--ink);
  font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px rgba(12,26,75,.22);
}
.chip.sun { background: var(--sun); }
.chip:nth-of-type(1) { top: 5%; left: 0; transform: rotate(-6deg); }
.chip:nth-of-type(2) { top: 28%; right: -2%; transform: rotate(5deg); }
.chip:nth-of-type(3) { bottom: 26%; left: -3%; transform: rotate(4deg); }
.chip:nth-of-type(4) { bottom: 5%; right: 4%; transform: rotate(-5deg); }

/* ---------- Bring what you have ---------- */
.bring-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.bring-grid p { margin-top: 16px; color: var(--muted); font-size: 18px; max-width: 30em; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 11px 20px; border-radius: 999px; background: var(--tint); border: 2px solid var(--line); color: var(--ink); font-weight: 700; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 4px solid var(--ink); padding-top: 20px; }
.steps li::before { content: counter(s); display: block; margin-bottom: 14px; font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--cobalt); }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

/* ---------- Talk to a person (dark) ---------- */
.talk { background: var(--ink); color: #C9D3F5; }
.talk h2 { color: #fff; }
.talk-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.talk-copy p { margin-top: 16px; font-size: 18px; max-width: 32em; }
.talk-copy p + p { margin-top: 12px; }

.admins { display: grid; gap: 14px; }
.admin { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); }
.avatar { flex: none; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font: 800 24px var(--display); }
.admin-info { flex: 1; min-width: 0; }
.admin h4 { font-size: 18px; color: #fff; letter-spacing: -0.01em; }
.admin small { display: block; margin-top: 2px; font-size: 14px; color: #AEBBE8; }
.message { flex: none; padding: 12px 20px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; transition: background .15s; }
.message:hover { background: var(--sun-soft); }
.admins.light .admin { background: var(--paper); border-color: var(--line); }
.admins.light h4 { color: var(--ink); }
.admins.light small { color: var(--muted); }
.admins.light .avatar { background: var(--cobalt); color: #fff; }
.admins.light .message { background: var(--cobalt); color: #fff; }
.admins.light .message:hover { background: var(--cobalt-deep); }

/* ---------- Eligibility ---------- */
.elig-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.elig-grid > div > p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.elig-status { margin-top: 28px; padding: 26px; border-radius: 22px; background: var(--tint); border: 2px solid var(--line); transition: background .25s, border-color .25s; }
.elig-status.ready { background: var(--sun); border-color: var(--sun); }
.elig-count { font-family: var(--display); font-weight: 800; font-size: 46px; color: var(--ink); line-height: 1; }
.elig-count small { font-size: 16px; font-weight: 600; color: var(--muted); }
.elig-status.ready .elig-count small { color: var(--ink); }
.elig-status p { margin-top: 10px; min-height: 3.2em; color: var(--ink); font-weight: 600; }
.elig-status .btn { margin-top: 14px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-row { position: relative; display: flex; gap: 16px; align-items: center; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; cursor: pointer; background: #fff; font-weight: 700; color: var(--ink); font-size: 18px; line-height: 1.35; transition: border-color .15s; }
.check-row:hover { border-color: #B9C6EE; }
.check-row:has(input:checked) { border-color: var(--cobalt); }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tick { flex: none; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #B9C6EE; background: #fff; position: relative; transition: background .15s, border-color .15s; }
.tick::after { content: ""; position: absolute; left: 8px; top: 7px; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) scale(0); transition: transform .15s; }
.check-row input:checked + .tick { background: var(--cobalt); border-color: var(--cobalt); }
.check-row input:checked + .tick::after { transform: rotate(-45deg) scale(1); }
.check-row input:focus-visible + .tick { outline: 3px solid var(--cobalt); outline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid #C9D3F0; }
.faq summary { cursor: pointer; list-style: none; position: relative; padding: 22px 46px 22px 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 30px var(--body); color: var(--cobalt); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 46px 24px 0; color: var(--muted); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--cobalt); text-decoration: underline; cursor: pointer; }

/* ---------- Closing band ---------- */
.cta-band { background: var(--sun); color: var(--ink); padding: clamp(48px, 7vw, 84px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between; }
.cta-inner h2 { max-width: 15em; }
.cta-inner p { margin-top: 10px; font-size: 18px; color: var(--ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B7C3EE; padding: 48px 0 32px; font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 28px 64px; justify-content: space-between; }
.site-footer address { font-style: normal; margin-top: 14px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-footer a, .site-footer .linklike { color: #E2E9FF; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; }

/* ---------- Inner pages (apply, privacy) ---------- */
.page-head { background: var(--cobalt); color: #fff; padding: clamp(44px, 6vw, 72px) 0 clamp(52px, 7vw, 80px); }
.page-head h1 { color: #fff; font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.page-head p { margin-top: 16px; color: #DCE4FF; font-size: 19px; max-width: 34em; }

.apply-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(40px, 6vw, 72px) 0; }
.form fieldset { border: 0; padding: 0; margin: 0 0 34px; min-width: 0; display: grid; gap: 18px; }
.form legend { padding: 0; margin-bottom: 18px; font: 700 20px var(--display); color: var(--ink); letter-spacing: -0.02em; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 700; font-size: 15px; color: var(--ink); }
.field input, .field select, .field textarea {
  font: 400 17px var(--body); color: var(--ink); background: #fff;
  padding: 14px; border: 2px solid var(--line); border-radius: 12px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(45,84,240,.18); }
.hint { font-size: 13px; color: var(--muted); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cobalt); flex: none; }
.form .btn { width: 100%; padding: 18px 26px; font-size: 17px; margin-top: 8px; }
.form-status { min-height: 1.5em; margin-top: 14px; font-weight: 700; }
.form-status.ok { color: #14713B; }
.form-status.err { color: #B3261E; }

.aside { position: sticky; top: 96px; background: var(--tint); border-radius: 22px; padding: 26px; }
.aside h2 { font-size: 22px; }
.aside > p { margin: 10px 0 20px; color: var(--muted); }
.aside .admin { flex-wrap: wrap; }
.aside .message { width: 100%; text-align: center; }

.prose { max-width: 720px; padding: clamp(40px, 6vw, 72px) 0; }
.prose h2 { font-size: 22px; margin: 30px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); }

.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; border: 0; cursor: pointer; padding: 15px 22px; border-radius: 999px; background: var(--sun); color: var(--ink); font: 800 16px var(--body); box-shadow: 0 10px 26px rgba(12,26,75,.32); }
.fab:hover { background: var(--sun-soft); }

/* ---------- Dialog ---------- */
dialog { border: 0; padding: 0; border-radius: 24px; width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; color: var(--text); box-shadow: 0 28px 70px rgba(12,26,75,.45); }
dialog::backdrop { background: rgba(12,26,75,.62); }
dialog[open] { animation: pop .2s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-body { padding: 30px; position: relative; }
.dialog-body h2 { font-size: 26px; margin-right: 46px; }
.dialog-body > p { margin: 10px 0 22px; color: var(--muted); }
.close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--tint); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.close:hover { background: var(--line); }
.dialog-foot { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav a:not(.btn) { display: none; }
  .hero-grid, .bring-grid, .talk-grid, .elig-grid, .apply-grid { grid-template-columns: 1fr; }
  .dial-wrap { width: min(100%, 380px); margin-top: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .aside { position: static; }
}
@media (min-width: 901px) { .fab { display: none; } }
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; }
  .admin { flex-wrap: wrap; }
  .message { width: 100%; text-align: center; }
  .check-row { font-size: 17px; }
  .btn { width: 100%; }
  .bar .btn { width: auto; }
  .cta-actions { width: 100%; }
  .chip { font-size: 13px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .arc-free { stroke-dashoffset: 0 !important; }
}

/* ============================================================
   Apply online: the identity (ID photo) step
   ============================================================ */
.form .id-block {
  background: #fff;
  border: 2px solid var(--line);
  border-left: 6px solid var(--cobalt);
  border-radius: 18px;
  padding: 26px 26px 24px;
  box-shadow: 0 8px 26px rgba(12,26,75,.06);
}
.form .id-block.soft { border-left-color: var(--muted); }
.form .id-block legend { margin-bottom: 10px; }
.field-note { margin: -6px 0 6px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.field-note a { font-weight: 600; }

/* File boxes */
.field input[type="file"] {
  padding: 12px;
  background: var(--paper);
  cursor: pointer;
  font-size: 15px;
}
.field input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 10px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--cobalt);
  color: #fff;
  font: 700 15px var(--body);
  cursor: pointer;
}
.field input[type="file"]::file-selector-button:hover { background: var(--cobalt-deep); }
.file-ok { font-size: 14px; font-weight: 700; color: #14713B; }
.upload-help {
  margin-top: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tint);
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

/* Photo preview */
.preview {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 16px;
  background: var(--tint);
  border: 2px solid var(--line);
}
.preview-title { font-weight: 800; font-size: 15px; color: var(--ink); }
.preview img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

/* ============================================================
   Home page: Apply online section
   ============================================================ */
.online-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 6vw, 64px); align-items: start; }
.online-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; counter-reset: none; }
.online-list li { display: flex; gap: 18px; align-items: flex-start; }
.online-list h3 { margin-bottom: 6px; }
.online-list p { color: var(--muted); font-size: 16px; }
.online-ico {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cobalt); color: #fff;
  font: 800 18px var(--display);
}
.online-card {
  padding: 28px;
  border-radius: 22px;
  background: var(--tint);
  border: 2px solid var(--line);
}
.online-card h3 { font-size: 22px; }
.online-card p { margin: 12px 0 20px; color: var(--muted); }
.online-card .btn { width: 100%; }
.online-note { margin: 16px 0 0 !important; font-size: 14px; }

@media (max-width: 900px) {
  .online-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Admin cards: one button per channel (WhatsApp, Telegram, ...)
   ============================================================ */
.admin-links { display: flex; flex-wrap: wrap; gap: 8px; flex: none; }
.admin .message { padding: 12px 18px; }
.message.channel-tg { background: transparent; border: 2px solid var(--sun); color: var(--sun); }
.message.channel-tg:hover { background: var(--sun); color: var(--ink); }
.message.channel-ig { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.message.channel-ig:hover { background: rgba(255,255,255,.14); }
.message.channel-mail { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.message.channel-mail:hover { background: rgba(255,255,255,.14); }
.message.channel-other { background: transparent; border: 2px solid rgba(255,255,255,.6); color: #fff; }
.message.channel-other:hover { background: rgba(255,255,255,.14); }

.admins.light .message.channel-tg { border-color: var(--cobalt); color: var(--cobalt); }
.admins.light .message.channel-tg:hover { background: var(--cobalt); color: #fff; }
.admins.light .message.channel-ig,
.admins.light .message.channel-mail,
.admins.light .message.channel-other { border-color: var(--line); color: var(--ink); }
.admins.light .message.channel-ig:hover,
.admins.light .message.channel-mail:hover,
.admins.light .message.channel-other:hover { background: var(--tint); }

/* The narrow sidebar on the apply page stacks the buttons instead. */
.aside .admin-links { width: 100%; flex-direction: column; }
.aside .admin-links .message { width: 100%; text-align: center; }
