:root {
  --bg: #f3f6f8;
  --navy: #0d2137;
  --accent: #00b7c7;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #e3e8ee;
  --over: #ef4444;
  --ok: #22c55e;
  --font: "Inter", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
h1, h2 { font-family: inherit; font-weight: 700; margin: 0 0 12px; letter-spacing: -0.02em; }
.kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: var(--navy);
  color: #fff;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent); color: #04262b;
  display: grid; place-items: center;
  font-weight: 800;
}
.who { margin: 0; color: #9fb0c3; }
.card {
  width: min(860px, calc(100% - 24px));
  margin: 20px auto 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.wide { grid-column: 1 / -1; }
label, .hint { display: grid; gap: 6px; font-size: 0.82rem; font-weight: 600; color: var(--muted); }
input, select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  margin: 8px 0;
  font-weight: 500;
}
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); }
.btn {
  min-height: 42px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: var(--accent); border-color: transparent; color: #fff; }
.nav { display: flex; justify-content: space-between; margin-top: 18px; }
.steps {
  display: flex;
  gap: 8px;
  list-style: none;
  padding: 0 12px;
  margin: 16px auto 0;
  width: min(860px, calc(100% - 24px));
  overflow: auto;
}
.steps li {
  flex: 1;
  min-width: 110px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
}
.steps li.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.error { color: var(--over); }
.visa-box { padding: 12px; border: 1px dashed var(--line); border-radius: 10px; }
#sig {
  width: 100%;
  height: 180px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  touch-action: none;
}
.hint { margin-bottom: 12px; font-weight: 500; }

@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; }
  .wide { grid-column: auto; }
}
