 :root {
  --gold: #ffbd2e;
  --gold-deep: #f2a900;
  --green: #087451;
  --navy: #102f4d;
  --ink: #16191d;
  --muted: #687482;
  --line: #cbd0d5;
  --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f1f4f7; color: var(--ink); font-family: Inter, "Noto Sans Bengali", Arial, sans-serif; }
.app-nav { background: linear-gradient(110deg, #09243a, #123b57); color: #fff; box-shadow: 0 5px 24px #0b20321c; }
.navbar-brand { color: white; line-height: 1.15; }
.navbar-brand:hover { color: white; }
.navbar-brand small { display: block; font-size: .68rem; opacity: .7; margin-top: 4px; letter-spacing: .02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: #172b3b; font-weight: 800; border-radius: 12px; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #172331; font-weight: 700; }
.btn-gold:hover { background: #ffd16b; border-color: #ffd16b; }
.intro-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.5rem; }
.eyebrow { color: #a36a00; font-weight: 800; letter-spacing: .15em; font-size: .72rem; margin-bottom: .45rem; }
.intro-row h1 { font-weight: 800; letter-spacing: -.04em; font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 .5rem; color: #10283d; }
.intro-row h1 span { color: #c48b10; }
.status-pill { white-space: nowrap; border: 1px solid #d9e1e8; background: #fff; padding: .55rem .8rem; border-radius: 100px; font-size: .8rem; color: #536372; }
.status-pill span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #1ba56b; margin-right: .4rem; }
.paper { max-width: 960px; margin-inline: auto; position: relative; background: var(--paper); box-shadow: 0 18px 60px #19344c12; overflow: hidden; }
.registration-sheet { padding: 30px 34px 0; border: 1px solid #e8ebee; }
.corner { position: absolute; top: 0; width: 0; height: 0; border-top: 72px solid var(--gold); z-index: 1; filter: drop-shadow(0 3px 4px #0002); }
.corner-tl { left: 0; border-right: 72px solid transparent; }
.corner-tr { right: 0; border-left: 72px solid transparent; }
.form-header { display: grid; grid-template-columns: 110px 1fr 110px; align-items: center; gap: 14px; padding: 14px 12px 10px; text-align: center; }
.header-copy h2 { font-size: clamp(1.1rem, 2.6vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.english-sub { font-size: .85rem; margin: 0; font-weight: 500; }
.venue { font-size: .62rem; color: #4c5359; margin: 1px 0 6px; }
.header-copy h3 { font-family: "Noto Sans Bengali", sans-serif; font-size: clamp(1.4rem, 3vw, 2.1rem); font-weight: 800; margin: 0; line-height: 1.3; }
.bangla-sub { font-family: "Noto Sans Bengali", sans-serif; font-size: .95rem; margin: 0; }
.bangla-venue { font-family: "Noto Sans Bengali", sans-serif; margin-bottom: 0; }
.flag { height: 56px; width: 92px; position: relative; justify-self: center; filter: drop-shadow(0 3px 2px #0001); }
.flag-bd { background: #087451; clip-path: polygon(0 25%, 100% 0, 100% 76%, 0 100%); }
.flag-bd span { position: absolute; width: 27px; height: 27px; background: #f52c50; border-radius: 50%; left: 38%; top: 27%; }
.flag-kw { background: linear-gradient(to bottom, #087451 0 33.33%, #fff 33.33% 66.66%, #ce2535 66.66% 100%); clip-path: polygon(0 0,100% 22%,100% 78%,0 100%,17% 50%); }
.flag-kw span { display: none; }
.form-meta { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 8px 0 14px; }
.meta-box { display: flex; align-items: center; gap: 8px; border: 1px solid #c6cbd0; border-radius: 7px; min-height: 38px; padding: 5px 9px; width: fit-content; min-width: 160px; font-family: "Noto Sans Bengali", sans-serif; font-size: .92rem; }
.meta-box input { min-width: 0; width: 70px; border: 0; outline: 0; background: transparent; }
.form-ribbon { background: var(--gold); border-radius: 10px; padding: 9px 18px; font-size: clamp(.9rem, 2vw, 1.2rem); font-weight: 600; text-align: center; white-space: nowrap; }
.form-ribbon span { font-family: "Noto Sans Bengali", sans-serif; }
.photo-area { position: absolute; top: 224px; right: 34px; display: grid; justify-items: center; z-index: 2; }
.photo-box, .entry-photo { width: 105px; height: 116px; display: grid; place-items: center; background: #e9ebed; color: #29323a; font-size: .75rem; cursor: pointer; overflow: hidden; text-align: center; }
.photo-box img { width: 100%; height: 100%; object-fit: cover; }
.photo-hint { color: #87919a; font-size: .6rem; margin-top: 5px; }
.form-fields { padding-top: 8px; }
.field-row { min-height: 43px; display: flex; align-items: baseline; gap: 3px; font-size: .91rem; }
.field-row label { white-space: nowrap; font-weight: 500; }
.field-row input { min-width: 0; flex: 1; border: 0; border-bottom: 2px dotted #333; border-radius: 0; outline: none; background: transparent; height: 25px; padding: 0 4px; color: #111; }
.field-row input:focus { border-bottom-color: #0a9b65; background: #eaf9f1; }
.field-row.bangla { font-family: "Noto Sans Bengali", sans-serif; }
.field-row.bangla label { font-size: .91rem; }
.address { gap: 4px; }
.address label { margin-right: 2px; }
.inline-label { white-space: nowrap; font-size: .84rem; }
.footer-fields { align-items: center; flex-wrap: wrap; min-height: 70px; padding-bottom: 8px; }
.footer-fields > label { font-family: "Noto Sans Bengali", sans-serif; }
.signature { min-width: 235px; margin-left: auto; text-align: center; font-size: .8rem; padding-top: 8px; }
.signature span { font-family: "Noto Sans Bengali", sans-serif; }
.signature-line { display: block; height: 25px; width: 75%; margin: 0 auto; border-bottom: 2px dotted #333; }
.bottom-accent { height: 8px; margin: 0 -34px; display: flex; }
.bottom-accent span:nth-child(1) { flex: 1; background: #102f4d; }
.bottom-accent span:nth-child(2) { flex: 1; background: var(--gold); }
.bottom-accent span:nth-child(3) { flex: 1; background: #087451; }
.entry-sheet { min-height: 500px; padding-bottom: 34px; border: 1px solid #e8ebee; }
.entry-topband { background: var(--gold); display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 16px 28px 14px; color: #fff; text-align: center; }
.entry-brand-en, .entry-brand-bn { display: flex; flex-direction: column; }
.entry-brand-en strong { font-size: clamp(1.15rem, 2.7vw, 1.9rem); line-height: 1.1; }
.entry-brand-en span { font-size: .82rem; font-weight: 700; margin-top: 3px; }
.entry-brand-en small { font-size: .59rem; }
.entry-brand-bn { font-family: "Noto Sans Bengali", sans-serif; }
.entry-brand-bn strong { font-size: clamp(1.35rem, 2.7vw, 2rem); line-height: 1.2; }
.entry-brand-bn span { font-size: .85rem; }
.entry-brand-bn small { font-size: .65rem; }
.entry-title { font-family: "Noto Sans Bengali", sans-serif; text-align: center; font-size: 1.2rem; font-weight: 800; text-decoration: underline; margin: 10px 0 16px; }
.entry-meta { display: flex; justify-content: space-between; align-items: start; padding: 0 32px; min-height: 100px; }
.entry-photo { width: 100px; height: 112px; margin-top: -8px; }
.entry-fields { padding: 4px 34px 0; }
.entry-fields .field-row { min-height: 40px; }
.para-choice { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; padding: 22px 18px 14px; font-family: "Noto Sans Bengali", sans-serif; font-size: .9rem; }
.para-choice > span:first-child { font-family: Inter, "Noto Sans Bengali", sans-serif; }
.entry-signature { width: 230px; margin: 12px auto 0; text-align: center; font-size: .9rem; }
.entry-signature span { display: block; width: 175px; height: 25px; margin: 0 auto; border-bottom: 2px dotted #333; }
.entry-corners i { position: absolute; width: 0; height: 0; border-bottom: 60px solid var(--gold); }
.entry-corners i:nth-child(1) { left: 0; bottom: 0; border-right: 60px solid transparent; }
.entry-corners i:nth-child(2) { right: 0; bottom: 0; border-left: 60px solid transparent; }
.entry-corners i:nth-child(3) { left: 0; top: 0; border-top: 60px solid var(--gold); border-right: 60px solid transparent; border-bottom: 0; }
.entry-corners i:nth-child(4) { right: 0; top: 0; border-top: 60px solid var(--gold); border-left: 60px solid transparent; border-bottom: 0; }
.template-footer { max-width: 960px; margin: 1.25rem auto 0; display: flex; justify-content: space-between; gap: 1rem; color: #75818d; font-size: .78rem; }
.preview-mode .field-row input { border-bottom-style: solid; border-bottom-color: #d4dce2; }
.preview-mode .paper { box-shadow: 0 18px 60px #19344c20; }
@media (max-width: 767.98px) {
  .intro-row { align-items: start; flex-direction: column; }
  .status-pill { align-self: start; }
  .registration-sheet { padding: 24px 15px 0; }
  .form-header { grid-template-columns: 54px 1fr 54px; gap: 6px; padding-inline: 0; }
  .flag { width: 50px; height: 34px; }
  .flag-bd span { width: 15px; height: 15px; }
  .header-copy h2 { font-size: 1rem; }
  .english-sub { font-size: .61rem; }
  .venue { font-size: .48rem; }
  .header-copy h3 { font-size: 1.2rem; }
  .bangla-sub { font-size: .7rem; }
  .form-meta { grid-template-columns: 1fr 1fr; gap: 8px; }
  .form-ribbon { grid-column: 1 / -1; grid-row: 1; }
  .meta-box { min-width: 0; width: 100%; font-size: .75rem; }
  .meta-box input { width: 50px; }
  .photo-area { position: static; float: right; margin: 0 0 8px 12px; }
  .photo-box { width: 76px; height: 86px; }
  .photo-hint { display: none; }
  .field-row { font-size: .76rem; min-height: 37px; gap: 2px; }
  .field-row label { white-space: normal; }
  .field-row.bangla label { font-size: .73rem; }
  .field-row input { height: 22px; }
  .address { flex-wrap: wrap; }
  .address label { width: 100%; }
  .address input { min-width: 25%; }
  .inline-label { font-size: .7rem; }
  .footer-fields { align-items: baseline; }
  .signature { width: 100%; margin: 8px 0 0; }
  .bottom-accent { margin-inline: -15px; }
  .entry-topband { padding: 13px 10px; gap: 10px; }
  .entry-brand-en strong { font-size: 1rem; }
  .entry-brand-en span { font-size: .58rem; }
  .entry-brand-en small { font-size: .45rem; }
  .entry-brand-bn strong { font-size: 1.05rem; }
  .entry-brand-bn span { font-size: .62rem; }
  .entry-brand-bn small { font-size: .5rem; }
  .entry-meta { padding-inline: 12px; }
  .entry-photo { width: 70px; height: 80px; font-size: .65rem; }
  .entry-fields { padding-inline: 14px; }
  .entry-fields .field-row { min-height: 36px; }
  .para-choice { gap: 10px; font-size: .7rem; padding-inline: 10px; }
  .template-footer { flex-direction: column; gap: .25rem; }
}
@page { size: A4; margin: 10mm; }
@media print {
  body { background: white !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .no-print, .app-nav, .intro-row, .template-footer, .photo-hint { display: none !important; }
  main.container-xl { width: 100%; max-width: none; padding: 0 !important; margin: 0 !important; }
  .paper { max-width: none; box-shadow: none !important; border: 0; margin: 0 auto 8mm !important; break-inside: avoid; }
  .registration-sheet { padding-top: 10mm; }
  .registration-sheet, .entry-sheet { page-break-inside: avoid; }
  .field-row input { background: transparent !important; }
  .registration-sheet { min-height: 260mm; }
  .entry-sheet { min-height: 135mm; }
  .photo-area { right: 9mm; top: 56mm; }
  .photo-box { width: 28mm; height: 31mm; }
  .form-header { padding-top: 8mm; }
}
