:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --text: #172033;
    --muted: #667085;
    --border: #dfe5ec;
    --primary: #0f766e;
    --primary-hover: #0b5f59;
    --primary-soft: #e8f7f5;
    --warning: #9a6700;
    --warning-bg: #fff8db;
    --danger: #b42318;
    --danger-bg: #fff0ee;
    --success: #067647;
    --success-bg: #ecfdf3;
    --shadow: 0 18px 45px rgba(16, 24, 40, .08);
    --radius: 18px;
    --radius-sm: 11px;
}

html[data-theme="dark"] {
    --bg: #0d1117;
    --surface: #151b23;
    --surface-2: #1c2430;
    --text: #f2f4f7;
    --muted: #a8b3c3;
    --border: #2a3544;
    --primary: #2dd4bf;
    --primary-hover: #5eead4;
    --primary-soft: #103b37;
    --warning: #fdb022;
    --warning-bg: #3a2b08;
    --danger: #f97066;
    --danger-bg: #401513;
    --success: #32d583;
    --success-bg: #0e3525;
    --shadow: 0 18px 45px rgba(0, 0, 0, .26);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, "Noto Sans Bengali", "Hind Siliguri", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
    width: min(1080px, calc(100% - 32px));
    margin-inline: auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--surface) 90%, transparent);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(16px);
}

.topbar-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    color: var(--text);
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, #0f766e, #0a4f48);
}

.brand strong { display: block; letter-spacing: .08em; font-size: 15px; }
.brand small { display: block; color: var(--muted); font-size: 12px; }

.header-actions { display: flex; gap: 8px; }

.control-btn {
    min-height: 40px;
    padding: 8px 12px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.hero { padding: 60px 0 30px; }
.eyebrow {
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
    font-size: 12px;
}
.hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(32px, 6vw, 54px);
    line-height: 1.05;
    max-width: 820px;
}
.hero p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    max-width: 780px;
}

.notice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.notice {
    display: flex;
    gap: 14px;
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.notice h2 { margin: 0 0 5px; font-size: 17px; }
.notice p { margin: 0; color: var(--muted); font-size: 14px; }
.notice-icon { font-size: 24px; }
.notice.privacy { background: var(--primary-soft); }
.notice.warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, var(--border)); }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-card { padding: clamp(20px, 5vw, 42px); margin-bottom: 48px; }

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 28px;
}
.card-header h2 { margin: 0; font-size: 28px; }
.card-header p { margin: 5px 0 0; color: var(--muted); }

.grid { display: grid; gap: 20px; }
.two-col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.field { margin-bottom: 20px; }
.field label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
}

input, select, textarea {
    width: 100%;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface-2);
    border-radius: var(--radius-sm);
    padding: 13px 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 180px; }
input:focus, select:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent);
}
::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }

.field-help {
    text-align: right;
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
}

.section-title {
    margin: 30px 0 16px;
    padding-top: 8px;
}
.section-title h3 { margin: 0 0 4px; font-size: 19px; }
.section-title p { margin: 0; color: var(--muted); font-size: 14px; }

.upload-box {
    text-align: center;
    border: 1.5px dashed var(--border);
    border-radius: var(--radius);
    background: var(--surface-2);
    padding: 32px 20px;
}
.upload-icon { font-size: 34px; }
.upload-box h3 { margin: 8px 0 5px; }
.upload-box p { color: var(--muted); margin: 0 0 18px; }
.upload-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border-radius: 11px;
    padding: 12px 16px;
    border: 1px solid transparent;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}
.btn.primary { color: white; background: var(--primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.secondary { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn.secondary:hover { border-color: var(--primary); }
.btn:disabled { opacity: .65; cursor: not-allowed; }

.file-list { margin-top: 16px; }
.file-list h4 { margin: 0 0 8px; font-size: 14px; }
.file-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--surface-2);
    font-size: 13px;
}
.file-symbol {
    font-size: 10px;
    font-weight: 900;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 3px 5px;
}
.file-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--muted); }

.declarations {
    display: grid;
    gap: 12px;
    margin: 28px 0 20px;
}
.check-row {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 11px;
    align-items: flex-start;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-2);
    font-size: 14px;
}
.check-row input {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.submit-btn { width: 100%; min-height: 52px; font-size: 16px; }
.submission-note { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

.form-message {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.form-message.error { color: var(--danger); background: var(--danger-bg); }
.form-message.success { color: var(--success); background: var(--success-bg); }

footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    margin-top: 20px;
}
.footer-inner {
    padding: 28px 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}
.footer-inner p { color: var(--muted); margin: 3px 0 0; max-width: 650px; font-size: 14px; }

.legal-card { margin: 42px auto; padding: clamp(22px, 5vw, 46px); max-width: 900px; }
.legal-card h1 { margin-top: 0; }
.legal-card h2 { margin-top: 28px; }
.legal-card p { color: var(--muted); }

.success-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding-block: 40px;
}
.success-card {
    width: min(620px, 100%);
    text-align: center;
    padding: 42px 28px;
}
.success-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 34px;
    color: var(--success);
    background: var(--success-bg);
}
.reference-box {
    margin: 22px auto;
    padding: 16px;
    border: 1px dashed var(--primary);
    background: var(--primary-soft);
    border-radius: 12px;
}
.reference-box span { display: block; color: var(--muted); font-size: 12px; }
.reference-box strong { display: block; margin-top: 4px; font-size: 21px; letter-spacing: .05em; }
.bn { color: var(--muted); }

.honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@media (max-width: 760px) {
    .notice-grid, .two-col { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .topbar-inner { min-height: 68px; }
    .brand small { display: none; }
    .control-btn [data-i18n="theme"] { display: none; }
    .footer-inner { flex-direction: column; }
}

@media (max-width: 430px) {
    .container { width: min(100% - 20px, 1080px); }
    .form-card { padding: 18px 14px; }
    .hero h1 { font-size: 34px; }
}


.captcha-box {
    border: 1px solid var(--border);
    background: var(--surface-2);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 24px;
}

.captcha-question {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    min-height: 58px;
    padding: 10px 18px;
    border: 1px dashed var(--primary);
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--text);
    font-size: 25px;
    font-weight: 900;
    letter-spacing: .05em;
    user-select: none;
}

.captcha-controls {
    display: grid;
    grid-template-columns: minmax(0, 260px) auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}

.captcha-field {
    margin-bottom: 0;
}

.captcha-refresh {
    margin-bottom: 0;
    min-height: 48px;
}

@media (max-width: 600px) {
    .captcha-controls {
        grid-template-columns: 1fr;
    }

    .captcha-refresh {
        width: 100%;
    }
}
