/* NYSC Vacancies 2026 */
:root { --brand: #7a1f2b; --brand-2: #a32638; --gold: #e0a526; --ink: #1f2937; --muted: #6b7280; --line: #e5e7eb; --r: 1rem; }

body { font-family: "Inter", "Noto Sans Sinhala", "Noto Sans Tamil", system-ui, -apple-system, "Segoe UI", sans-serif; background: #f4f1ee; color: var(--ink); }

/* header */
.hero { background: radial-gradient(800px 360px at 90% -20%, rgba(224, 165, 38, .35), transparent 60%), linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; padding: 2rem 0 5.5rem; }
.hero-sm { padding-bottom: 4.5rem; }
.hero .org { font-size: .82rem; opacity: .9; margin-bottom: .5rem; }
.hero h1 { color: #fff; font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .6rem; }
.hero h1 .si, .hero h1 .ta { font-weight: 600; font-size: .62em; opacity: .9; margin-left: .35rem; }
.closing { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .35rem .5rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(224, 165, 38, .2); border: 1px solid rgba(224, 165, 38, .6); font-size: .9rem; }
.closing i { color: var(--gold); }
.closing strong { color: #fde68a; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: .9rem; }
.hero-links .btn { border-radius: 999px; font-weight: 600; }

.wrap { margin-top: -3.8rem; }

/* English-only notice */
.english-only { display: flex; gap: .8rem; align-items: flex-start; background: #fff7e6; border: 1px solid #f5c76b; border-left: 5px solid var(--gold); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: 0 8px 24px -18px rgba(0,0,0,.5); }
.english-only i { font-size: 1.5rem; color: #b7791f; }
.english-only strong { display: block; color: #7c4a03; }
.english-only span { display: block; font-size: .88rem; color: #5b4632; }

/* cards */
.sheet { border: 0; border-radius: var(--r); box-shadow: 0 10px 28px -20px rgba(0,0,0,.55); overflow: hidden; margin-bottom: 1rem; }
.sheet-head { background: var(--brand); color: #fff; padding: .8rem 1.15rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.sheet-head .l-tr { color: rgba(255,255,255,.75); }
.sec-no { flex: 0 0 auto; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--gold); color: #3b2a00; display: grid; place-items: center; font-weight: 800; }
.sheet-body { padding: 1.15rem; }
@media (min-width: 768px) { .sheet-body { padding: 1.5rem 1.75rem; } }

/* trilingual labels */
.l-en { display: block; font-weight: 600; }
.l-tr { display: block; font-size: .78rem; font-weight: 400; color: var(--muted); line-height: 1.45; }
.form-label { margin-bottom: .4rem; }
.form-label .star, .star { color: #dc2626; margin-left: .2rem; font-weight: 700; }
/* English label, then the red *, then Sinhala · Tamil on the next line */
.form-label:has(.l-en) { display: flex; flex-wrap: wrap; align-items: baseline; }
.form-label .l-en { order: 1; display: inline; }
.form-label .star { order: 2; display: inline; }
.form-label .l-tr { order: 3; flex-basis: 100%; margin-top: .1rem; }
h3.sub { font-size: 1rem; margin: 0 0 .75rem; color: var(--brand); }
h3.sub .l-en { display: inline; }

.form-control, .form-select { border-radius: .65rem; padding: .6rem .8rem; border-color: #cbd5e1; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem rgba(163, 38, 56, .15); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* vacancy cards */
.vac-list { display: grid; gap: .6rem; }
.vac { position: relative; display: flex; gap: .85rem; padding: .9rem 1rem; border: 2px solid var(--line); border-radius: var(--r); background: #fff; cursor: pointer; transition: .15s; }
.vac:hover { border-color: #d9a3ab; }
.vac input { position: absolute; opacity: 0; pointer-events: none; }
.vac-no { flex: 0 0 2rem; height: 2rem; border-radius: 50%; background: #f3e8ea; color: var(--brand); font-weight: 800; display: grid; place-items: center; }
.vac-body { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.vac-body strong { font-size: 1rem; }
.vac-si { font-size: .95rem; color: #374151; }
.vac-req { color: var(--muted); font-size: .8rem; margin-top: .2rem; }
.vac-req.si { margin-top: 0; }
.vac-pdf { font-size: .82rem; font-weight: 600; color: var(--brand-2); margin-top: .3rem; text-decoration: none; }
.vac:has(input:checked) { border-color: var(--brand); background: #fdf6f7; box-shadow: 0 0 0 4px rgba(122, 31, 43, .1); }
.vac:has(input:checked) .vac-no { background: var(--brand); color: #fff; }
.vac:has(input:focus-visible) { outline: 3px solid var(--brand-2); outline-offset: 2px; }

/* yes / no + choices */
.check { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; margin-bottom: .75rem; background: #fcfcfd; }
.check-q { display: flex; gap: .6rem; margin-bottom: .65rem; }
.q-no { flex: 0 0 1.6rem; height: 1.6rem; border-radius: 50%; background: #f3e8ea; color: var(--brand); font-weight: 800; font-size: .8rem; display: grid; place-items: center; }
.yn, .choice-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice { margin: 0; cursor: pointer; flex: 1 1 160px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: flex; align-items: center; gap: .5rem; padding: .6rem .85rem; border: 1.5px solid var(--line); border-radius: .75rem; background: #fff; font-weight: 600; font-size: .9rem; transition: .15s; height: 100%; }
.choice span::before { content: ""; flex: 0 0 18px; height: 18px; border-radius: 50%; border: 2px solid #94a3b8; }
.choice input:checked + span { border-color: #15803d; background: #f0fdf4; color: #14532d; }
.choice input:checked + span::before { border-color: #15803d; background: #15803d; box-shadow: inset 0 0 0 3px #fff; }
.choice.no input:checked + span { border-color: #dc2626; background: #fef2f2; color: #7f1d1d; }
.choice.no input:checked + span::before { border-color: #dc2626; background: #dc2626; }
.choice-row .choice input:checked + span { border-color: var(--brand); background: #fdf6f7; color: var(--ink); }
.choice-row .choice input:checked + span::before { border-color: var(--brand); background: var(--brand); }
.choice input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.age-rule { font-size: .88rem; margin: .25rem 0 0; color: #374151; }

.group-invalid { display: none; color: #dc2626; font-size: .875em; margin-top: .35rem; }
.was-validated .group-wrap:has(:invalid) + .group-invalid { display: block; }

.not-eligible { display: flex; gap: .8rem; background: #fef2f2; border: 1px solid #fecaca; border-left: 5px solid #dc2626; border-radius: var(--r); padding: .9rem 1rem; margin-top: .5rem; }
.not-eligible i { font-size: 1.5rem; color: #dc2626; }
.not-eligible strong { display: block; color: #7f1d1d; }
.not-eligible span { display: block; font-size: .88rem; color: #7f1d1d; }

/* qualification groups */
fieldset.grp { border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem 1.1rem; margin-bottom: 1rem; }
fieldset.grp legend { float: none; width: auto; font-size: .95rem; font-weight: 700; color: var(--brand); padding: 0 .4rem; margin: 0; }

/* O/L A/L results */
.results { border: 1px solid var(--line); border-radius: .8rem; overflow: hidden; }
.res-head, .res-row { display: grid; grid-template-columns: 2.2rem 1fr 6.5rem; gap: .5rem; align-items: center; padding: .4rem .6rem; }
.res-head { background: #f8f5f5; font-size: .8rem; }
.res-head .l-tr { display: none; }
.res-row { border-top: 1px solid var(--line); }
.res-row:nth-child(odd) { background: #fcfcfd; }
.res-n { text-align: center; color: var(--muted); font-weight: 700; }
.res-row .form-control, .res-row .form-select { padding: .45rem .6rem; }
@media (max-width: 400px) { .res-head, .res-row { grid-template-columns: 1.6rem 1fr 4.8rem; } }

.declaration { background: #f9fafb; border: 1px solid var(--line); border-radius: var(--r); padding: .9rem 1rem; }

.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; border-radius: 999px; }
.btn-brand:hover, .btn-brand:focus { background: #5f1621; border-color: #5f1621; color: #fff; }

.done-icon { width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; background: #15803d; color: #fff; display: grid; place-items: center; font-size: 2.8rem; }
.app-no { display: inline-block; font-size: clamp(1.2rem, 5vw, 1.8rem); font-weight: 800; letter-spacing: .05em; color: var(--brand); background: #f3e8ea; border-radius: .8rem; padding: .5rem 1.1rem; }
.hp { position: absolute; left: -9999px; }

/* larger council name in the header (English + Sinhala) */
.hero .org { opacity: 1; margin-bottom: .6rem; }
.hero .org-en { display: block; font-size: clamp(1.15rem, 3.6vw, 1.6rem); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.hero .org-si { display: block; font-size: clamp(1rem, 3vw, 1.3rem); font-weight: 700; opacity: .92; }
.hero h1 { font-size: clamp(1.4rem, 4.4vw, 2rem); }

/* date of birth / age check inside the eligibility step */
.dob-block { border: 1px dashed #d9a3ab; background: #fffafa; border-radius: var(--r); padding: .9rem 1rem; margin-top: .75rem; }
