/* Interactive variant of the service pages (Variant: interactive). Loaded on top of service-page.css only where the
   page sets serviceInteractive, scoped by the svc-interactive body class. Same dark palette and fonts as the rest of
   the site. Without the script every option and step is visible and the controls stay hidden (see js/service-page-2.js).
   Bump business.versions.service2Css in src/_data/business.json when this file changes. */

/* ---------- scroll progress + floating estimate button ---------- */

.svc-interactive .svc2-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.svc-interactive .svc2-progress span {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.svc-interactive .svc2-float { display: none; }
@media (min-width: 1024px) {
  .svc-interactive .svc2-float { position: fixed; right: 28px; bottom: 28px; z-index: 55; }
  .svc-interactive .svc2-float.is-on:not([hidden]) { display: inline-flex; }
}

/* ---------- which repair do you need ---------- */

.svc-interactive .svc2-picker { max-width: 1100px; margin: 34px auto 0; }
.svc-interactive .svc-picker .lp-sub,
.svc-interactive .svc2-process .lp-sub { text-wrap: balance; }

.svc-interactive .svc2-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 22px;
}

.svc-interactive .svc2-chips[hidden] { display: none; }

.svc-interactive .svc2-chip { cursor: pointer; }

.svc-interactive .svc2-chip[aria-selected="true"] { color: #0b0c0e; background: #fff; border-color: #fff; }
.svc-interactive .svc2-chip:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.svc-interactive .svc2-options { display: grid; gap: 16px; }

.svc-interactive .svc2-option {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  grid-template-areas: "title points" "text points" "action points";
  grid-template-rows: auto auto 1fr;
  column-gap: 44px;
  padding: 32px;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.svc-interactive .svc2-option[hidden] { display: none; }

.svc-interactive .svc2-option h3 { grid-area: title; margin: 0 0 12px; color: #fff; font-size: 26px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.svc-interactive .svc2-option > p:not(.svc2-points-title) { grid-area: text; margin: 0 0 22px; color: #c7cbd4; font-size: 17px; line-height: 1.65; text-wrap: pretty; }
.svc-interactive .svc2-option .primary-button { grid-area: action; align-self: end; justify-self: start; }

.svc-interactive .svc2-points-title {
  grid-area: points;
  align-self: start;
  margin: 0;
  color: #9aa0ab;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-interactive .svc2-points {
  grid-area: points;
  align-self: start;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.svc-interactive .svc2-points li {
  position: relative;
  padding: 10px 0 10px 22px;
  color: #d8dce4;
  font-size: 16px;
  line-height: 1.5;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.svc-interactive .svc2-points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 19px;
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}

/* With the script only the current option shows; it slides in. */
.svc-interactive .svc2-picker.is-live .svc2-option.is-current { animation: svc2-in 0.45s ease both; }

@keyframes svc2-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- process stepper with photos ---------- */

.svc-interactive .svc2-stepper { max-width: 1100px; margin: 40px auto 0; }

.svc-interactive .svc2-rail {
  position: relative;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  margin-bottom: 30px;
}

.svc-interactive .svc2-rail[hidden] { display: none; }

.svc-interactive .svc2-rail-track {
  position: absolute;
  top: 21px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.14);
}

.svc-interactive .svc2-rail-fill {
  display: block;
  height: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.5s ease;
}

.svc-interactive .svc2-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 6px;
  color: #9aa0ab;
  font: inherit;
  text-align: center;
  background: none;
  border: 0;
  cursor: pointer;
}

.svc-interactive .svc2-node-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: #c7cbd4;
  font-size: 14px;
  font-weight: 600;
  background: #0b0c0e;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.svc-interactive .svc2-node-label { font-size: 14px; line-height: 1.3; text-wrap: balance; transition: color 0.3s ease; }
.svc-interactive .svc2-node.is-done .svc2-node-num { color: #fff; border-color: #fff; }
.svc-interactive .svc2-node[aria-selected="true"] .svc2-node-num { color: #0b0c0e; background: #fff; border-color: #fff; transform: scale(1.1); }
.svc-interactive .svc2-node[aria-selected="true"] .svc2-node-label,
.svc-interactive .svc2-node:hover .svc2-node-label { color: #fff; }
.svc-interactive .svc2-node:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 10px; }

.svc-interactive .svc2-steps { display: grid; gap: 18px; }

.svc-interactive .svc2-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
  background: #0e1013;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
}

.svc-interactive .svc2-step[hidden] { display: none; }

@media (min-width: 768px) {
  .svc-interactive .svc2-step.has-photo { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
}

.svc-interactive .svc2-step-photo { margin: 0; min-height: 260px; background: #050607; }
.svc-interactive .svc2-step-photo picture,
.svc-interactive .svc2-step-photo img { display: block; width: 100%; height: 100%; }
.svc-interactive .svc2-step-photo img { object-fit: cover; aspect-ratio: 4 / 3; }

.svc-interactive .svc2-step-copy { display: flex; flex-direction: column; justify-content: center; padding: 34px; }

.svc-interactive .svc2-step-count {
  margin-bottom: 12px;
  color: #9aa0ab;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.svc-interactive .svc2-step-copy h3 { margin: 0 0 12px; color: #fff; font-size: 28px; font-weight: 600; line-height: 1.2; text-wrap: balance; }
.svc-interactive .svc2-step-copy p { margin: 0; color: #c7cbd4; font-size: 17px; line-height: 1.65; text-wrap: pretty; }

.svc-interactive .svc2-stepper.is-live .svc2-step.is-current { animation: svc2-in 0.5s ease both; }
.svc-interactive .svc2-stepper.is-live .svc2-step.is-current .svc2-step-photo img { animation: svc2-zoom 6s ease-out both; }

@keyframes svc2-zoom {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.svc-interactive .svc2-step-nav { display: flex; justify-content: center; gap: 12px; margin-top: 22px; }
.svc-interactive .svc2-step-nav[hidden] { display: none; }

.svc-interactive .svc2-step-btn { cursor: pointer; }

.svc-interactive .svc2-step-btn:disabled { opacity: 0.35; cursor: default; }
.svc-interactive .svc2-step-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* ---------- before and after ---------- */

.svc-interactive .seo-ba { max-width: 900px; margin-left: auto; margin-right: auto; }

/* ---------- small screens ---------- */

@media (max-width: 991px) {
  .svc-interactive .svc2-option {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "text" "points" "action";
    grid-template-rows: none;
  }

  .svc-interactive .svc2-points-title { margin-top: 4px; }
  .svc-interactive .svc2-points { margin-bottom: 24px; }
}

@media (max-width: 767px) {
  .svc-interactive .svc2-chips { gap: 8px; }
  .svc-interactive .svc2-option { padding: 24px 20px; }
  .svc-interactive .svc2-option h3 { font-size: 23px; }
  .svc-interactive .svc2-option .primary-button { justify-self: stretch; }
  .svc-interactive .svc2-rail { grid-auto-flow: row; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: 18px; }
  .svc-interactive .svc2-rail-track { left: 10%; right: 10%; }
  .svc-interactive .svc2-node-label { display: none; }
  .svc-interactive .svc2-step-copy { padding: 24px 20px 26px; }
  .svc-interactive .svc2-step-copy h3 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .svc-interactive .svc2-picker.is-live .svc2-option.is-current,
  .svc-interactive .svc2-stepper.is-live .svc2-step.is-current,
  .svc-interactive .svc2-stepper.is-live .svc2-step.is-current .svc2-step-photo img { animation: none; }
  .svc-interactive .svc2-rail-fill,
  .svc-interactive .svc2-node-num,
  .svc-interactive .svc2-chip,
  .svc-interactive .svc2-float { transition: none; }
}
