@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #08255f;
  --navy-2: #0b367f;
  --navy-dark: #06183d;
  --blue: #0f4ecb;
  --blue-bright: #2468e8;
  --red: #ed1c2e;
  --red-dark: #b70f1d;
  --gold: #f4c542;
  --ink: #111d35;
  --muted: #65718a;
  --line: #e3e9f3;
  --soft: #f5f7fb;
  --white: #ffffff;
  --success: #14723a;
  --danger: #a31928;
  --shadow-sm: 0 10px 30px rgba(8, 37, 95, .08);
  --shadow: 0 22px 58px rgba(8, 37, 95, .14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
body.lang-hi { font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.narrow-container { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.form-container { width: min(1020px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 88px 0; }
.section-soft { background: var(--soft); }
.section-title { max-width: 780px; margin: 0 auto 44px; text-align: center; }
.section-title .lead { max-width: 690px; margin-inline: auto; }
.center-action { margin: 30px 0 0; text-align: center; }

h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.55rem, 5vw, 4.8rem); line-height: 1.08; letter-spacing: -.04em; }
h2 { margin-bottom: 18px; font-size: clamp(1.85rem, 3vw, 2.9rem); line-height: 1.22; letter-spacing: -.03em; }
h3 { margin-bottom: 10px; font-size: 1.12rem; line-height: 1.35; }
p { margin-bottom: 18px; }
.lead { color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--red);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow::before { content: ''; width: 28px; height: 3px; border-radius: 99px; background: currentColor; }

/* Header */
.topbar { background: var(--navy); color: #e8efff; font-size: .76rem; }
.topbar-inner { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.topbar-links { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid rgba(227, 233, 243, .95);
  backdrop-filter: blur(14px);
}
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand img { width: 58px; height: 58px; object-fit: contain; border-radius: 12px; }
.brand-copy { min-width: 0; }
.brand-copy strong { display: block; color: var(--navy); font-size: .98rem; line-height: 1.25; white-space: nowrap; }
.brand-copy small { display: block; margin-top: 2px; color: var(--red); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: 22px; margin-left: auto; font-size: .8rem; font-weight: 700; }
.nav-links a { position: relative; padding: 30px 0 27px; white-space: nowrap; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 20px; height: 2px; background: var(--red); transition: right .22s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.lang-toggle {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--navy);
  font-size: .76rem;
  font-weight: 800;
}
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: var(--soft); color: var(--navy); font-size: 1.25rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 21px;
  border: 0;
  border-radius: 12px;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; box-shadow: 0 12px 26px rgba(237, 28, 46, .22); }
.btn-blue { background: linear-gradient(135deg, var(--blue-bright), var(--navy)); color: #fff; box-shadow: 0 12px 28px rgba(15, 78, 203, .2); }
.btn-outline { border: 1px solid rgba(255, 255, 255, .48); background: rgba(255, 255, 255, .08); color: #fff; }
.btn-light { background: #fff; color: var(--navy); box-shadow: none; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--navy); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 15px; font-size: .76rem; }
.submit-wide { width: 100%; margin-top: 24px; }

/* Home hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 80% 18%, rgba(255,255,255,.18), transparent 27%),
    linear-gradient(125deg, #061c4c 0%, #0b3b99 54%, #173d87 72%, #b91326 145%);
}
.hero::before, .hero::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; }
.hero::before { width: 490px; height: 490px; right: -115px; top: -215px; border: 74px solid rgba(255,255,255,.055); }
.hero::after { width: 330px; height: 330px; left: -175px; bottom: -215px; border: 58px solid rgba(237,28,46,.16); }
.hero-grid { min-height: 610px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: 60px; align-items: center; padding: 64px 0 82px; }
.hero-copy { min-width: 0; }
.hero .eyebrow { color: #ffd5d9; }
.hero h1 span { display: block; }
.hero h1 span:last-child { color: #ffd052; }
.hero .lead { max-width: 660px; margin-bottom: 0; color: #dbe6ff; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 28px; }
.hero-note { display: flex; flex-wrap: wrap; gap: 14px 22px; margin-top: 27px; color: #dce7ff; font-size: .8rem; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note strong { color: #fff; }
.logo-stage { position: relative; display: grid; place-items: center; min-width: 0; }
.logo-card {
  width: min(440px, 100%);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 25px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 34px;
  background: rgba(255,255,255,.98);
  box-shadow: 0 34px 84px rgba(0,0,0,.27);
  transform: rotate(1deg);
}
.logo-card img { width: 100%; height: 100%; object-fit: contain; }
.float-chip { position: absolute; max-width: 220px; padding: 12px 15px; border-radius: 14px; background: #fff; color: var(--navy); box-shadow: var(--shadow); font-size: .73rem; font-weight: 700; }
.float-chip.one { left: -8px; top: 18%; }
.float-chip.two { right: -8px; bottom: 14%; }
.float-chip b { color: var(--red); }

/* Quick links */
.quick-strip { position: relative; z-index: 4; margin-top: -38px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.quick-item { min-width: 0; display: flex; align-items: center; gap: 14px; padding: 24px 20px; border-right: 1px solid var(--line); transition: background .2s ease; }
.quick-item:last-child { border-right: 0; }
.quick-item:hover { background: #f8faff; }
.quick-icon { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 14px; background: #edf3ff; color: var(--blue); font-size: 1.15rem; }
.quick-item:nth-child(even) .quick-icon { background: #fff0f2; color: var(--red); }
.quick-copy { min-width: 0; }
.quick-copy strong { display: block; color: var(--navy); font-size: .82rem; line-height: 1.35; }
.quick-copy small { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; line-height: 1.45; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(360px, .95fr) minmax(0, 1.05fr); gap: 78px; align-items: center; }
.about-visual { position: relative; min-height: 470px; display: grid; place-items: center; }
.about-main {
  position: absolute;
  inset: 15px 15px 42px;
  overflow: hidden;
  border-radius: 32px;
  background:
    radial-gradient(circle at 16% 78%, rgba(255,255,255,.12) 0 55px, transparent 56px),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.11) 0 86px, transparent 87px),
    linear-gradient(145deg, #08255f, #0f4ecb 58%, #a9162a 125%);
  box-shadow: var(--shadow);
}
.about-main::after { content: ''; position: absolute; width: 300px; height: 300px; right: -120px; bottom: -150px; border: 52px solid rgba(255,255,255,.07); border-radius: 50%; }
.about-logo { position: relative; z-index: 2; width: min(310px, 62%); aspect-ratio: 1; object-fit: contain; padding: 15px; border-radius: 28px; background: #fff; box-shadow: 0 20px 45px rgba(2, 16, 44, .25); }
.about-badge { position: absolute; z-index: 3; left: 0; bottom: 12px; display: flex; align-items: center; gap: 12px; max-width: 290px; padding: 14px 17px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.about-badge strong { color: var(--red); font-size: 1.25rem; }
.about-badge span { color: var(--navy); font-size: .7rem; font-weight: 700; line-height: 1.45; }
.about-copy { min-width: 0; }
.check-list { display: grid; gap: 15px; margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; color: var(--muted); font-size: .9rem; }
.check-list i { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eaf1ff; color: var(--blue); font-style: normal; font-weight: 900; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { min-width: 0; padding: 27px 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 21px; border-radius: 13px; background: #edf3ff; color: var(--blue); font-weight: 900; }
.card:nth-child(even) .card-icon { background: #fff0f2; color: var(--red); }
.card h3 { color: var(--navy); }
.card p { margin-bottom: 0; color: var(--muted); font-size: .82rem; line-height: 1.65; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.step { position: relative; min-width: 0; padding: 27px 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(8,37,95,.05); }
.step::before { counter-increment: step; content: '0' counter(step); position: absolute; right: 16px; top: 9px; color: #e9eef7; font-size: 2.55rem; font-weight: 800; line-height: 1; }
.step > strong { width: 45px; height: 45px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 14px; background: var(--navy); color: #fff; }
.step h3 { color: var(--navy); }
.step p { margin-bottom: 0; color: var(--muted); font-size: .8rem; line-height: 1.62; }

/* Community gallery blocks */
.gallery-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr; grid-auto-rows: 235px; gap: 18px; }
.gallery-item { position: relative; min-width: 0; overflow: hidden; display: flex; align-items: flex-end; padding: 26px; border-radius: 21px; color: #fff; background: linear-gradient(145deg, #0b3f9f, #061a44); box-shadow: var(--shadow-sm); }
.gallery-item::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.25)); }
.gallery-wide { grid-column: span 1; }
.gallery-grid .gallery-item:nth-child(4) { grid-column: span 1; }
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 2; }
.gallery-red { background: linear-gradient(145deg, #d3172a, #360d2d); }
.gallery-teal { background: linear-gradient(145deg, #1479a8, #07304c); }
.gallery-blue { background: linear-gradient(145deg, #3157a4, #07173c); }
.gallery-pattern { position: absolute; width: 250px; height: 250px; right: -80px; top: -110px; border: 42px solid rgba(255,255,255,.08); border-radius: 50%; }
.gallery-shape { position: absolute; width: 105px; height: 105px; left: 55px; top: 42px; border: 18px solid rgba(255,255,255,.07); border-radius: 18px; transform: rotate(38deg); }
.gallery-copy { position: relative; z-index: 2; }
.gallery-copy small { display: block; margin-bottom: 6px; color: rgba(255,255,255,.7); font-size: .68rem; }
.gallery-copy h3 { margin-bottom: 0; font-size: 1.12rem; }

/* CTA */
.cta-section { padding-top: 72px; padding-bottom: 72px; }
.cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 42px 46px; border-radius: 26px; background: linear-gradient(125deg, var(--navy), var(--blue) 65%, #b3172a 145%); color: #fff; box-shadow: var(--shadow); }
.cta::after { content: ''; position: absolute; width: 260px; height: 260px; right: -100px; top: -135px; border: 45px solid rgba(255,255,255,.07); border-radius: 50%; }
.cta > * { position: relative; z-index: 2; }
.cta h2 { max-width: 760px; margin-bottom: 8px; font-size: clamp(1.65rem, 3vw, 2.5rem); }
.cta p { max-width: 720px; margin-bottom: 0; color: #dce7ff; font-size: .88rem; }
.cta .btn { flex: 0 0 auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: stretch; }
.contact-grid-single { grid-template-columns: minmax(0, 860px); justify-content: center; }
.contact-panel { position: relative; overflow: hidden; padding: 34px; border-radius: 24px; background: linear-gradient(145deg, var(--navy), #0f4ecb); color: #fff; box-shadow: var(--shadow); }
.contact-panel::after { content: ''; position: absolute; width: 280px; height: 280px; right: -140px; bottom: -145px; border: 45px solid rgba(255,255,255,.07); border-radius: 50%; }
.contact-panel > * { position: relative; z-index: 2; }
.contact-panel h2 { font-size: 1.7rem; }
.contact-panel > p { color: #d6e3ff; font-size: .85rem; }
.contact-list { display: grid; gap: 12px; margin-top: 26px; }
.contact-row { min-width: 0; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; align-items: center; padding: 13px 14px; border: 1px solid rgba(255,255,255,.12); border-radius: 15px; background: rgba(255,255,255,.08); }
.contact-row i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.12); font-style: normal; }
.contact-row small, .contact-row strong { display: block; }
.contact-row small { color: #cad9ff; font-size: .68rem; }
.contact-row strong { margin-top: 2px; color: #fff; font-size: .82rem; word-break: break-word; }
.contact-form { height: 100%; }
.contact-form h2 { margin-bottom: 24px; color: var(--navy); font-size: 1.7rem; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .68rem; line-height: 1.5; }

/* Inner pages */
.page-hero { position: relative; overflow: hidden; padding: 70px 0; background: linear-gradient(125deg, var(--navy), #0d4ab5); color: #fff; }
.page-hero::after { content: ''; position: absolute; width: 320px; height: 320px; right: -70px; top: -160px; border: 55px solid rgba(255,255,255,.06); border-radius: 50%; }
.compact-page-hero { padding: 56px 0 60px; }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { max-width: 950px; margin-bottom: 12px; font-size: clamp(2.2rem, 4.4vw, 3.9rem); }
.page-hero .lead { max-width: 780px; margin-bottom: 0; color: #dce7ff; }
.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 13px; color: #c5d6ff; font-size: .76rem; }
.breadcrumb a:hover { color: #fff; }
.form-section { min-height: 480px; }
.notice { margin-bottom: 23px; padding: 14px 17px; border: 1px solid #f2db91; border-radius: 14px; background: #fff8e4; color: #6d5713; font-size: .8rem; line-height: 1.55; }
.form-card { min-width: 0; padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 13px 38px rgba(8,37,95,.07); }
.reference-form { border-top: 5px solid var(--red); }
.form-heading { display: flex; align-items: center; gap: 17px; margin-bottom: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-heading img { width: 78px; height: 78px; flex: 0 0 auto; object-fit: contain; }
.form-heading h2 { margin-bottom: 3px; color: var(--navy); font-size: 1.65rem; }
.form-heading p { margin-bottom: 0; color: var(--muted); font-size: .76rem; }
.form-heading-centered { justify-content: center; }
.achievement-mark { width: 70px; height: 70px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 20px; background: #fff4d7; font-size: 2rem; }
.form-grid, .numbered-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.single-column-form { grid-template-columns: 1fr; }
.field { min-width: 0; display: grid; align-content: start; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: var(--navy); font-size: .78rem; font-weight: 800; line-height: 1.45; }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: none;
  background: #fafcff;
  color: var(--ink);
  padding: 12px 14px;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.field input, .field select { min-height: 48px; }
.field textarea { min-height: 112px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(15,78,203,.08); }
.file-field input { min-height: 48px; padding: 9px 10px; }
.file-field small { color: var(--muted); font-size: .68rem; line-height: 1.45; }
.declaration-box { margin-top: 22px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #f7f9fd; }
.declaration-box label { display: flex; align-items: flex-start; gap: 11px; color: var(--ink); font-size: .76rem; line-height: 1.55; }
.declaration-box input { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 4px; accent-color: var(--blue); }
.success, .error-message { display: none; margin-top: 16px; padding: 13px 15px; border-radius: 12px; font-size: .8rem; font-weight: 700; }
.success { border: 1px solid #bfe8cd; background: #eaf8ef; color: var(--success); }
.error-message { border: 1px solid #f4c7cd; background: #fff0f2; color: var(--danger); }
.success.show, .error-message.show { display: block; }

/* ID and certificate */
.download-form { max-width: 620px; margin-inline: auto; text-align: center; }
.download-form h2 { margin-bottom: 24px; color: var(--navy); font-size: 1.7rem; }
.download-form .field { text-align: left; }
.download-page-icon { width: 72px; height: 72px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 22px; background: #edf3ff; color: var(--blue); font-size: 2rem; }
.certificate-page-icon { background: #fff1f3; color: var(--red); }
.document-preview { margin-top: 28px; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.id-preview { max-width: 650px; margin-inline: auto; }
.id-preview-head { display: flex; align-items: center; gap: 15px; padding: 20px 24px; border-bottom: 8px solid var(--red); background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.id-preview-head img { width: 72px; height: 72px; object-fit: contain; padding: 4px; border-radius: 14px; background: #fff; }
.id-preview-head strong, .id-preview-head small { display: block; }
.id-preview-head small { margin-top: 2px; color: #cddcff; }
.id-preview-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 26px; padding: 28px; }
.photo-placeholder { min-height: 175px; display: grid; place-items: center; border-radius: 18px; background: linear-gradient(145deg, #e8eef8, #f8faff); color: #8b9bb4; font-size: 2.35rem; font-weight: 800; }
.id-preview dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 0; }
.id-preview dl div { min-width: 0; }
.id-preview dt { color: var(--muted); font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; }
.id-preview dd { margin: 3px 0 0; color: var(--navy); font-size: .86rem; font-weight: 800; word-break: break-word; }
.document-actions { padding: 18px 24px 24px; text-align: center; }
.certificate-preview { padding: 22px; }
.certificate-border { padding: 46px 55px; border: 9px solid var(--navy); outline: 3px solid var(--gold); outline-offset: -17px; background: #fffdf7; text-align: center; }
.certificate-border img { width: 125px; height: 125px; object-fit: contain; margin: 0 auto 12px; }
.certificate-border > small { display: block; color: var(--red); font-weight: 800; letter-spacing: .15em; }
.certificate-border h2 { margin: 24px 0 5px; color: var(--muted); font-family: Georgia, serif; font-size: 1.25rem; }
.certificate-border h3 { width: min(520px, 100%); margin: 0 auto 20px; padding-bottom: 12px; border-bottom: 3px solid var(--gold); color: var(--navy); font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); }
.certificate-border p { max-width: 650px; margin: 0 auto 28px; font-family: Georgia, serif; }
.certificate-meta { display: flex; justify-content: center; gap: 75px; color: var(--muted); font-size: .76rem; }
.certificate-meta b { color: var(--navy); }

/* Cookie policy */
.policy-section { background: var(--soft); }
.policy-card { max-width: 900px; padding: 42px; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 12px 35px rgba(8,37,95,.06); }
.policy-card section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.policy-card section:last-child { border-bottom: 0; }
.policy-card h2 { margin-bottom: 10px; color: var(--navy); font-size: 1.3rem; }
.policy-card p { margin-bottom: 0; color: var(--muted); }
.policy-updated { color: var(--ink) !important; }

/* Footer */
.footer { padding: 56px 0 0; background: var(--navy-dark); color: #c7d4ef; }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1.35fr .72fr .72fr; gap: 34px; align-items: start; }
.footer-brand { margin-bottom: 15px; }
.footer .brand-copy strong { color: #fff; }
.footer p { max-width: 470px; margin-bottom: 0; font-size: .8rem; }
.footer h3 { margin-bottom: 16px; color: #fff; font-size: .94rem; }
.footer-links { display: grid; gap: 9px; font-size: .78rem; }
.footer-links a:hover { color: #fff; }
.footer-contact-list { display: grid; gap: 10px; }
.footer-contact-item { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 9px; align-items: start; max-width: none !important; color: #c7d4ef; font-size: .76rem !important; line-height: 1.6; overflow-wrap: anywhere; }
.footer-contact-item a { color: #e8efff; }
.footer-contact-item a:hover { color: #fff; text-decoration: underline; }
.footer-contact-icon { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: rgba(255,255,255,.09); color: #fff; font-size: .72rem; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-top: 42px; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: .7rem; }

/* Cookie notice */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  max-width: 1120px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin: auto;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--red);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(6,27,71,.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(calc(100% + 45px));
  transition: .28s ease;
}
.cookie-banner.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.cookie-copy strong { display: block; color: var(--navy); }
.cookie-copy p { max-width: 650px; margin: 3px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.cookie-actions { display: flex; align-items: center; gap: 9px; flex: 0 0 auto; }
.cookie-link { color: var(--blue); font-size: .74rem; font-weight: 800; white-space: nowrap; }

@media (max-width: 1120px) {
  .nav-links { gap: 15px; font-size: .74rem; }
  .brand-copy { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(340px, .85fr); gap: 42px; }
  .about-grid { gap: 50px; }
}

@media (max-width: 960px) {
  .nav-links {
    position: fixed;
    inset: 116px 18px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin: 0;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-links a::after { display: none; }
  .menu-btn { display: block; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 32px; min-height: 560px; }
  .quick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-item:nth-child(2) { border-right: 0; }
  .quick-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .about-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .about-visual { min-height: 410px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .gallery-grid .gallery-item:nth-child(1), .gallery-grid .gallery-item:nth-child(5) { grid-column: span 2; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 38px; }
  .cookie-banner { align-items: flex-start; }
  .cookie-actions { flex-wrap: wrap; justify-content: flex-end; }
}

@media (max-width: 720px) {
  .container, .narrow-container, .form-container { width: min(100% - 28px, 1180px); }
  .section { padding: 64px 0; }
  .section-title { margin-bottom: 34px; }
  .topbar-inner { justify-content: center; text-align: center; }
  .topbar-inner > span { display: none; }
  .nav { min-height: 70px; }
  .brand img { width: 50px; height: 50px; }
  .nav-links { inset: 106px 14px auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding: 46px 0 82px; }
  .logo-stage { order: -1; width: min(330px, 92%); margin-inline: auto; }
  .logo-card { padding: 17px; border-radius: 25px; }
  .float-chip { display: none; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.8rem); }
  .hero-actions .btn { width: 100%; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item, .quick-item:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .quick-item:last-child { border-bottom: 0; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .about-visual { min-height: 390px; }
  .about-main { inset: 10px 8px 42px; }
  .about-logo { width: min(280px, 66%); }
  .about-badge { left: 4px; }
  .cards, .steps { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 210px; }
  .gallery-grid .gallery-item:nth-child(1), .gallery-grid .gallery-item:nth-child(5) { grid-column: span 1; }
  .cta { flex-direction: column; align-items: flex-start; padding: 34px 26px; }
  .cta .btn { width: 100%; }
  .page-hero, .compact-page-hero { padding: 45px 0 50px; }
  .page-hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .form-card { padding: 24px 20px; border-radius: 19px; }
  .form-heading { align-items: flex-start; }
  .form-heading img { width: 62px; height: 62px; }
  .form-heading h2 { font-size: 1.3rem; }
  .form-grid, .numbered-form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .id-preview-body { grid-template-columns: 1fr; }
  .photo-placeholder { min-height: 135px; }
  .id-preview dl { grid-template-columns: 1fr; }
  .certificate-preview { padding: 10px; }
  .certificate-border { padding: 35px 20px; border-width: 6px; outline-offset: -12px; }
  .certificate-border img { width: 95px; height: 95px; }
  .certificate-meta { flex-direction: column; gap: 12px; }
  .policy-card { padding: 26px 21px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer .brand-copy { display: block; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; display: block; padding: 16px; }
  .cookie-actions { margin-top: 13px; justify-content: flex-start; }
}

@media (max-width: 420px) {
  .container, .narrow-container, .form-container { width: min(100% - 24px, 1180px); }
  .topbar-links { gap: 12px; }
  .lang-toggle { padding: 0 10px; }
  .hero-note { display: grid; gap: 7px; }
  .quick-item { padding: 21px 18px; }
  .about-visual { min-height: 350px; }
  .about-badge { max-width: 245px; padding: 12px 14px; }
  .contact-panel { padding: 26px 21px; }
  .cookie-actions .btn { flex: 1 1 auto; }
}

/* Registration page alignment and verification result */
.registration-page-hero .container { text-align: center; }
.registration-page-hero .breadcrumb { justify-content: center; }
.registration-page-hero h1,
.registration-page-hero .lead { margin-inline: auto; }
.registration-entry { padding: 64px 0 82px; }
.registration-container { width: min(940px, calc(100% - 40px)); margin-inline: auto; }
.registration-notice { margin: 0 auto 22px; }
.registration-form-card {
  width: 100%;
  margin-inline: auto;
  padding: 38px 42px 42px;
  border-top-width: 6px;
  box-shadow: 0 18px 48px rgba(8, 37, 95, .10);
}
.registration-form-heading {
  justify-content: flex-start;
  margin-bottom: 10px;
  padding-bottom: 26px;
}
.registration-form-heading img { width: 84px; height: 84px; }
.registration-form-heading h2 { font-size: clamp(1.55rem, 3vw, 2rem); }
.form-block { padding-top: 26px; }
.form-block + .form-block { margin-top: 30px; border-top: 1px solid var(--line); }
.form-block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  color: var(--navy);
  font-size: 1rem;
  letter-spacing: 0;
}
.form-block-title::before {
  content: '';
  width: 5px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--red);
}
.registration-form-card .form-grid { gap: 20px 22px; }
.registration-form-card .field { gap: 8px; }
.registration-form-card .field label { min-height: 23px; font-size: .82rem; }
.registration-form-card .field input,
.registration-form-card .field select,
.registration-form-card .field textarea {
  border-color: #d8e1ee;
  background: #fff;
}
.registration-form-card .field input,
.registration-form-card .field select { min-height: 52px; }
.registration-form-card .field textarea { min-height: 112px; }
.registration-form-card .file-field input { padding: 10px; background: #f8faff; }
.registration-error { margin-top: 20px; }
.registration-submit {
  min-height: 54px;
  margin-top: 20px;
  background: linear-gradient(135deg, #ef2739, #bd1020);
  color: #fff;
  font-size: .94rem;
}

.registration-success-section {
  min-height: 720px;
  padding: 56px 0 88px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}
.success-container { width: min(900px, calc(100% - 40px)); margin-inline: auto; }
.success-screen-heading { margin-bottom: 30px; text-align: center; }
.success-screen-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.success-screen-heading h1 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -.035em;
}
.verified-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 30px;
  padding: 24px 28px;
  border: 1px solid #aee9c4;
  border-radius: 14px;
  background: #ecfbf2;
  color: #087b35;
  text-align: left;
}
.verified-check {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0c8b3f;
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
}
.verified-banner strong,
.verified-banner span:not(.verified-check) { display: block; }
.verified-banner strong { font-size: 1.35rem; line-height: 1.35; }
.verified-banner div > span { margin-top: 3px; font-size: 1.05rem; font-weight: 700; }
.volunteer-details-card {
  overflow: hidden;
  border: 1px solid #b9d5f7;
  border-radius: 16px;
  background: #eef5ff;
  box-shadow: 0 14px 38px rgba(8, 37, 95, .08);
}
.volunteer-details-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 28px;
  border-bottom: 1px solid #c8dcf4;
  background: #e7f1ff;
  text-align: left;
}
.volunteer-avatar { font-size: 2.3rem; line-height: 1; }
.volunteer-details-heading h2 { margin: 0; color: #1249ad; font-size: clamp(1.35rem, 3vw, 1.9rem); }
.volunteer-details-heading p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; }
.volunteer-details-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 18px 28px 24px;
}
.volunteer-details-list > div {
  min-width: 0;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(122, 162, 213, .28);
}
.volunteer-details-list > div:nth-last-child(-n+2) { border-bottom: 0; }
.volunteer-details-list .detail-full { grid-column: 1 / -1; }
.volunteer-details-list dt {
  margin: 0 0 4px;
  color: #1b2a44;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.45;
}
.volunteer-details-list dd {
  margin: 0;
  color: #2b3443;
  font-size: .96rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.volunteer-details-list .blood-group-value { color: var(--red); font-weight: 800; }
.success-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 720px) {
  .registration-entry { padding: 42px 0 62px; }
  .registration-container,
  .success-container { width: min(100% - 24px, 940px); }
  .registration-form-card { padding: 24px 18px 28px; border-radius: 18px; }
  .registration-form-heading { align-items: center; gap: 13px; padding-bottom: 20px; }
  .registration-form-heading img { width: 66px; height: 66px; }
  .registration-form-heading h2 { font-size: 1.28rem; }
  .registration-form-card .form-grid { gap: 17px; }
  .form-block { padding-top: 22px; }
  .form-block + .form-block { margin-top: 24px; }
  .registration-success-section { padding: 38px 0 66px; }
  .success-screen-heading { margin-bottom: 22px; }
  .success-screen-heading h1 { font-size: clamp(1.8rem, 9vw, 2.45rem); }
  .verified-banner { justify-content: flex-start; padding: 20px 18px; }
  .verified-check { width: 42px; height: 42px; font-size: 1.35rem; }
  .verified-banner strong { font-size: 1.1rem; }
  .verified-banner div > span { font-size: .95rem; }
  .volunteer-details-heading { justify-content: flex-start; padding: 20px 18px; }
  .volunteer-details-list { grid-template-columns: 1fr; padding: 10px 16px 18px; }
  .volunteer-details-list .detail-full { grid-column: auto; }
  .volunteer-details-list > div,
  .volunteer-details-list > div:nth-last-child(-n+2) { padding: 11px 4px; border-bottom: 1px solid rgba(122, 162, 213, .28); }
  .volunteer-details-list > div:last-child { border-bottom: 0; }
  .volunteer-details-list dt { font-size: .75rem; }
  .volunteer-details-list dd { font-size: .92rem; }
  .success-actions { display: grid; grid-template-columns: 1fr; }
  .success-actions .btn { width: 100%; }
}

/* Registration contrast and action visibility */
.registration-form-card .field input,
.registration-form-card .field select,
.registration-form-card .field textarea {
  border: 1px solid #cbd7e7;
  background: #f8faff;
}
.registration-form-card .field input:focus,
.registration-form-card .field select:focus,
.registration-form-card .field textarea:focus { background: #fff; }
.success-actions .btn-blue {
  background: linear-gradient(135deg, #2468e8, #08255f);
  color: #fff;
}
.success-actions .btn-primary {
  background: linear-gradient(135deg, #ed1c2e, #b70f1d);
  color: #fff;
}
.registration-success-section { padding-bottom: 170px; }
@media (max-width: 720px) {
  .registration-success-section { padding-bottom: 220px; }
}

/* Laravel backend integration additions */
.server-alert{max-width:100%;padding:16px 18px;border-radius:12px;margin:0 0 20px;font-weight:600;line-height:1.55}
.server-alert p{margin:6px 0 0}
.server-alert-error{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}
.server-alert-success{background:#ecfdf5;border:1px solid #a7f3d0;color:#166534}
.field-error{display:block!important;color:#b91c1c!important;font-weight:700;margin-top:6px}
.lookup-result{margin-top:24px}
.approval-note{padding:16px 20px;background:#fff8e6;border:1px solid #f4d38a;border-radius:12px;margin:0 auto 24px;max-width:900px;text-align:center;color:#70480b}
.pending-banner{background:#fff8e6!important;border-color:#f4d38a!important;color:#7a4c00!important}
.rejected-banner{background:#fff1f2!important;border-color:#fecdd3!important;color:#9f1239!important}
.public-status{display:inline-flex;padding:5px 12px;border-radius:999px;font-size:.85rem;font-weight:800}
.public-status-pending{background:#fff3cd;color:#7a4c00}
.status-result-card{margin-top:30px}
.status-result-card>.verified-banner{margin:0 0 24px}
.footer-admin-link{color:rgba(255,255,255,.7);font-size:.9rem}
.footer-admin-link:hover{color:#fff}
@media(max-width:680px){.approval-note{font-size:.92rem}.status-result-card{padding:18px}.success-screen-heading h1{font-size:1.75rem}}
