/* Additions for the Laravel app: forms, registration, sign-in, profile, ID card. Tokens come from yva.css. */
[hidden]:not([hidden=until-found i]) { display: none !important; }
body { margin: 0; }
img { max-width: 100%; }
.muted { color: var(--muted); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .6; cursor: progress; }
.nav-link { text-decoration: none; }
.nav .btn { white-space: nowrap; }

/* Signed in / signed out: the class on <html> is set before the page draws, so nothing flashes */
html.is-auth [data-guest-only] { display: none !important; }
html:not(.is-auth) [data-auth-only] { display: none !important; }

/* Account icon (sign in when signed out, account menu when signed in) */
.acct { position: relative; }
.acct-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0; border-radius: 50%; border: 1.5px solid var(--yva, #007a08); background: #fff; color: var(--yva, #007a08); cursor: pointer; overflow: hidden; transition: background .2s ease, color .2s ease; }
.acct-btn:hover, .acct.open .acct-btn { background: var(--yva, #007a08); color: #fff; }
.acct-btn img { width: 100%; height: 100%; object-fit: cover; }
.acct-initial { display: grid; place-items: center; }
.nav.top .acct-btn { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.nav.top .acct-btn:hover, .nav.top .acct.open .acct-btn { background: #fff; color: var(--yva, #007a08); }
.acct-menu { position: absolute; right: 0; top: calc(100% + 10px); z-index: 40; min-width: 240px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 40px -18px rgba(20,35,28,.35); }
.acct-who { display: flex; flex-direction: column; padding: 10px 12px 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.acct-who b { font-weight: 600; color: var(--fg); line-height: 1.3; }
.acct-who small { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.acct-menu a, .acct-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--fg); text-align: left; text-decoration: none; cursor: pointer; }
.acct-menu a:hover, .acct-menu a:focus-visible, .acct-menu button:hover, .acct-menu button:focus-visible { background: var(--brand-soft); color: var(--brand); outline: none; }
.acct-menu svg { flex: none; color: var(--muted); }
.acct-menu [data-acct-logout] { color: var(--red); }
.acct-menu [data-acct-logout] svg { color: currentColor; }
.mob-actions .acct-btn { width: 40px; height: 40px; }

/* Register page: message for visitors who are already signed in */
.reg-already-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

/* Leave room for the footer wave under the last section of a page */
main > section:last-child { padding-bottom: max(140px, 10vw); }

/* Banner variants */
.reg-banner .ab-texthero { max-width: 900px; }
.reg-banner .reg-intro { max-width: 70ch; font-size: 17px; text-align: left; }
.prof-top .wrap, .auth-page .wrap { padding-bottom: 24px; }

/* Registration hero image: 50% of the screen height, whole image visible, sides filled with its edge colour */
.reg-hero { position: relative; height: 50vh; min-height: 320px; background: var(--hero-bg, #f4f4f4); display: flex; justify-content: center; overflow: hidden; }
.reg-hero img { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }
@media (min-width: 761px) {
  /* Fade the picture's left and right edges into the background so there is no visible seam on wide screens */
  .reg-hero img { width: auto; aspect-ratio: 960 / 502; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%); }
}
@media (max-width: 760px) {
  /* On phones the full-width image is already short, so let it keep its natural height */
  .reg-hero { height: auto; min-height: 0; }
  .reg-hero img { height: auto; }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Registration layout */
.reg-wrap, .prof-wrap { padding: 48px 0 96px; }
.reg-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 40px; align-items: start; }
.reg-aside { position: sticky; top: 96px; display: grid; gap: 20px; }
.reg-box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; }
.reg-box h2 { font-family: var(--font-display); font-size: 19px; margin: 0 0 12px; color: var(--brand); }
.reg-box p { margin: 0 0 12px; font-size: 15px; color: var(--muted); }
.reg-box .commit { margin: 0; gap: 10px; }
.reg-box .commit li { font-size: 15px; align-items: flex-start; }
.reg-elig { margin: 0; padding-left: 18px; font-size: 15px; font-weight: 600; color: var(--fg); }
.reg-signin { font-size: 15px; margin: 0; }
.reg-signin a, .auth-foot a { color: var(--yva); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.reg-done { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 48px 28px; }
.reg-done h2 { font-family: var(--font-display); font-size: 30px; margin: 14px 0 8px; color: var(--brand); }
.tick.big { width: 56px; height: 56px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--yva); color: #fff; }
.tick.big svg { width: 26px; height: 26px; }
@media (max-width: 960px) { .reg-grid { grid-template-columns: 1fr; } .reg-aside { position: static; order: 2; } }

/* Form */
.yform { display: grid; gap: 22px; }
.yform.narrow { max-width: 440px; }
.fset { border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 6px; margin: 0; background: #fff; }
.fset legend { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--brand); padding: 0 8px; margin-left: -8px; }
.fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field.w-full { grid-column: 1 / -1; }
/* In a row of two, line up the answer boxes even when only one question has help text */
.fgrid > .field > :is(input, select, textarea, .choices, .file-pick):not([type=radio]):not([type=checkbox]):first-of-type { margin-top: auto; }
@media (max-width: 640px) { .fgrid { grid-template-columns: 1fr; } .fset { padding: 18px 16px 4px; } }
.field > label, .field .sub-label { font-weight: 600; font-size: 15px; color: var(--fg); }
.field .sub-label { margin-top: 8px; font-weight: 500; font-size: 14px; }
.req { color: var(--red); }
.help { margin: -2px 0 2px; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--fg); background: #fff;
  border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:not([type=radio]):not([type=checkbox]):not([type=file]), .field select { height: 48px; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yva); box-shadow: 0 0 0 3px rgba(0, 122, 8, .14); }
.field.has-error input, .field.has-error select, .field.has-error textarea, .field.has-error .choices { border-color: var(--red); }
.field-error { margin: 0; min-height: 0; font-size: 13.5px; font-weight: 500; color: var(--red); }
.field-error:empty { display: none; }
.form-error { background: #fdecea; color: #8c2a1c; border-radius: 12px; padding: 12px 16px; font-weight: 500; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

.loc-fixed { display: flex; align-items: center; height: 48px; margin-top: auto; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #f4f8f6; font-weight: 600; color: var(--fg); }
/* "Same as present address" tick box */
.same-as { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 600 !important; font-size: 15px; cursor: pointer; transition: border-color .15s, background .15s; }
.same-as input { width: 20px; height: 20px; flex: none; margin: 0; accent-color: var(--yva); cursor: pointer; }
.same-as:has(input:checked) { border-color: var(--yva); background: #eef7ef; color: var(--yva-deep, #006107); }
.same-as:has(input:focus-visible) { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Radio / checkbox pills */
.choices { display: flex; flex-wrap: wrap; gap: 8px; border-radius: 12px; border: 1.5px solid transparent; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 500; font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.choice > span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--muted); flex: none; }
.choice input[type=checkbox] + span::before { border-radius: 4px; }
.choice input:checked + span { background: var(--yva); border-color: var(--yva); color: #fff; }
.choice input:checked + span::before { border-color: #fff; background: #fff; box-shadow: inset 0 0 0 3px var(--yva); }
.choice input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 2px; }

.file-pick { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.file-preview { width: 84px; height: 104px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.file-pick label.btn { cursor: pointer; }

/* Sign-in */
.auth-card { max-width: 460px; margin: 24px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 34px 30px; box-shadow: 0 24px 50px -36px rgba(20, 35, 28, .5); }
.auth-card h1 { font-family: var(--font-display); font-size: 32px; margin: 0 0 6px; color: var(--brand); }
.auth-card > .muted { margin: 0 0 22px; }
.auth-card .yform { gap: 0; }
.auth-foot { margin: 18px 0 0; font-size: 15px; text-align: center; }
.auth-card.verify { text-align: center; }
.label-row { display: flex !important; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-link { font-size: 14px; font-weight: 500; color: var(--yva); text-decoration: underline; text-underline-offset: 3px; }
.auth-sent { text-align: center; }
.auth-sent .tick.big { margin-bottom: 6px; }
.auth-sent h1 { margin-top: 8px; }
.small-note { font-size: 14px; margin-top: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--yva); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.adm-forgot { margin: 14px 0 0; text-align: center; font-size: 14px; }
.adm-forgot a { color: var(--yva); }

/* Profile */
.prof-head { display: flex; align-items: center; gap: 18px; padding: 18px 0 8px; flex-wrap: wrap; }
.prof-head h1 { font-family: var(--font-display); font-size: clamp(26px, 4vw, 38px); margin: 0; color: var(--brand); line-height: 1.1; }
.prof-head p { margin: 4px 0 0; }
.prof-out { margin-left: auto; }
.prof-avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--yva); background: var(--brand-soft); }
.prof-avatar.lg { width: 120px; height: 120px; margin-bottom: 12px; }
.prof-initials { display: inline-grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--brand); }
.prof-avatar.lg.prof-initials { font-size: 42px; }
.status { display: inline-block; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.status.pending { background: #fff3dc; color: #8a5300; }
.status.rejected { background: #fdecea; color: #8c2a1c; }
.status.approved { background: #e2f4e4; color: #006107; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tab { font: inherit; font-weight: 600; font-size: 15px; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 14px; cursor: pointer; white-space: nowrap; }
.tab.on { color: var(--yva); border-bottom-color: var(--yva); }

/* ID card — CR80 portrait (54 × 85.6 mm), drawn at 324 × 514 px */
.card-stage { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; padding: 26px 0; }
.idcard { --card: #007a08; position: relative; width: 324px; height: 514px; border-radius: 18px; overflow: hidden; background: #fff; color: #14231c; font-family: var(--font-body); box-shadow: 0 26px 50px -30px rgba(20, 35, 28, .55), 0 0 0 1px #dfe8e3; display: flex; flex-direction: column; align-items: center; }
.ic-head { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 18px 50px; background: var(--card); color: #fff; border-radius: 0 0 50% 50% / 0 0 34px 34px; }
.ic-head.slim { padding-bottom: 16px; border-radius: 0; }
.ic-brand { display: flex; align-items: center; gap: 10px; }
.ic-logo { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.ic-head b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 16px; letter-spacing: .04em; line-height: 1.1; }
.ic-head span { font-size: 12px; opacity: .9; }
.ic-title { align-self: center; padding: 2px 12px; border-radius: 999px; background: rgba(255,255,255,.18); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .06em; }
.ic-photo { position: relative; width: 112px; height: 132px; margin-top: -38px; border-radius: 14px; overflow: hidden; background: #eef4f0; border: 4px solid #fff; box-shadow: 0 0 0 2px var(--card); display: grid; place-items: center; color: var(--muted); font-size: 12px; z-index: 1; }
.ic-photo img { width: 100%; height: 100%; object-fit: cover; }
.ic-name { margin-top: 12px; padding: 0 16px; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1.15; }
.ic-code { margin-top: 4px; font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--card); letter-spacing: .04em; }
.ic-rows { width: 100%; padding: 12px 22px 0; display: grid; gap: 5px; }
.ic-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; border-bottom: 1px dashed #dbe5df; padding-bottom: 4px; }
.ic-row span { color: var(--muted); }
.ic-row b { text-align: right; font-weight: 600; }
.ic-foot { margin-top: auto; width: 100%; height: 14px; background: var(--card); }
.ic-stamp { position: absolute; top: 158px; right: 22px; transform: rotate(-14deg); background: rgba(255,255,255,.88); border: 2.5px solid rgba(194, 65, 45, .85); color: rgba(194, 65, 45, .9); font-family: var(--font-display); font-weight: 800; font-size: 15px; padding: 2px 10px; border-radius: 8px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; z-index: 3; }
.ic-qr { margin-top: 22px; padding: 8px; background: #fff; border-radius: 10px; box-shadow: 0 0 0 1px #dbe5df; }
.ic-qr img, .ic-qr canvas { display: block; width: 132px; height: 132px; image-rendering: pixelated; }
.ic-scan { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.ic-back-text { margin: 12px 22px 0; font-size: 12.5px; line-height: 1.5; text-align: center; }
.ic-sign { margin-top: 14px; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--muted); }
.ic-sign img { height: 34px; }
.ic-sign i { width: 130px; height: 28px; border-bottom: 1.5px solid #14231c; }
.card-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
@media print {
  .nav, .footer, .tabs, .card-actions, [data-card-note], .prof-top { display: none !important; }
  .idcard { box-shadow: 0 0 0 1px #ccc; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Generic content pages */
.prose { max-width: 760px; }
.prose-block { margin-bottom: 36px; }
.prose-block h2 { font-family: var(--font-display); color: var(--brand); font-size: 26px; margin: 0 0 10px; }
.prose-block p { font-size: 17px; line-height: 1.75; }
.prose-block img { border-radius: 16px; margin: 6px 0 14px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 100; background: var(--brand-deep); color: #fff; padding: 12px 20px; border-radius: 12px; font-weight: 500; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .5); max-width: calc(100% - 32px); }
.toast.bad { background: #8c2a1c; }

/* Team bio dialog shown with [hidden] toggling */
.tm-modal:not([hidden]) { display: grid; }


/* ===================== Home page refresh ===================== */
/* Big, bold Jost headline like the reference design */
.page-home { --font-display: "Jost", "Hind Siliguri", system-ui, sans-serif; }
.page-home .nav-link { font-family: "Jost", var(--font-body); font-size: 16.5px; font-weight: 500; }
.page-home .hero-copy { max-width: min(1180px, 100%); }
.page-home .hero h1 { font-family: "Jost", system-ui, sans-serif; font-weight: 700; font-size: clamp(46px, 7.4vw, 136px); line-height: .98; letter-spacing: -.025em; margin-bottom: 36px; max-width: 16ch; text-wrap: balance; text-shadow: 0 4px 30px rgba(0,0,0,.28); }
.page-home .hero .btn-yva { font-family: "Jost", var(--font-body); font-size: 18px; font-weight: 600; padding: 15px 30px; }
/* Soft blur and green tint over the photo; the text stays sharp */
.page-home .hero-shade { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); background: linear-gradient(90deg, rgba(10,44,24,.78) 0%, rgba(14,58,32,.55) 55%, rgba(14,58,32,.35) 100%); }

/* ---------- Tablets ---------- */
@media (max-width: 900px) {
  .page-home .hero { min-height: 0; height: auto; }
  .page-home .hero-body { padding-block: 130px 120px; }
  .page-home .hero h1 { font-size: clamp(42px, 9vw, 76px); max-width: none; }
  .page-home .im-grid { gap: 14px; }
}

/* ---------- Phones ---------- */
@media (max-width: 600px) {
  /* Navbar: only sign-in/account and the menu */
  .mob-actions .btn-donate { display: none; }
  .mob-donate { justify-content: center; margin-top: 8px; }
  .mob-actions { gap: 8px; }

  .page-home .hero { min-height: min(86svh, 720px); }
  .page-home .hero-body { padding-block: 104px 96px; }
  .page-home .hero h1 { font-size: clamp(38px, 11.5vw, 52px); line-height: 1.02; margin-bottom: 26px; }
  .page-home .hero .btn-yva { font-size: 16px; padding: 13px 24px; }

  /* Tighter sections */
  .page-home .about, .page-home .events, .page-home .impact, .page-home .trn, .page-home .vj { padding-block: 44px 52px; }
  .page-home .dash { padding-block: 44px 104px; }
  .page-home .sec-head h2, .page-home .about h2, .page-home .im-head h2, .page-home .trn h2, .page-home .dash h2 { font-size: 27px; line-height: 1.15; }
  .page-home .about-grid { gap: 24px; }
  .page-home .mv-card { padding: 16px; gap: 14px; }
  .page-home .mv-card p { font-size: 14.5px; line-height: 1.55; }

  /* Readiness: numbers and the district snapshot, without the tall photo */
  .page-home .dash-arch { display: none; }
  .page-home .dash-right { padding-bottom: 0; max-width: none; margin-top: 0; }
  .page-home .dash-snap { position: static; width: auto; margin-top: 0; }
  .page-home .dash-grid { gap: 24px; }

  /* Impact: two compact cards per row */
  .page-home .im-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .page-home .im-card { padding: 18px 14px 16px; border-radius: 18px; border-top-width: 4px; }
  .page-home .im-card h3 { font-size: 16px; margin-bottom: 6px; }
  .page-home .im-card p { font-size: 13.5px; line-height: 1.5; }
  .page-home .im-icon { width: 40px; height: 40px; margin-bottom: 12px; }
  .page-home .im-icon svg { width: 20px; height: 20px; }

  /* Trainings: the list without the side photo */
  .page-home .trn-pic { display: none; }

  /* Quotes and join */
  .page-home .q-portrait { width: 120px; height: 120px; margin: 4px auto 8px; }
  .page-home .vj-quote blockquote { font-size: 19px; }

  /* Stories and news */
  .page-home .ns-col { padding: 16px; }
}


/* ===================== Bangla subtitles ===================== */
.bn { display: block; margin-top: 2px; font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif; font-size: 13.5px; font-weight: 400; line-height: 1.5; color: var(--muted); letter-spacing: 0; text-transform: none; }
h2 > .bn { font-size: 15px; margin-top: 4px; }
legend > .bn { display: inline; margin-left: 10px; font-size: 14px; }
.bn-inline { font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif; font-weight: 400; opacity: .85; }
.bn-para { font-family: "Hind Siliguri", "Noto Sans Bengali", system-ui, sans-serif; color: var(--muted); font-size: 15px; line-height: 1.7; margin: -4px 0 12px; }
.reg-box .commit li > span:last-child { display: block; }
.reg-elig li .bn { font-weight: 400; }
.choice[hidden] { display: none !important; }

/* Registration success card */
.done-login { margin: 18px auto 6px; max-width: 460px; text-align: left; padding: 14px 18px; border-radius: 14px; background: #f4f8f6; border: 1px solid var(--line); }
.done-login p { margin: 0 0 6px; }
.done-login .bn-para { margin: 6px 0 0; font-size: 14px; }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.btn-facebook { background: #1877f2; color: #fff; border-color: #1877f2; }
.btn-facebook:hover { background: #0f63d6; color: #fff; }

/* Profile: still using the default password */
.pw-warn { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 0 0 22px; padding: 14px 18px; border-radius: 14px; background: #fff6e5; border: 1px solid #f0d49a; color: #6b4a00; }
.pw-warn .bn { color: #7a5a14; }
