:root {
  --bg: #f6f7f9;
  --fg: #1c1f24;
  --muted: #5b6472;
  --accent: #2f6feb;
  --accent-dark: #2559c9;
  --border: #d9dee5;
  --card: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 16px;
}

.lead {
  color: var(--muted);
  margin: 0 0 32px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

input,
textarea {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: inherit;
  width: 100%;
}

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

textarea { resize: vertical; }

/* Kryssruta för marknadsföringssamtycke – rad i stället för kolumn */
.consent {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  color: var(--muted);
}

.consent input {
  width: auto;
  margin-top: 3px;
  flex: none;
}

.or {
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

button {
  font: inherit;
  font-weight: 600;
  padding: 12px 16px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

button:hover { background: var(--accent-dark); }

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

/* Honeypot – helt dolt och utanför tab-ordningen */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.note {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px;
}

.note a { color: var(--accent); }
