/* Surface Guard — minimalist page: styles for the pieces the static design mock
   did not have, because they only exist once the page is wired to Django:
   the language selector, the LGPD consent checkbox, form field errors,
   Django messages, and the Turnstile widget. */

/* ─── Header: language selector next to [ Contact ] ─────────── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sg-lang form { margin: 0; }

.sg-lang ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sg-lang button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: none;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 3px 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.sg-lang button:hover { color: #fff; }

.sg-lang button.active {
  color: var(--primary);
  border-color: rgba(0, 255, 136, 0.3);
}

/* ─── LGPD consent checkbox ─────────────────────────────────── */
.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.form-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-consent label {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}

/* ─── Field errors ──────────────────────────────────────────── */
.form-input.is-invalid,
.form-textarea.is-invalid { border-color: var(--destructive); }

.field-error {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--destructive);
}

/* ─── Django messages / non-field errors ────────────────────── */
.form-alert {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.form-alert.success {
  border-color: rgba(0, 255, 136, 0.3);
  background: rgba(0, 255, 136, 0.05);
  color: #fff;
}

.form-alert.error {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.05);
  color: #fff;
}

.form-alert ul { list-style: none; margin: 0; padding: 0; }

/* ─── Turnstile ─────────────────────────────────────────────── */
.turnstile-wrap { min-height: 65px; }

/* The submit button is a block-level form control here, not a hero CTA. */
.contact-form .btn-primary { align-self: flex-start; }

/* ─── Footer: keep the legal line readable on narrow screens ── */
.footer-legal {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: rgba(113, 113, 122, 0.6);
  text-align: center;
}

@media (min-width: 640px) { .footer-legal { text-align: right; } }
