:root {
  --ink: #17263b;
  --muted: #65748a;
  --line: #d9e2ec;
  --paper: #f7f9fc;
  --white: #fff;
  --green: #1f5fae;
  --green-dark: #174a89;
  --green-soft: #edf4fb;
  --amber: #1f5fae;
  --danger: #a23b36;
  --shadow: 0 16px 40px rgba(23, 38, 59, .06);
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.public-page { min-height: 100vh; background: var(--paper); }
.topbar { height: 76px; padding: 0 max(24px, calc((100vw - 1180px) / 2)); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: var(--white); }
.brand-lockup, .topbar-actions, .secure-note, .progress-meta, .step-labels, .subsection-title, .choice-group, .step-actions, .site-footer { display: flex; align-items: center; }
.brand-lockup { gap: 12px; }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: .01em; }
.brand-lockup small { margin-top: 2px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--white); background: var(--green); border-radius: 4px; font: 800 13px Manrope, sans-serif; letter-spacing: .08em; }
.topbar-actions { gap: 6px; }
.language-switch, .admin-link { border: 0; background: transparent; color: var(--muted); padding: 8px 9px; font-size: 12px; cursor: pointer; text-decoration: none; }
.language-switch.active { color: var(--green); font-weight: 700; }
.admin-link { margin-left: 8px; padding-left: 16px; border-left: 1px solid var(--line); }
.form-shell { max-width: 880px; margin: 0 auto; padding: 56px 24px 80px; }
.intro-panel { display: flex; justify-content: space-between; gap: 40px; align-items: end; padding-bottom: 36px; }
.eyebrow { margin: 0 0 14px; color: var(--amber); font-size: 11px; font-weight: 700; letter-spacing: .17em; }
h1, h2 { font-family: Manrope, sans-serif; }
h1 { margin: 0; font-size: clamp(30px, 5vw, 46px); line-height: 1.08; letter-spacing: -.02em; }
.intro-copy { max-width: 590px; margin: 18px 0 0; color: var(--muted); font-size: 15px; line-height: 1.75; }
.secure-note { max-width: 230px; gap: 9px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.secure-dot { flex: 0 0 8px; width: 8px; height: 8px; background: var(--green); border-radius: 50%; }
.progress-strip { padding: 18px 0 28px; border-top: 1px solid var(--line); }
.progress-meta { justify-content: space-between; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.progress-track { height: 3px; margin: 12px 0 14px; overflow: hidden; background: #dfe9e4; }
.progress-track span { display: block; width: 16.66%; height: 100%; background: var(--green); transition: width .25s ease; }
.step-labels { justify-content: space-between; gap: 10px; color: #94a19b; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.step-labels span.active { color: var(--green); }
.visa-form { position: relative; }
.form-step { display: none; min-width: 0; border: 0; padding: 0; margin: 0; animation: rise .3s ease both; }
.form-step.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
.section-heading { display: flex; gap: 18px; margin: 6px 0 28px; }
.section-number { color: var(--amber); font: 700 12px Manrope, sans-serif; letter-spacing: .1em; padding-top: 5px; }
h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.section-heading p { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.field-grid { display: grid; gap: 20px; }
.field-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; min-width: 0; flex-direction: column; gap: 8px; color: var(--ink); font-size: 12px; font-weight: 700; }
.field.full { grid-column: 1 / -1; }
.field small, .field-note { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
input, textarea, select { width: 100%; border: 1px solid var(--line); border-radius: 0; outline: 0; background: var(--white); color: var(--ink); padding: 13px 14px; font-size: 14px; transition: border-color .2s, box-shadow .2s; }
input:focus, textarea:focus, select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(20,90,69,.1); }
textarea { resize: vertical; min-height: 82px; }
.subsection { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
.subsection-title { gap: 10px; margin-bottom: 20px; color: var(--green-dark); font: 700 12px Manrope, sans-serif; text-transform: uppercase; letter-spacing: .09em; }
.mini-number { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid var(--green); color: var(--green); font-size: 10px; }
.upload-box { display: flex; justify-content: space-between; gap: 28px; align-items: center; margin-top: 30px; padding: 22px; background: var(--green-soft); border: 1px solid #d4e3f2; }
.upload-box > div { display: grid; grid-template-columns: 28px 1fr; align-items: start; column-gap: 12px; }
.upload-box strong { font-size: 13px; }
.upload-box p { grid-column: 2; margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.upload-icon { grid-row: span 2; display: grid; place-items: center; width: 28px; height: 28px; color: var(--white); background: var(--green); font-weight: 700; }
.upload-box input { max-width: 300px; border: 0; padding: 10px 0; background: transparent; font-size: 11px; }
.question-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.question-row { display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.question-row strong { max-width: 590px; font-size: 13px; line-height: 1.5; }
.choice-group { flex-wrap: wrap; justify-content: end; gap: 8px 14px; }
.choice-group label { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; white-space: nowrap; cursor: pointer; }
.choice-group input, .consent-line input { width: auto; accent-color: var(--green); }
.conditional { display: none; margin: 18px 0 0; padding-left: 14px; border-left: 2px solid var(--amber); }
.conditional.visible { display: flex; }
.step-actions { justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.button { min-height: 45px; border: 1px solid transparent; border-radius: 0; padding: 11px 18px; font-size: 12px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: var(--white); background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { color: var(--green); border-color: var(--green); background: transparent; }
.button.ghost:hover { background: var(--green-soft); }
.review-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-bottom: 24px; background: var(--line); border: 1px solid var(--line); }
.review-item { min-width: 0; padding: 15px; background: var(--white); }
.review-item small, .review-item strong { display: block; }
.review-item small { margin-bottom: 5px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.review-item strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.consent-line { display: flex; align-items: start; gap: 10px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.form-message { min-height: 20px; margin-top: 18px; color: var(--danger); font-size: 12px; }
.success-panel { margin-top: 20px; padding: 64px 30px; text-align: center; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--green); box-shadow: var(--shadow); }
.success-mark { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 22px; color: var(--white); background: var(--green); border-radius: 4px; font-size: 24px; }
.success-panel h2 { max-width: 520px; margin: 0 auto; font-size: 27px; }
.success-panel p:not(.eyebrow) { color: var(--muted); font-size: 13px; }
.success-panel strong { display: block; margin: 20px 0 28px; color: var(--green); font: 800 18px Manrope, sans-serif; letter-spacing: .08em; }
.site-footer { max-width: 920px; justify-content: space-between; gap: 20px; margin: 0 auto; padding: 24px; color: var(--muted); font-size: 10px; }
.site-footer a { color: var(--green); text-decoration: none; }
[hidden] { display: none !important; }
@media (max-width: 700px) {
  .topbar { position: sticky; top: 0; z-index: 5; height: 64px; padding: 0 16px; }
  .brand-mark { width: 34px; height: 34px; border-radius: 4px; }
  .brand-lockup { gap: 9px; }
  .brand-lockup strong { font-size: 13px; }
  .brand-lockup small { font-size: 9px; }
  .topbar-actions { gap: 0; }
  .language-switch { min-width: 48px; min-height: 42px; padding: 8px 4px; }
  .admin-link { display: none; }
  .form-shell { padding: 34px 16px calc(108px + env(safe-area-inset-bottom)); }
  .intro-panel { display: block; padding-bottom: 30px; }
  .secure-note { margin-top: 25px; }
  .intro-copy { margin-top: 14px; font-size: 13px; line-height: 1.65; }
  .step-labels { gap: 5px; }
  .step-labels span { min-width: 0; overflow: hidden; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
  .section-heading { gap: 12px; margin-bottom: 24px; }
  .section-number { padding-top: 3px; }
  h2 { font-size: 22px; }
  .section-heading p { font-size: 12px; line-height: 1.5; }
  .field-grid.two, .review-summary { grid-template-columns: 1fr; }
  .field-grid { gap: 16px; }
  .field { gap: 7px; font-size: 12px; }
  input, textarea, select { min-height: 48px; padding: 13px 12px; font-size: 16px; }
  textarea { min-height: 96px; }
  .subsection { margin-top: 28px; padding-top: 22px; }
  .upload-box { margin-top: 24px; padding: 18px; }
  .question-row { display: block; }
  .choice-group { justify-content: start; gap: 8px; margin-top: 14px; }
  .choice-group label { min-height: 42px; padding: 7px 11px; border: 1px solid var(--line); background: var(--white); }
  .choice-group input { width: 17px; height: 17px; }
  .upload-box { display: block; }
  .upload-box input { max-width: 100%; margin-top: 14px; }
  .step-actions { position: sticky; bottom: 0; z-index: 4; margin: 34px -16px -108px; padding: 13px 16px calc(13px + env(safe-area-inset-bottom)); background: rgba(247,250,247,.97); box-shadow: 0 -8px 20px rgba(23,37,31,.06); }
  .step-actions .button { flex: 1; min-height: 48px; }
  .step-actions .ghost { flex: 0 0 92px; }
  .site-footer { display: block; line-height: 2; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
