/* Global styles */
:root {
  color-scheme: light;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #222;
  background: #f5f7fb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f5f7fb;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.top-strip {
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.top-strip-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 10px 20px 0;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: stretch;
  gap: 24px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark-left {
  justify-self: start;
  align-self: end;
}

.brand-mark-right {
  justify-self: end;
  align-self: end;
}

.brand-mark img {
  height: 82px;
  width: auto;
}

.brand-mark-right img {
  height: 62px;
}

.language-switcher {
  display: flex;
  gap: 10px;
  justify-self: center;
  align-self: center;
}

.language-link {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
}

.language-link.is-active {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

.site-footer {
  text-align: center;
  color: #555;
}

.site-footer {
  margin-top: 40px;
  font-size: 0.95rem;
}

.hero,
.result-page {
  background: #ffffff;
  border: 1px solid #e3e9f2;
  border-radius: 22px;
  padding: 36px;
  box-shadow: 0 18px 45px rgba(14, 40, 84, 0.08);
}

.hero-title-block {
  text-align: center;
  margin-bottom: 28px;
}

.hero-eyebrow {
  margin: 0 0 10px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6b7280;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.1rem, 3.4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-subtitle {
  margin: 12px 0 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #1d4b8f;
}

.hero-text {
  margin: 0 auto 28px;
  max-width: 760px;
  text-align: center;
  color: #4f5663;
  line-height: 1.8;
}

.form-card {
  display: grid;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

input[name="vin"] {
  flex: 1 1 300px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid #dbe3ef;
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}

input[name="vin"]:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

button[type="submit"] {
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

button[type="submit"]:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.alert,
.notification,
.card {
  border-radius: 18px;
  padding: 20px;
}

.alert {
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.notification {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  color: #0c4a6e;
}

.card {
  background: #f8fbff;
  border: 1px solid #dbeafe;
}

.card-row {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.card-row strong {
  display: block;
  margin-bottom: 6px;
  color: #1e293b;
}

.card-row p {
  margin: 0;
  color: #475569;
  line-height: 1.75;
}

.vin-info-card {
  margin-top: 20px;
}

.vin-info-header p {
  margin: 6px 0 0;
  color: #475569;
  line-height: 1.65;
}

.vin-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.vin-info-grid strong {
  display: block;
  margin-bottom: 6px;
  color: #1e293b;
}

.vin-info-grid p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.service-booking-link {
  color: #0f3f8c;
  font-style: italic;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.service-booking-link:hover {
  color: #0b2f68;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin-top: 32px;
  align-items: center;
}

.logo-tile {
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  display: grid;
  place-items: center;
  min-height: 78px;
}

.logo-tile img {
  max-height: 48px;
  max-width: 100%;
  object-fit: contain;
}

.logo-note {
  margin-top: 16px;
  font-size: 0.95rem;
  color: #64748b;
}

.result-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  color: #1e3a8a;
  font-weight: 600;
}

.result-actions a:hover {
  background: #eff6ff;
}

@media (max-width: 720px) {
  .app-shell {
    padding: 20px 16px 32px;
  }

  .top-strip-inner {
    padding: 10px 16px 0;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .brand-mark img {
    height: 68px;
  }

  .brand-mark-right img {
    height: 50px;
  }

  .language-switcher {
    justify-self: center;
  }

  .hero,
  .result-page {
    padding: 24px;
  }

  .input-group {
    flex-direction: column;
  }
}
