:root {
  --fg: #1a1a1a;
  --fg-muted: #555;
  --bg: #fff;
  --accent: #2563eb;
  --accent-fg: #fff;
  --error: #b00020;
  --success: #1f7a1f;
  --border: #d4d4d4;
  --bg-soft: #f6f7f9;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}

header, main, footer {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

header { border-bottom: 1px solid var(--border); }
header h1 { margin: 0 0 0.25rem; font-size: 1.6rem; }
header .lead { margin: 0; color: var(--fg-muted); }

main { padding-top: 2rem; }

.scaffold-warning {
  background: #fff7e0;
  border: 1px solid #f0c84a;
  color: #8a6300;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.intro { background: var(--bg-soft); padding: 0.75rem 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--fg-muted); }

form .field { margin-bottom: 1.25rem; }

label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

input[type="text"], input[type="email"], input[type="tel"] {
  width: 100%;
  padding: 0.7rem 0.8rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--fg);
  -webkit-appearance: none;
  appearance: none;
}

input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.hint {
  font-size: 0.85rem;
  color: var(--fg-muted);
  margin: 0.35rem 0 0;
}

.consent .checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}
.consent .checkbox input {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

/* Honeypot field — kept off-screen, NOT display:none (some bots avoid display:none). */
.hp {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button[type="submit"] {
  width: 100%;
  padding: 0.85rem;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-fg);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button[type="submit"]:disabled {
  opacity: 0.6;
  cursor: progress;
}
button[type="submit"]:hover:not(:disabled) {
  filter: brightness(0.95);
}

#status {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  display: none;
  font-size: 0.95rem;
}
#status.pending {
  display: block;
  background: var(--bg-soft);
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
#status.ok {
  display: block;
  background: #e6f4e6;
  color: var(--success);
  border: 1px solid #b6dfb6;
}
#status.err {
  display: block;
  background: #fbe9eb;
  color: var(--error);
  border: 1px solid #f0c0c5;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 3rem;
  font-size: 0.9rem;
  color: var(--fg-muted);
  text-align: center;
}
footer a { color: var(--fg-muted); text-decoration: underline; }

@media (min-width: 480px) {
  header, main, footer { padding-left: 1.5rem; padding-right: 1.5rem; }
  header h1 { font-size: 1.8rem; }
}
