/* Clean Proper — application form styles
   Mobile-first, accessible, no JS framework. */

:root {
  --navy: #1f3864;
  --navy-deep: #15274a;
  --accent: #2e75b6;
  --accent-soft: #e8f1fa;
  --ok: #1d8a4f;
  --warn: #b76e00;
  --err: #b3261e;
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;
  --border: #d8dee8;
  --border-strong: #b6becc;
  --text: #15182b;
  --text-soft: #4a5168;
  --text-muted: #7a8194;
  --shadow-sm: 0 1px 2px rgba(20, 30, 60, 0.04), 0 1px 1px rgba(20, 30, 60, 0.04);
  --shadow-md: 0 4px 16px rgba(20, 30, 60, 0.06), 0 2px 4px rgba(20, 30, 60, 0.04);
  --radius: 10px;
  --radius-sm: 6px;
  --container: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-soft);
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: -9999px; top: -9999px;
}
.skip:focus {
  left: 16px; top: 16px; background: var(--navy); color: #fff;
  padding: 8px 12px; border-radius: 6px; z-index: 10;
}

/* Header */
.site-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 5;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--navy);
}
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
}
.brand-name { font-weight: 600; font-size: 17px; }

.lang-toggle { display: inline-flex; gap: 4px; }
.lang-btn {
  appearance: none; border: 1px solid var(--border);
  background: #fff; color: var(--text-soft);
  padding: 6px 10px; font-size: 13px; font-weight: 600;
  border-radius: 6px; cursor: pointer;
}
.lang-btn.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.lang-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Main */
.main { padding: 28px 20px 56px; }

/* Hero */
.hero { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.hero h1 { margin: 0 0 12px; font-size: 26px; line-height: 1.2; color: var(--navy); letter-spacing: -0.01em; }
.hero .lead { margin: 0 0 18px; color: var(--text-soft); font-size: 17px; }
.bullets { margin: 0 0 18px; padding-left: 22px; }
.bullets li { margin: 4px 0; }
.trust {
  background: var(--accent-soft); border: 1px solid #cfe2f3;
  border-radius: var(--radius-sm); padding: 12px 14px; font-size: 14px; color: var(--navy-deep);
}
.trust strong { display: block; margin-bottom: 2px; }

/* Form */
.form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 0; box-shadow: var(--shadow-sm); }
.form-intro { margin: 18px 24px 4px; color: var(--text-soft); font-size: 14px; }
.section { border: none; padding: 18px 24px; margin: 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section legend { font-weight: 700; color: var(--navy); font-size: 17px; padding: 0; margin-bottom: 10px; }

.field { margin: 14px 0; }
.field label, .field > label { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.field label em { color: var(--err); font-style: normal; font-weight: 600; }
.field small { display: block; color: var(--text-muted); font-size: 13px; margin-top: 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea,
.field select {
  width: 100%; max-width: 100%;
  padding: 11px 12px; font-size: 16px; line-height: 1.4;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-family: inherit;
}
.field textarea { resize: vertical; min-height: 80px; }
.field select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%237a8194' d='M3.5 5.5L8 10l4.5-4.5z'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(46,117,182,0.18);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--err); }
.field.invalid small.error { color: var(--err); margin-top: 6px; }

.callout {
  background: #fff8e8; border: 1px solid #f0d99a;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 14px; color: #5b4500; margin-bottom: 10px;
}

.radio-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group.radio-row { flex-direction: row; flex-wrap: wrap; gap: 8px; }
.radio {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-size: 15px;
  transition: background 0.1s, border-color 0.1s;
}
.radio.radio-row { flex: 1 1 80px; justify-content: center; }
.radio input { margin-top: 3px; }
.radio:hover { background: var(--accent-soft); border-color: #b8d3ea; }
.radio:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.radio span { line-height: 1.35; }

.radio-group.radio-row .radio { flex: 1 1 70px; justify-content: center; padding: 10px 6px; font-weight: 600; text-align: center; }

.chips { display: grid; gap: 8px; }
.chips.grid-2 { grid-template-columns: 1fr 1fr; }
.chip {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: #fff; cursor: pointer; font-size: 14px;
}
.chip:has(input:checked) { background: var(--accent-soft); border-color: var(--accent); }
.chip input { accent-color: var(--accent); }

.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

.actions { padding: 22px 24px 24px; }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 16px; font-size: 16px; font-weight: 600; color: #fff;
  background: var(--navy); border: none; border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:disabled { opacity: 0.7; cursor: not-allowed; }
.btn-spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255,255,255,0.45); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.privacy { color: var(--text-muted); font-size: 13px; margin: 12px 0 0; }

.form-error {
  margin: 0 24px 16px; padding: 12px 14px;
  background: #fdecea; border: 1px solid #f3b6b1; color: var(--err);
  border-radius: var(--radius-sm); font-size: 14px;
}

.thanks {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm); text-align: center;
}
.thanks h2 { color: var(--navy); margin-top: 0; }

.site-footer { padding: 24px 0 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer p { margin: 0; color: var(--text-muted); font-size: 13px; }
.site-footer a { color: var(--text-soft); }

/* Wider screens */
@media (min-width: 720px) {
  .hero { padding: 32px; }
  .hero h1 { font-size: 32px; }
  .section { padding: 22px 32px; }
  .form-intro { margin: 22px 32px 8px; }
  .actions { padding: 26px 32px 32px; }
  .btn-primary { width: auto; min-width: 240px; }
  .chips.grid-2 { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .btn-spinner { animation: none; }
}
