* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--fm-accent-text); }

.navbar {
  height: 64px;
  background: var(--fm-surface);
  border-bottom: 1px solid var(--fm-border);
  display: flex;
  align-items: center;
  padding: 0 24px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; display: block; }
.brand-name {
  font-family: var(--fm-font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-name span { color: var(--fm-accent-text); }

main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 20px 64px;
}

.label-caps {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fm-accent-text);
}

h1 {
  font-family: var(--fm-font-display);
  font-size: clamp(28px, 6vw, 40px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 8px 0 16px;
}

h2, h3 { font-family: var(--fm-font-display); font-weight: 500; letter-spacing: -0.01em; }

.intro { color: var(--fm-text-muted); font-size: 16px; margin-bottom: 32px; }

.card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px;
}

.field-label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }

.check-form { display: flex; gap: 12px; flex-wrap: wrap; }

.input {
  flex: 1;
  min-width: 200px;
  height: 48px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--fm-text);
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-md);
  transition: border-color var(--fm-duration-fast);
}
.input::placeholder { color: var(--fm-text-faint); }
.input:focus { border-color: var(--fm-forsbla); }
.input.input-error { border-color: var(--fm-error); }

.btn {
  font: inherit;
  font-weight: 500;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: var(--fm-radius-md);
  cursor: pointer;
  transition: background var(--fm-duration-fast), border-color var(--fm-duration-fast), color var(--fm-duration-fast);
}
.btn-primary { background: var(--fm-forsbla); color: var(--fm-on-accent); }
.btn-primary:hover { background: var(--fm-forsbla-hover); }
.btn-secondary {
  background: var(--fm-surface);
  color: var(--fm-text);
  border: 1px solid var(--fm-border-strong);
}
.btn-secondary:hover { border-color: var(--fm-forsbla); color: var(--fm-accent-text); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

.hint { font-size: 13px; color: var(--fm-text-muted); margin-top: 10px; }
.hint-error { color: var(--fm-error); font-size: 14px; margin-top: 10px; display: none; }

#result { margin-top: 24px; display: none; }

.result-card {
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px;
}
.result-card.ok   { border-left: 3px solid var(--fm-success); }
.result-card.warn { border-left: 3px solid var(--fm-warning); }
.result-card.miss { border-left: 3px solid var(--fm-error); }

.result-status { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.status-dot { width: 12px; height: 12px; border-radius: var(--fm-radius-full); flex-shrink: 0; }
.ok .status-dot { background: var(--fm-success); }
.warn .status-dot { background: var(--fm-warning); }
.miss .status-dot { background: var(--fm-error); }
.result-status h2 { font-size: 21px; }

.result-body { color: var(--fm-text-muted); }
.result-body strong { color: var(--fm-text); font-weight: 500; }

.participant-id {
  font-family: var(--fm-font-display);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  background: var(--fm-surface-alt);
  border-radius: var(--fm-radius-sm);
  padding: 2px 8px;
}

.doc-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.doc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fm-surface-alt);
  border-radius: var(--fm-radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fm-text);
}
.doc-list .check { color: var(--fm-accent-text); font-weight: 500; }

.interest-box {
  margin-top: 40px;
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 24px;
}
.interest-box h2 { font-size: 21px; margin-bottom: 8px; }
.interest-sub { color: var(--fm-text-muted); margin-bottom: 20px; }
.interest-box form { display: grid; gap: 16px; }

.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.valfri { font-weight: 400; color: var(--fm-text-muted); }

.interest-box input, .interest-box textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--fm-text);
  background: var(--fm-surface);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-md);
  padding: 12px 14px;
  transition: border-color var(--fm-duration-fast);
}
.interest-box input:focus, .interest-box textarea:focus {
  border-color: var(--fm-forsbla);
  outline: none;
}
.interest-box textarea { min-height: 96px; resize: vertical; }
.interest-box input::placeholder, .interest-box textarea::placeholder { color: var(--fm-text-faint); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.gdpr { font-size: 13px; color: var(--fm-text-muted); margin-top: 14px; }

.interest-thanks {
  display: none;
  align-items: center;
  gap: 14px;
}
.interest-thanks .success-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--fm-radius-full);
  background: var(--fm-forsbla);
  color: var(--fm-on-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.interest-thanks .success-text {
  font-family: var(--fm-font-display);
  font-weight: 500;
  color: var(--fm-text);
}

.explainer { margin-top: 40px; }
.explainer h2 { font-size: 21px; margin-bottom: 12px; }
.explainer p { color: var(--fm-text-muted); margin-bottom: 12px; }

footer {
  border-top: 1px solid var(--fm-border);
  color: var(--fm-text-muted);
  text-align: center;
  padding: 24px 20px;
  font-size: 14px;
}
footer strong { color: var(--fm-text); font-weight: 500; }
footer a { color: var(--fm-accent-text); text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .check-form .btn, .interest-box .btn { width: 100%; }
  .card, .result-card { padding: 20px; }
}
