/* VOID form — shared styles (aligned with voidsys.tech) */

:root {
  --bg:            #0a0a0a;
  --bg-elevated:   #141414;
  --bg-glass:      rgba(20, 20, 20, 0.72);
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --accent:        #f97316;
  --accent-hover:  #ea6c0a;
  --accent-soft:   rgba(249, 115, 22, 0.12);
  --accent-dim:    rgba(249, 115, 22, 0.12);
  --accent-glow:   rgba(249, 115, 22, 0.15);
  --cold:          #f0f0f0;
  --text:          #f0f0f0;
  --text-secondary:#a3a3a3;
  --text-dim:      #737373;
  --text-tertiary: #737373;
  --border:        rgba(255, 255, 255, 0.08);
  --border-lit:    rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.14);
  --ok:            #4ade80;
  --err:           #f87171;
  --max:           720px;
  --radius-sm:     12px;
  --radius-md:     20px;
  --radius-lg:     28px;
  --radius-pill:   980px;
  --sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 60px;
}

a { color: inherit; text-decoration: none; }

.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(249, 115, 22, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(249, 115, 22, 0.04) 0%, transparent 50%);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.logo { display: inline-flex; align-items: center; line-height: 0; }
.logo img { height: 22px; width: auto; display: block; }
.logo-inline img { height: 14px; width: auto; vertical-align: middle; }

.lang {
  display: inline-flex;
  background: var(--surface);
  border-radius: var(--radius-pill);
  padding: 3px;
  border: 1px solid var(--border);
}

.lang button {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.lang button.active {
  background: var(--text);
  color: var(--bg);
}

/* ── Header ── */
.head {
  text-align: center;
  padding: 48px 0 28px;
}

.logo-hero {
  margin-bottom: 24px;
  line-height: 0;
}

.logo-hero img {
  height: clamp(44px, 10vw, 64px);
  width: auto;
  max-width: min(280px, 78vw);
  display: inline-block;
}

.head .eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.head h1 {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--cold);
  font-size: clamp(1.65rem, 4.5vw, 2.35rem);
  line-height: 1.12;
  margin-bottom: 12px;
}

.head p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 48ch;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Progress ── */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.pdot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  transition: all 0.3s var(--ease);
  flex: 0 0 auto;
}

.pdot.active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.pdot.done {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
}

.pline {
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--border);
  transition: background 0.3s var(--ease);
}

.pline.done { background: var(--accent); }

.pcount {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-tertiary);
  text-align: center;
}

/* ── Form card ── */
.form-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-top: 20px;
}

.form-card::before { display: none; }

.vhint {
  margin-top: 20px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  transition: color 0.2s var(--ease);
}

.vhint:hover { color: var(--accent); }

.step { display: none; }
.step.active { display: block; animation: fade 0.4s var(--ease); }

@keyframes fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.step-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.step-title {
  font-family: var(--sans);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cold);
  margin-bottom: 28px;
}

/* ── Questions ── */
.q { margin-bottom: 28px; }

.q.highlight { position: relative; }

.q-label {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 16px;
  font-weight: 500;
  color: var(--cold);
  margin-bottom: 12px;
}

.q-label .req { color: var(--accent); }

.rel-tag {
  display: none;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(249, 115, 22, 0.2);
  padding: 3px 8px;
  border-radius: var(--radius-pill);
}

.q.highlight .rel-tag { display: inline-flex; }

/* ── Options ── */
.opts { display: grid; gap: 10px; }
.opts.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opts.cols-4 { grid-template-columns: repeat(4, 1fr); }
.opts.cards { grid-template-columns: repeat(2, 1fr); }

.opt {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 14px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 11px;
  transition: all 0.2s var(--ease);
  user-select: none;
  font-size: 15px;
  color: var(--text-secondary);
}

.opt:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.opt.sel {
  border-color: rgba(249, 115, 22, 0.35);
  background: var(--accent-soft);
  color: var(--cold);
}

.opt .ico {
  font-family: var(--mono);
  font-size: 1.25rem;
  color: var(--accent);
  line-height: 1;
}

.opt .ck {
  margin-left: auto;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1.5px solid var(--border-strong);
  flex: 0 0 auto;
  position: relative;
}

.opt.sel .ck {
  border-color: var(--accent);
  background: var(--accent);
}

.opt.sel .ck::after {
  content: "✓";
  position: absolute;
  inset: 0;
  color: #0a0a0a;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  line-height: 16px;
}

.opt.center { justify-content: center; text-align: center; }

.opt.card-opt {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 20px 18px;
  border-radius: var(--radius-md);
}

.opt.card-opt .ico { font-size: 1.5rem; }

/* ── Fields ── */
.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.field label .req { color: var(--accent); }

input[type=text],
input[type=email],
input[type=tel],
textarea,
select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--cold);
  font-family: var(--sans);
  font-size: 16px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(249, 115, 22, 0.45);
  background: var(--surface-hover);
}

/* Visible keyboard focus indicator (WCAG 2.4.7) — the option "cards" are
   keyboard-operable (role=button + tabindex set at runtime), so they and the
   nav/lang/CTA controls need a focus ring that mouse hover does not provide. */
.opt:focus-visible,
.card-opt:focus-visible,
.btn:focus-visible,
.lang button:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select { cursor: pointer; }

.other-input { margin-top: 10px; display: none; }
.other-input.show { display: block; }

/* ── Buttons ── */
.actions {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  border: none;
  transition: all 0.25s var(--ease);
}

.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-primary {
  background: var(--accent);
  color: #0a0a0a;
  flex: 1;
}

.btn-primary:not(:disabled):hover {
  background: var(--accent-hover);
  transform: scale(1.01);
}

.btn-ghost {
  background: var(--surface);
  color: var(--cold);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--accent);
}

/* ── GDPR ── */
.gdpr-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
  cursor: pointer;
  margin-bottom: 16px;
}

.gdpr-link { color: var(--accent); text-decoration: underline; }
.gdpr-link:hover { color: var(--accent-hover); }

.gdpr-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ── Errors ── */
.err-msg {
  display: none;
  margin-top: 16px;
  font-size: 14px;
  color: var(--err);
  background: rgba(248, 113, 113, 0.08);
  border: 1px solid rgba(248, 113, 113, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  line-height: 1.5;
}

.err-msg.show { display: block; }
.err-msg a { color: var(--accent); text-decoration: underline; }

/* ── Confirmation ── */
.term {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
  line-height: 2;
  padding: 8px 4px;
}

.term .line { display: block; }
.term .ok { color: var(--ok); }
.term .dim { color: var(--text-tertiary); }

.term .cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--accent);
  animation: blink 1.1s steps(1) infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}

/* ── Footer ── */
footer {
  text-align: center;
  color: var(--text-tertiary);
  font-size: 13px;
  margin-top: 40px;
}

footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .form-card { padding: 26px 20px; }
  .opts.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .opts.cards { grid-template-columns: 1fr; }
  .actions { flex-direction: column-reverse; }
  .btn-ghost { width: 100%; }
  .head { padding: 36px 0 20px; }
  .logo-hero img { height: clamp(40px, 12vw, 52px); }
}
