/*
 * Trimates Impact Front — flat, responsive styles for the signup
 * form, confirmation pages, and profile wizard (docs/features/001,
 * 002). No framework; consistent with the impact-base admin skin.
 */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --ink: #1f2933;
  --ink-soft: #616e7c;
  --line: #e4e7eb;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --ok: #16a34a;
  --error: #dc2626;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(31, 41, 51, .06);
  padding: 28px 26px;
  width: 100%;
  max-width: 460px;
}

.locale-switch {
  position: absolute;
  top: 12px;
  right: 16px;
  display: flex;
  gap: 10px;
  font-size: .875rem;
  color: var(--ink-soft);
}

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
}

p { color: var(--ink-soft); margin: 12px 0; }
p:first-of-type { margin-top: 0; }

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

blockquote {
  border-left: 3px solid var(--accent);
  background: #eff6ff;
  border-radius: 4px;
  margin: 14px 0;
  padding: 10px 14px;
  color: var(--ink);
}

form { margin-top: 16px; }

label {
  display: block;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 14px 0 6px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

input[type="radio"] { accent-color: var(--accent); margin-right: 6px; }

input[type="submit"],
a.button {
  display: inline-block;
  margin-top: 18px;
  padding: 11px 18px;
  min-height: 44px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

input[type="submit"]:hover,
a.button:hover { background: var(--accent-dark); color: #fff; }

p.error {
  background: #fee2e2;
  border-radius: 4px;
  color: var(--error);
  padding: 8px 12px;
  margin: 10px 0 0;
}

p.success {
  background: #dcfce7;
  border-radius: 4px;
  color: var(--ok);
  padding: 8px 12px;
}

fieldset {
  border: 0;
  padding: 0;
  margin: 14px 0 0;
}

fieldset legend {
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 6px;
}

fieldset label {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  color: var(--ink);
  margin: 4px 16px 0 0;
}

@media (max-width: 480px) {
  body { padding: 12px; }
  .card { padding: 20px 18px; }
}

/* Honeypot field for the newsletter signup: hidden from humans,
 * visible to naive bots (docs/features/001-newsletter-signup.org). */
.honeypot {
  position: absolute;
  left: -9999px;
}
