/*
 * Styles that are specific to the VIN check page (templates/vin-check.html).
 * Loaded AFTER styles.css, which provides the design of all public pages (palette, Cabin font, header, footer,
 * .demo__box, .input, .btn, .result). Only what belongs to the VIN check lives here, and only with the
 * variables of styles.css, so all pages keep one look. No dark mode on purpose.
 * Served as a separate file because the page CSP (WebSecurityConfig) forbids inline styles.
 */

.vin-page .lead {
  margin: 0 0 2rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

/* Form hints and messages below the input row */
.vin-page .hint {
  margin: .75rem 0 0;
  font-size: .875rem;
  color: var(--text-muted);
}

.vin-page .field-error {
  margin: .5rem 0 0;
  font-weight: 600;
  color: var(--danger);
}

/* Result card: base layout (icon, border) is .result in styles.css; colours per status here.
   Class "status-<status in lower case>", see vin-check.html. */
.vin-page .result h2 {
  margin: 0 0 .35rem;
  font-size: .8125rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
}

.vin-page .result-status {
  margin: .35rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.status-for_sale {
  background: var(--ok-tint);
  border-color: var(--ok);
  color: var(--ok);
}
.status-for_sale::before { content: "\2713"; background: var(--ok); }

.status-not_for_sale,
.status-decommissioned,
.status-conflicting {
  background: #fff8e6;
  border-color: var(--amber);
  color: var(--navy);
}
.status-not_for_sale::before,
.status-decommissioned::before,
.status-conflicting::before { background: var(--amber); color: var(--navy); }

.status-stolen,
.status-embezzled {
  background: var(--danger-tint);
  border-color: var(--danger);
  color: var(--danger);
}
.status-stolen::before,
.status-embezzled::before { background: var(--danger); }

.status-unknown {
  background: var(--white);
  border-color: var(--blue-line);
  color: var(--navy);
}
.status-unknown::before { content: "i"; background: var(--blue); font-style: italic; }

.vin-page .disclaimer {
  margin-top: 2rem;
  font-size: .875rem;
  color: var(--text-muted);
}
