:root {
  --blue: #1d4e89;
  --green: #1a7a5e;
  --ink: #23303a;
  --muted: #6b7785;
  --border: #d5dbe1;
  --bg: #f4f6f8;
  --error: #b3261e;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}

.site-header {
  text-align: center;
  margin-bottom: 32px;
}

.site-header img {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: var(--blue);
}

.required-note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 20px;
}

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

.field { margin-bottom: 18px; }

.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.name-row {
  display: flex;
  gap: 12px;
}

.name-row > div { flex: 1; }

.sublabel {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 4px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 137, 0.15);
}

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

/* Honeypot — hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

button {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 12px 28px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

button:hover { background: #163c6b; }

.result {
  text-align: center;
  padding: 8px 0;
}

.result.success h1 { color: var(--green); }
.result.error h1 { color: var(--error); }

.result ul {
  display: inline-block;
  text-align: left;
  color: var(--error);
}

.back-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover { text-decoration: underline; }

.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 32px;
}

@media (max-width: 480px) {
  .name-row { flex-direction: column; gap: 0; }
}
