:root {
  --ink: #0b1d36;
  --ink-2: #33475f;
  --muted: #5b6b82;
  --line: #e2e8f1;
  --line-2: #eef2f7;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --navy: #001e44;
  --navy-2: #0a2c5c;
  --sky: #1a68c4;
  --sky-bright: #2f8cf0;
  --sky-2: #e8f2fe;
  --sky-3: #cfe4fd;
  --ice: #9fd0ff;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 29, 54, .05), 0 8px 24px -12px rgba(11, 29, 54, .14);
  --shadow-lg: 0 2px 4px rgba(11, 29, 54, .04), 0 24px 60px -24px rgba(0, 30, 68, .28);
  --font: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.015em; line-height: 1.2; font-family: "Bricolage Grotesque", var(--font); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px;
  padding: 0 20px; border-radius: 999px; border: 1px solid transparent; cursor: pointer; font-weight: 600;
  font-size: 15px; background: var(--sky); color: #fff; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:hover { background: #155aab; text-decoration: none; box-shadow: 0 6px 16px -10px rgba(11, 29, 54, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--line-2); box-shadow: none; }
.btn.navy { background: var(--navy); }
.btn.navy:hover { background: var(--navy-2); }
.btn.danger { background: var(--bad); }
.btn.small { min-height: 36px; padding: 0 14px; font-size: 14px; }

.field { display: grid; gap: 6px; margin-bottom: 16px; align-content: start; }
.field > span { font-weight: 600; font-size: 14px; color: var(--ink); }
.field small { color: var(--muted); font-size: 13px; }
.input, .field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid #cdd7e4; border-radius: 10px;
  background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 96px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sky); box-shadow: 0 0 0 4px rgba(47, 140, 240, .15);
}
.error-msg { color: var(--bad); font-size: 14px; font-weight: 500; min-height: 20px; }
.notice {
  padding: 12px 16px; border-radius: 12px; background: var(--sky-2); color: var(--navy); font-size: 14px;
  border: 1px solid var(--sky-3);
}
.notice.bad { background: #fef2f2; border-color: #fecaca; color: #991b1b; }

.icon { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.spinner {
  width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--sky-3); border-top-color: var(--sky);
  animation: spin .8s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
