:root {
  --bg: #0f1419;
  --card: #1a2129;
  --fg: #e6edf3;
  --muted: #9aa7b4;
  --border: #2d3742;
  --accent: #3b82f6;
  --accent-fg: #ffffff;
  --error: #f87171;
  --ok: #4ade80;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

.card {
  width: 100%;
  max-width: 640px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}

h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
}

.intro {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid var(--accent);
  border-color: var(--accent);
}

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

fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
}

.option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.option input {
  width: auto;
}

button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 0.4rem;
  border: 1px solid var(--muted);
  border-radius: 50%;
  font-size: 0.72rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: var(--muted);
  cursor: help;
  vertical-align: middle;
}

.info-btn:hover,
.info-btn:focus {
  color: var(--accent);
  border-color: var(--accent);
  outline: none;
}

.detect-btn {
  width: auto;
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 500;
}

.detect-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.status {
  margin: 1rem 0 0;
  min-height: 1.5em;
}

.status.error {
  color: var(--error);
}

.status.ok {
  color: var(--ok);
}

.field-error {
  color: var(--error);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* Honeypot — visually and from assistive tech, but present in the DOM. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
