:root {
  color: #0b0e14;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 16px;
  --accent: #2440e6;
  --line: #cfd3dc;
  --muted: #555c69;
  --paper: #f4f5f7;
  --error: #b11935;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { padding: 3px; }
form { display: grid; gap: 17px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, legend { font-weight: 620; }
.optional { color: var(--muted); font-size: .78rem; font-weight: 400; }
input:not([type="radio"]):not([type="checkbox"]), select, textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: inherit;
  padding: 10px 12px;
  font: inherit;
}
textarea { resize: vertical; line-height: 1.45; }
.phone-row { display: grid; grid-template-columns: minmax(7.4rem, 8.5rem) minmax(8rem, 1fr); gap: 7px; }
.phone-row select { padding-inline: 6px; font-size: .84rem; }
.channel { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.channel legend { margin-bottom: 9px; padding: 0; }
.channel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.channel-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 10px;
  cursor: pointer;
}
.channel-grid label:has(:checked) { border-color: var(--accent); background: #f0f3ff; }
.check-row { display: flex; align-items: flex-start; gap: 8px; line-height: 1.45; }
label.check-row { cursor: pointer; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); flex: none; width: 17px; height: 17px; margin: 3px 0 0; cursor: pointer; }
.promo { color: var(--muted); font-size: .875rem; }
.promo input { accent-color: #656a75; }
.pilot-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid #b9c2ff;
  border-radius: 10px;
  background: #f0f3ff;
  padding: 12px;
}
.pilot-context strong { display: block; margin-bottom: 4px; }
.pilot-context p { color: var(--muted); font-size: .875rem; line-height: 1.45; }
a { color: inherit; text-underline-offset: .16em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button {
  justify-self: start;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  min-height: 46px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 620;
  cursor: pointer;
}
button:hover { background: #172db6; }
button:disabled { opacity: .65; cursor: wait; }
button.secondary {
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid #9ba1ad;
  background: transparent;
  color: inherit;
  font-size: .82rem;
}
button.secondary:hover { border-color: #555c69; background: #e8eaf0; }
p { margin: 0; }
.legal, .hint { color: var(--muted); font-size: .83rem; line-height: 1.5; }
.error, .status { color: var(--error); font-size: .875rem; }
.consent .error { display: block; margin: 5px 0 0 25px; }
[aria-invalid="true"] { border-color: var(--error) !important; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
@media (max-width: 410px) {
  .phone-row { grid-template-columns: 1fr; }
  .channel-grid { grid-template-columns: 1fr; }
  .pilot-context { flex-direction: column; }
  button[type="submit"] { justify-self: stretch; }
}
