/* Tiggo 5x & 5X Pro Safety Inspection Campaign: VIN check and its results.
   Roboto like the rest of the site; headlines in Roboto Condensed, the face of Chery's own banners. */

.si {
  --si-red: #c4132a;
  --si-red-dark: #9e0f22;
  --si-ink: #222222;
  --si-text: #4a4a4a;
  --si-muted: #757575;
  --si-rule: #dddddd;
  --si-page: #f5f5f5;
  --si-green: #1e7b3c;
  --si-navy: #1d4f91;

  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: var(--si-ink);
  background-color: var(--si-page);
  /* A faint paper grain over a soft light-to-grey wash */
  background-image:
    url(/assets/safety-inspection/grain-d5d9609ff0fb2cd97130dd63f024a9070f187c2bd970bdb5815282ecf4b59431.svg),
    linear-gradient(180deg, #fafafa 0%, #ececec 100%);
  min-height: calc(100vh - 66px);
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vh, 64px) clamp(16px, 3vw, 40px);
}

.si-sheet {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  background: #fff;
  border-top: 4px solid var(--si-red);
  border-radius: 4px;
}
.si-sheet:has(.si-primary--clear) { border-top-color: var(--si-green); }
.si-sheet:has(.si-primary--included) { border-top-color: var(--si-navy); }

.si-primary { padding: clamp(28px, 4vw, 52px); }

.si-secondary {
  padding: clamp(28px, 4vw, 52px);
  border-left: 1px solid var(--si-rule);
}

.si-title {
  margin: 0 0 12px;
  font-family: "Roboto Condensed", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--si-ink);
}
.si-primary--clear .si-title { color: var(--si-green); }
.si-primary--included .si-title { color: var(--si-navy); }

.si-lead {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.6;
  color: var(--si-text);
}

.si-vin {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--si-muted);
}
.si-vin span {
  font-weight: 500;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--si-ink);
}

/* VIN form */
.si-form { margin-top: 28px; max-width: 540px; }

.si-label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--si-ink);
}

.si-field { display: flex; }

.si-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #bdbdbd;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
  text-transform: uppercase;
  color: var(--si-ink);
  background: #fff;
}
.si-input::placeholder {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: #9e9e9e;
}
.si-input:focus {
  outline: 0;
  border-color: var(--si-ink);
  box-shadow: inset 0 0 0 1px var(--si-ink);
}

.si-hint {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--si-muted);
}

/* Buttons and links */
.si-btn {
  display: inline-block;
  padding: 12px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--si-red);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.si-btn:hover { background: var(--si-red-dark); color: #fff; }
.si-btn:focus-visible { outline: 2px solid var(--si-ink); outline-offset: 2px; }

.si-btn--quiet {
  background: #fff;
  color: var(--si-ink);
  box-shadow: inset 0 0 0 1px #bdbdbd;
}
.si-btn--quiet:hover { background: var(--si-page); color: var(--si-ink); }

.si-submit { border-radius: 0 4px 4px 0; white-space: nowrap; }

.si-link {
  color: var(--si-ink);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.si-link:hover { color: var(--si-red); }

.si-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

/* Second column */
.si-subtitle {
  margin: 0 0 14px;
  font-family: "Roboto Condensed", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--si-ink);
}

.si-note {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--si-text);
}

.si-facts,
.si-steps {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.si-facts li,
.si-steps li {
  padding: 13px 0;
  border-top: 1px solid var(--si-rule);
  font-size: 15px;
  line-height: 1.55;
  color: var(--si-text);
}
.si-facts li:last-child,
.si-steps li:last-child { border-bottom: 1px solid var(--si-rule); }
.si-facts strong,
.si-steps strong { color: var(--si-ink); font-weight: 500; }

.si-steps { counter-reset: si-step; }
.si-steps li {
  counter-increment: si-step;
  position: relative;
  padding-left: 30px;
}
.si-steps li::before {
  content: counter(si-step);
  position: absolute;
  left: 0;
  top: 12px;
  font-family: "Roboto Condensed", Roboto, Helvetica, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--si-navy);
}

/* Tablet and phone: one column */
@media only screen and (max-width: 992px) {
  .floating-action-button { display: none; }

  .si { align-items: flex-start; min-height: 0; }
  .si-sheet { grid-template-columns: 1fr; }
  .si-secondary { border-left: 0; border-top: 1px solid var(--si-rule); }
  .si-form { max-width: none; }
}

@media only screen and (max-width: 576px) {
  .si { padding: 14px 10px 28px; }
  .si-primary, .si-secondary { padding: 24px 18px; }
  .si-field { flex-direction: column; }
  .si-input { border-right: 1px solid #bdbdbd; border-radius: 4px 4px 0 0; }
  .si-submit { border-radius: 0 0 4px 4px; }
  .si-actions { flex-direction: column; align-items: stretch; text-align: center; gap: 14px; }
}
