:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --ring: rgba(37,99,235,.15);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
}

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.logo img { max-width: 180px; height: auto; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-top: 24px;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

h1 {
  margin: .2rem 0 .6rem;
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
}
.subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: .5rem;
  color: var(--muted);
}

form#vehicleForm {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
}
@media (max-width: 560px) {
  form#vehicleForm { grid-template-columns: 1fr; }
}

input[type="text"]#regNumber {
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 16px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input[type="text"]#regNumber:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--ring);
  outline: none;
}

button {
  height: 44px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
button:hover { background: var(--accent-strong); }
button:active { transform: translateY(1px); }
button:disabled { opacity: .6; cursor: not-allowed; }

#result {
  margin-top: 16px;
  display: flex;
  justify-content: center; /* horisontalt centrer */
}

.info p {
  color: var(--muted);
}

footer {
  margin-top: 40px;
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  padding: 20px;
  border-top: 1px solid var(--border);
}
footer a {
  color: var(--text);
  text-decoration: none;
  margin-left: 6px;
  border-bottom: 1px dashed var(--border);
}
footer a:hover {
  border-bottom-style: solid;
}


/* Status result styles */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  margin-top: 12px;
  font-size: 15px;
}
.status--politi {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}
.status--ok {
  background: #dcfce7;
  border: 1px solid #86efac;
  color: #166534;
}
