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

:root {
  --ink: #020817;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --footer: #f1f5f9;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --blue-line: #dbeafe;
  --warning-bg: #fefce8;
  --warning-line: #fef08a;
  --warning-text: #854d0e;
  --danger: #ef4444;
  --font: Inter, "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.drawer-open, body.modal-open { overflow: hidden; }
a { color: inherit; }
img { display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(37,99,235,.28); outline-offset: 2px; }
.wrap { width: min(976px, calc(100% - 32px)); margin: 0 auto; }
.narrow { width: min(736px, calc(100% - 32px)); margin: 0 auto; }

.site-header { position: sticky; z-index: 40; top: 0; height: 65px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.97); box-shadow: 0 1px 4px rgba(15,23,42,.08); }
/* Keep localized desktop navigation on one line. */
.header-inner { width: min(1160px, calc(100% - 32px)); height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: max-content; text-decoration: none; font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.brand-logo { width: 36px; height: 36px; border-radius: 9px; }
.desktop-nav { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.desktop-nav a { color: #0f172a; text-decoration: none; white-space: nowrap; font-size: 14px; font-weight: 600; }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.icon-control { width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; background: transparent; cursor: pointer; }
.icon-control:hover { background: var(--soft); }
.icon-control img { width: 19px; height: 19px; }
.nav-button, .button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; text-decoration: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.nav-button { white-space: nowrap; }
.button-dark { color: #fff; border-color: #111827; background: #111827; }
.button-dark:hover { background: #1e293b; }
.button-outline:hover, .nav-button:hover { background: var(--soft); }
.menu-toggle { display: none; }
.language-wrap { position: relative; }
.language-menu { position: absolute; top: 44px; right: 0; min-width: 126px; padding: 5px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 8px 22px rgba(15,23,42,.14); }
.language-menu a { display: block; padding: 7px 9px; border-radius: 4px; text-decoration: none; font-size: 14px; }
.language-menu a:hover, .language-menu a.active { background: var(--footer); }
.language-menu a { display: flex; justify-content: space-between; gap: 18px; }
.language-menu small { color: var(--muted); font-size: 11px; }
.language-trigger { min-width: 58px; height: 38px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; font-weight: 700; cursor: pointer; }
.language-trigger:hover { background: var(--soft); }
.language-trigger img { width: 18px; height: 18px; }

.drawer-backdrop { position: fixed; z-index: 70; inset: 0; background: rgba(0,0,0,.78); }
.mobile-drawer { position: fixed; z-index: 80; top: 0; right: 0; width: min(315px, 84vw); height: 100dvh; padding: 16px 24px; background: #fff; box-shadow: -16px 0 40px rgba(0,0,0,.2); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.drawer-head .brand { font-size: 18px; }
.drawer-nav { display: grid; gap: 22px; padding: 26px 0; }
.drawer-nav a { text-decoration: none; font-size: 18px; font-weight: 700; }
.drawer-cta { width: 100%; }

.hero { min-height: 428px; display: grid; place-items: center; padding: 72px 0; text-align: center; background: linear-gradient(#eff6ff 0%, #fff 100%); }
.hero h1 { margin: 0 0 5px; font-size: 54px; line-height: 1.1; letter-spacing: -.055em; }
.hero p { margin: 0; color: var(--muted); font-size: 24px; }
.hero-actions { display: flex; justify-content: center; gap: 16px; margin-top: 26px; }
.hero-actions .button { min-width: 122px; }

.home-section { padding: 120px 0; }
.home-section.soft { background: var(--soft); }
.section-heading { margin-bottom: 48px; text-align: center; }
.section-heading h2 { margin: 0 0 6px; font-size: 34px; letter-spacing: -.04em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 18px; }
.help-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.help-card { min-height: 351px; padding: 24px; border: 1px solid #d8dee8; border-radius: 7px; background: #fff; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.round-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 50%; background: #dbeafe; }
.round-icon img { width: 25px; height: 25px; filter: invert(35%) sepia(94%) saturate(2168%) hue-rotate(213deg) brightness(92%) contrast(95%); }
.help-card h3 { margin: 0 0 0; font-size: 22px; line-height: 1.25; letter-spacing: -.025em; }
.help-card .subtitle { min-height: 43px; margin: 3px 0 18px; color: var(--muted); font-size: 14px; }
.help-card p { margin: 0 0 15px; color: #475569; font-size: 14px; }
.text-link { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700; }
.text-link:hover { color: var(--blue); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; }
.process-card { min-height: 250px; padding: 27px 22px; border: 1px solid #d8dee8; border-radius: 7px; background: #fff; text-align: center; box-shadow: 0 1px 3px rgba(15,23,42,.06); }
.process-number { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 23px; border-radius: 50%; color: var(--blue); background: #dbeafe; font-size: 21px; font-weight: 800; }
.process-card h3 { margin: 0 0 18px; font-size: 18px; }
.process-card p { margin: 0; color: var(--muted); font-size: 14px; }
.process-cta { margin-top: 25px; text-align: center; }

.site-footer { padding: 48px 0 35px; border-top: 1px solid var(--line); background: var(--footer); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 64px; padding-bottom: 45px; }
.footer-brand img { width: 38px; height: 38px; margin-bottom: 12px; border-radius: 9px; }
.footer-brand strong { font-size: 17px; }
.footer-brand p { margin: 7px 0 0; color: var(--muted); font-size: 13px; }
.footer-col h4 { margin: 0 0 16px; color: #64748b; font-size: 13px; letter-spacing: .045em; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { color: #334155; text-decoration: none; font-size: 13px; }
.footer-col a:hover { color: var(--blue); }
.copyright { padding-top: 24px; border-top: 1px solid #dbe1e8; color: var(--muted); text-align: center; font-size: 12px; }

.simple-page { min-height: 100vh; padding: 48px 0 36px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 27px; color: var(--blue); text-decoration: none; font-size: 15px; }
.simple-title { display: flex; align-items: center; gap: 12px; margin: 0 0 24px 40px; }
.simple-title.no-offset { margin-left: 0; }
.simple-title img { width: 36px; height: 36px; border-radius: 9px; }
.simple-title h1 { margin: 0; font-size: 32px; line-height: 1.2; letter-spacing: -.035em; }
.simple-copy { margin: 0 0 25px; color: #334155; font-size: 17px; line-height: 1.75; }
.contact-panel { margin: 30px 0 32px; padding: 25px; border: 1px solid var(--blue-line); border-radius: 7px; background: var(--blue-soft); }
.contact-panel h2 { margin: 0 0 15px; font-size: 18px; }
.contact-line { display: flex; gap: 13px; align-items: flex-start; color: #334155; font-size: 16px; }
.contact-line + .contact-line { margin-top: 14px; }
.contact-line img { width: 20px; height: 20px; margin-top: 2px; filter: invert(35%) sepia(94%) saturate(2168%) hue-rotate(213deg) brightness(92%) contrast(95%); }
.contact-line a { color: var(--blue); text-decoration: none; }
.info-panel { margin-bottom: 32px; padding: 25px; border: 1px solid #edf0f4; border-radius: 7px; background: #f8fafc; }
.info-panel h2 { margin: 0 0 13px; font-size: 18px; }
.info-panel p { margin: 0 0 15px; color: #334155; font-size: 15px; }
.page-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 46px; }

.submit-intro { margin-bottom: 24px; color: #334155; font-size: 16px; line-height: 1.55; }
.warning-box { margin-bottom: 32px; padding: 17px; border: 1px solid var(--warning-line); border-radius: 7px; color: var(--warning-text); background: var(--warning-bg); font-size: 13px; }
.warning-box h2 { margin: 0 0 5px; font-size: 15px; }
.warning-box ul { margin: 0; padding-left: 19px; }
.form-card { margin-bottom: 32px; padding: 24px; border: 1px solid #d8dee8; border-radius: 7px; background: #fff; }
.form-card h2 { margin: 0 0 24px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 20px; letter-spacing: -.025em; }
.field + .field { margin-top: 24px; }
.field label, .field legend { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.required { color: var(--danger); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]), .field select, .field textarea { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid #d8dee8; border-radius: 5px; color: var(--ink); background: #fff; }
.field textarea { min-height: 118px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: #94a3b8; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-help { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.field-error { display: none; margin: 6px 0 0; color: #dc2626; font-size: 12px; }
.field.has-error .field-error { display: block; }
.radio-list { display: grid; gap: 8px; }
.field .radio-option, .field.check-option { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 0; cursor: pointer; }
.radio-option input, .check-option input { flex: 0 0 auto; width: 17px; height: 17px; margin: 2px 0 0; accent-color: #111827; }
.radio-option span { font-size: 14px; }
.check-list { display: grid; gap: 17px; }
.check-option span { font-size: 13px; font-weight: 600; line-height: 1.42; }
.upload-card { margin-bottom: 32px; padding: 24px; border: 1px solid #d8dee8; border-radius: 7px; background: #fff; }
.upload-card h2 { margin: 0 0 2px; font-size: 17px; line-height: 1.55; }
.upload-state { margin: 22px 0 16px; color: #334155; font-size: 14px; }
.upload-button { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border: 1px solid #94a3b8; border-radius: 6px; color: var(--blue); background: #fff; font-weight: 700; cursor: pointer; }
.upload-button img { width: 18px; height: 18px; filter: invert(35%) sepia(94%) saturate(2168%) hue-rotate(213deg) brightness(92%) contrast(95%); }
.file-list { margin: 10px 0 0; padding-left: 18px; color: #475569; font-size: 12px; }
.submit-row { display: flex; justify-content: flex-end; }
.submit-row .button { min-width: 172px; }
.submit-footnote { margin-top: 31px; color: #475569; font-size: 12px; }
.submit-footnote p { margin: 0 0 10px; }
.submit-footnote a { color: var(--blue); text-decoration: none; }

.modal { padding: 0; border: 0; border-radius: 8px; width: min(680px, calc(100% - 36px)); max-height: calc(100% - 36px); background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.35); }
.modal::backdrop { background: rgba(2,8,23,.72); }
.modal-card { padding: 24px; }
.modal-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.modal-head h2 { margin: 0 0 4px; font-size: 21px; }
.modal-head p { margin: 0; color: var(--muted); font-size: 12px; }
.modal-body { padding: 18px 0; }
.preview-section + .preview-section { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.preview-section h3 { margin: 0 0 10px; color: var(--blue); font-size: 13px; }
.preview-row { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 4px 0; font-size: 13px; }
.preview-row dt { color: var(--muted); }
.preview-row dd { margin: 0; white-space: pre-wrap; word-break: break-word; }
.modal-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.modal-actions button:disabled { cursor: wait; opacity: .6; }
.submission-status { margin: 12px 0; }
.submission-status:empty { display: none; }
.upload-button { position: relative; }
.upload-button:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.upload-button input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.wide { width: min(1080px, calc(100% - 40px)); margin: 0 auto; }
.hero-kicker, .page-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin-left: auto; margin-right: auto; }
.process-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.process-card { min-height: 144px; display: flex; align-items: flex-start; gap: 18px; padding: 24px; text-align: left; }
.process-number { flex: 0 0 auto; width: 48px; height: 48px; margin: 0; border-radius: 12px; font-size: 16px; }
.process-card h3 { margin: 1px 0 7px; }

.about-page { min-height: calc(100vh - 65px); padding: 58px 0 88px; background: linear-gradient(145deg, #f8fbff 0%, #fff 46%); }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 70px; align-items: center; padding: 42px 0 64px; }
.about-hero h1 { margin: 0 0 22px; font-size: clamp(42px, 5vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.about-hero > div > p { max-width: 650px; margin: 0 0 18px; color: #475569; font-size: 17px; line-height: 1.75; }
.about-hero .contact-panel { margin: 0; padding: 30px; border-radius: 16px; box-shadow: 0 22px 55px rgba(37,99,235,.12); }
.about-actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.about-actions .info-panel { position: relative; min-height: 245px; margin: 0; padding: 32px; overflow: hidden; border-radius: 14px; }
.panel-number { display: block; margin-bottom: 34px; color: #94a3b8; font-size: 13px; font-weight: 800; letter-spacing: .12em; }
.about-actions h2 { max-width: 420px; font-size: 23px; }

.submit-page { padding: 50px 0 80px; background: #f8fafc; }
.submit-layout { width: min(1160px, calc(100% - 40px)); display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; margin: 0 auto; align-items: start; }
.submit-sidebar { position: sticky; top: 94px; }
.submit-sidebar .back-link { display: flex; width: max-content; margin-bottom: 24px; }
.submit-sidebar h1 { margin: 0 0 15px; font-size: 43px; line-height: 1.03; letter-spacing: -.05em; }
.submit-sidebar .submit-intro { font-size: 15px; line-height: 1.65; }
.progress-card { margin: 30px 0 22px; padding: 23px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.progress-card h2 { margin: 0 0 17px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; }
.progress-card ol { display: grid; gap: 15px; margin: 0; padding: 0; list-style: none; }
.progress-card li { display: flex; gap: 12px; align-items: center; color: #334155; font-size: 13px; }
.progress-card li span { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 10px; font-weight: 800; }
.submit-sidebar .warning-box { margin: 0; padding: 20px; border-radius: 12px; }
.submit-sidebar .warning-box li + li { margin-top: 6px; }
.submit-content { min-width: 0; }
.submit-content .form-card, .submit-content .upload-card { position: relative; margin-bottom: 20px; padding: 32px; border-radius: 12px; box-shadow: 0 8px 26px rgba(15,23,42,.04); }
.submit-content .form-card h2, .submit-content .upload-card h2 { padding-right: 54px; }
.section-index { position: absolute; top: 27px; right: 30px; color: #cbd5e1; font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field-grid .field + .field { margin-top: 0; }
.role-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.upload-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 22px; padding: 18px; border: 1px dashed #cbd5e1; border-radius: 9px; background: #f8fafc; }
.upload-row .upload-state { margin: 0; }
.submit-content .submit-row { margin-top: 26px; }
.submit-content .submit-row .button { min-height: 50px; min-width: 220px; }
.drawer-languages { display: flex; gap: 8px; margin: 4px 0 24px; }
.drawer-languages a { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: 12px; }
.drawer-languages a.active { color: #fff; border-color: #111827; background: #111827; }
.drawer-languages small { display: none; }

@media (max-width: 1080px) {
  .desktop-nav, .nav-button { display: none; }
  .header-actions { gap: 7px; }
  .menu-toggle { display: inline-grid; }
}

@media (max-width: 900px) {
  .wrap, .narrow { width: min(100% - 32px, 976px); }
  .desktop-nav, .nav-button { display: none; }
  .header-actions { gap: 7px; }
  .menu-toggle { display: inline-grid; }
  .brand { font-size: 20px; white-space: normal; line-height: 1.2; }
  .hero { min-height: 300px; padding: 45px 16px 56px; }
  .hero h1 { font-size: 31px; }
  .hero p { font-size: 17px; line-height: 1.55; }
  .hero-actions { gap: 16px; margin-top: 24px; }
  .hero-actions .button { flex: 1; min-width: 0; }
  .home-section { padding: 64px 0; }
  .section-heading { margin-bottom: 46px; }
  .section-heading h2 { font-size: 27px; }
  .section-heading p { font-size: 16px; }
  .help-grid, .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .help-card { min-height: 0; padding: 25px; }
  .help-card h3 { font-size: 23px; }
  .help-card .subtitle { min-height: 0; }
  .process-card { min-height: 0; padding: 25px; }
  .site-footer { padding: 48px 0 35px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .simple-page { padding-top: 48px; }
  .back-link { margin-bottom: 26px; }
  .simple-title { margin-left: 0; align-items: center; }
  .simple-title h1 { font-size: 28px; }
  .simple-copy { font-size: 16px; }
  .contact-panel, .info-panel { padding: 24px; }
  .contact-line { font-size: 15px; }
  .page-actions { margin-top: 47px; }
  .form-card, .upload-card { padding: 24px; }
  .submit-row .button { min-width: 170px; }
  .preview-row { grid-template-columns: 1fr; gap: 1px; }
}

@media (max-width: 1000px) {
  .about-hero { grid-template-columns: 1fr; gap: 30px; }
  .about-hero .contact-panel { max-width: 620px; }
  .submit-layout { grid-template-columns: 1fr; }
  .submit-sidebar { position: static; }
  .progress-card { display: none; }
  .submit-sidebar .warning-box { margin-top: 24px; }
}

@media (max-width: 680px) {
  .header-inner { gap: 8px; }
  .site-header .brand { min-width: 0; flex: 1; gap: 8px; font-size: 16px; }
  .site-header .brand span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .header-actions { flex: 0 0 auto; gap: 2px; }
  .language-trigger { width: 38px; min-width: 38px; padding: 0; }
  .language-trigger span { display: none; }
  .wide, .submit-layout { width: min(100% - 32px, 1160px); }
  .about-page { padding-top: 38px; }
  .about-hero { padding-top: 22px; }
  .about-hero h1 { font-size: 42px; }
  .about-actions { grid-template-columns: 1fr; }
  .submit-page { padding-top: 34px; }
  .submit-sidebar h1 { font-size: 36px; }
  .submit-content .form-card, .submit-content .upload-card { padding: 24px 20px; }
  .section-index { top: 22px; right: 20px; }
  .field-grid { grid-template-columns: 1fr; }
  .upload-row { align-items: stretch; flex-direction: column; }
  .upload-button { justify-content: center; }
  .submit-content .submit-row .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
