/*
  Final overrides for the current support guide.
  Keep new polish and layout fixes here so the older bundled stylesheet can stay stable.
*/

:root {
  --brand-blue: rgb(0, 86, 149);
  --brand-blue-hover: rgb(0, 99, 173);
  --site-header-h: 92px;
  --sticky-progress-top: 104px;
  --solution-scroll-offset: 190px;
}

body {
  overflow-x: hidden;
}

header {
  background: var(--brand-blue);
}

.solution-wrap.visible .progress-wrap,
.solution-wrap.visible .progress-bar-wrap {
  top: var(--sticky-progress-top);
  z-index: 130;
}

.solution-wrap,
.solution-wrap .sol-card {
  scroll-margin-top: var(--solution-scroll-offset);
}

.official-site-banner {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  width: min(100%, 760px);
  max-width: calc(100% - 48px);
  margin: 26px auto 42px;
  padding: 18px 28px;
  border-radius: 14px;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 86, 149, 0.18);
}

.official-site-banner:hover {
  background: var(--brand-blue-hover);
}

.official-site-copy,
.official-site-action {
  color: #fff;
}

.official-site-copy {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.45;
}

.official-site-action {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.official-site-action::after {
  content: "→";
  margin-left: 6px;
  font-size: 18px;
  line-height: 1;
}

.step-check {
  color: #526879;
  border-color: #b8c8d3;
  background: #f8fafc;
}

.step-check.done {
  color: #fff;
  border-color: #17875b;
  background: #17875b;
}

.step-check.done::before {
  background: #fff;
  border-color: #fff;
}

.step-check.done::after {
  left: 23px;
  top: 14px;
}

@media (max-width: 760px) {
  :root {
    --site-header-h: 148px;
    --sticky-progress-top: 154px;
    --solution-scroll-offset: 238px;
  }

  .header-top {
    grid-template-columns: minmax(90px, 1fr) minmax(108px, auto);
    grid-template-areas:
      "logo dealer"
      "dial dial";
    gap: 10px 14px;
    min-height: var(--site-header-h);
    padding: 12px 18px 14px;
  }

  .logo-wrap {
    grid-area: logo;
  }

  .dealer-badge {
    grid-area: dealer;
    justify-self: end;
    max-width: 160px;
  }

  .header-dial {
    grid-area: dial;
    justify-self: center;
    width: min(100%, 300px);
  }

  .solution-wrap.visible .progress-wrap,
  .solution-wrap.visible .progress-bar-wrap {
    top: var(--sticky-progress-top);
    margin-bottom: 32px;
  }

  .solution-wrap.visible .sol-card {
    margin-top: 36px;
  }

  .step-title {
    grid-template-columns: 1fr;
    row-gap: 14px;
  }

  .step-check {
    justify-self: end;
  }

  .official-site-banner {
    flex-direction: column;
    gap: 6px;
    width: calc(100% - 32px);
    max-width: 560px;
    margin: 22px auto 36px;
    padding: 16px 18px;
    border-radius: 12px;
    text-align: center;
  }

  .official-site-copy {
    font-size: 15px;
  }

  .official-site-action {
    font-size: 14px;
  }
}

@media (max-width: 390px) {
  :root {
    --site-header-h: 150px;
    --sticky-progress-top: 156px;
    --solution-scroll-offset: 242px;
  }

  .official-site-banner {
    width: 100%;
    max-width: 100%;
    margin: 18px auto 32px;
    padding: 15px 14px;
  }

  .official-site-copy,
  .official-site-action {
    font-size: 14px;
  }
}
