/* First-party additions to the approved website stylesheet. The approved design (header, hero, footer, cards,
   colors) comes from site.css unchanged; this file only adds what the live site needs on top of it. */

:root {
  --wc-motion-fast: 160ms;
  --wc-motion-standard: 320ms;
  --wc-motion-ease: cubic-bezier(0.22, 0.75, 0.22, 1);
  --wc-motion-accent: #1777c8;
}

html .wc-page[data-wc-current='true'] {
  display: block !important;
  visibility: visible !important;
}

/* Scroll and loading bars: rendered only while siteFeatures.loadingBar is on (frontend/src/lib/site-features.ts). */
.wc-scroll-progress,
.wc-route-progress {
  position: fixed;
  inset: 0 0 auto;
  pointer-events: none;
}

.wc-scroll-progress {
  z-index: 1200;
  height: 3px;
}

.wc-scroll-progress__bar,
.wc-route-progress__bar {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(var(--wc-scroll-progress, 0));
  transform-origin: var(--wc-scroll-progress-origin, left center);
  background: linear-gradient(90deg, #1777c8, #42a6cf 68%, #e8ad65);
}

.wc-route-progress {
  z-index: 1201;
  height: 3px;
  opacity: 0;
  transition: opacity 120ms ease;
}

.wc-route-progress__bar {
  transform: scaleX(0.04);
  transition: transform 7s cubic-bezier(0.12, 0.72, 0.2, 1);
}

.wc-route-progress[data-active='true'] {
  opacity: 1;
}

.wc-route-progress[data-active='true'] .wc-route-progress__bar,
html[data-wc-route-loading='true'] .wc-route-progress__bar {
  transform: scaleX(0.82);
}

html[data-wc-route-loading='true'] .wc-route-progress {
  opacity: 1;
}

.wc-route-progress[data-complete='true'] .wc-route-progress__bar {
  transform: scaleX(1);
  transition-duration: 180ms;
}

/* A clearly visible keyboard focus ring on every link and control. */
.wc-page :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid #1976bd;
  outline-offset: 3px;
}

/* A footer social label without an entered profile address is plain text, not a dead link. */
.wc-page .social-item:not([href]) {
  cursor: default;
}

/* Free Case Evaluation: the confirmation card that replaces the form once the server has saved the inquiry. */
.wc-page .form-card.wc-evaluation-thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  align-self: start;
  border: 2px solid #19b37a;
  padding: 36px 32px 40px;
  outline: none;
}

.wc-evaluation-thanks__check {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: #e6f7ef;
  color: #0f8a5f;
  font-size: 22px;
  font-weight: 700;
}

.wc-page .wc-evaluation-thanks h2 {
  margin: 4px 0 0;
  color: #0b1736;
  font-size: clamp(26px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.wc-page .wc-evaluation-thanks p {
  max-width: 34rem;
  margin: 0;
  color: #5b6680;
  font-size: 15px;
  line-height: 1.65;
}

/* The checkout status box keeps its heading on the same line as the sentence, as in the approved script. */
.wc-page main > .notice strong {
  color: #0b1736;
}

/* Edit notes #5: in the two-column timeline (tablets) each step keeps the thin line from its number to its icon,
   with the same weight and color as the desktop connector. */
@media (min-width: 601px) and (max-width: 900px) {
  #page-home .step-top {
    position: relative;
  }

  #page-home .step-top::before {
    position: absolute;
    top: 50%;
    right: 95px;
    left: 61px;
    height: 2px;
    background: var(--line);
    content: '';
    transform: translateY(-50%);
  }
}
