/* Help & Support (/contact-us; supportPage: true) — loaded only there, on top of app4.css + sl.css.
   A light, warm portal at the top of the otherwise dark contact page: the SpectraLight Experts' faces,
   one ask box, and a stage whose views swap in place (home / fix / setup) with no scrolling. The contact
   form, the reseller / press blocks and the office / phone block follow in the page's own dark style.
   Same pattern as premierrobotic.com (/contact), poolbots.com, poolexpress.com, poolrobots.com and
   mysmartpool.com. Self-contained: input / button / list defaults are reset here. */

.sp-hero {
  --sp-ink: #0a1018;
  --sp-ink-2: #424245;
  --sp-ink-3: #6e6e73;
  --sp-ink-4: #86868b;
  --sp-surface: #f5f5f7;
  --sp-hair: rgba(0, 0, 0, 0.08);
  --sp-accent: #1a73e8;
  --sp-accent-hover: #1666d0;
  --sp-accent-ink: #1666d0;
  --sp-accent-soft: #e8f0fe;
  --sp-accent-soft-2: #d9e7fd;
  --sp-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  background: linear-gradient(180deg, #ffffff 0%, var(--sp-surface) 100%);
  color: var(--sp-ink);
  padding: clamp(28px, 4vw, 48px) 0 clamp(40px, 6vw, 72px);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sp-hero *,
.sp-hero *::before,
.sp-hero *::after { box-sizing: border-box; }

.sp-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
}

.sp-portal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.sp-faces {
  display: flex;
  justify-content: center;
}

.sp-faces img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 28%;
  border: 4px solid #fff;
  margin-left: -18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  background: var(--sp-surface);
}

.sp-faces > :first-child { margin-left: 0; }

.sp-welcome-line {
  margin: 14px 0 4px;
  color: var(--sp-ink-3);
  font-size: 15px;
  line-height: 1.5;
}

.sp-welcome-line strong {
  color: var(--sp-ink);
  font-weight: 600;
  font-size: 16px;
}

.sp-online {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #0f7a43;
}

.sp-online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.2);
}

.sp-portal h1 {
  margin: 0.35em 0 0.3em;
  font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--sp-ink);
}

/* ask anything */
.sp-ask {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  max-width: 640px;
  margin: 1.1rem auto 0;
  padding: 6px 6px 6px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d2d2d7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sp-ask:focus-within {
  border-color: var(--sp-accent);
  box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.14), 0 10px 30px rgba(0, 0, 0, 0.05);
}

.sp-ask input[type="text"] {
  flex: 1;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 10px 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--sp-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  outline: none;
  box-shadow: none;
}

.sp-ask input[type="text"]:focus {
  border: none;
  background: transparent;
  box-shadow: none;
  outline: none;
}

.sp-ask input::placeholder { color: var(--sp-ink-4); }

.sp-ask-btn {
  appearance: none;
  flex: none;
  margin: 0;
  padding: 10px 22px;
  border: none;
  border-radius: 999px;
  background: var(--sp-accent);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background 0.2s;
}

.sp-ask-btn:hover,
.sp-ask-btn:focus-visible { background: var(--sp-accent-hover); outline: none; }

/* ---- The stage: answers in place ---- */
.sp-stage {
  width: 100%;
  margin-top: 1.1rem;
  min-height: 236px;
}

.sp-view[hidden] { display: none; }

.sp-view { animation: sp-rise 0.3s var(--sp-ease); }

@keyframes sp-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.sp-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.sp-action {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 104px;
  margin: 0;
  padding: 14px 12px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--sp-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: transform 0.35s var(--sp-ease), border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.sp-action:hover,
.sp-action:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(26, 115, 232, 0.5);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.07);
  outline: none;
}

.sp-action svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sp-accent);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-action--accent {
  background: var(--sp-accent);
  border-color: var(--sp-accent);
  color: #fff;
}

.sp-action--accent svg { stroke: #fff; }

.sp-action--accent:hover,
.sp-action--accent:focus-visible {
  background: var(--sp-accent-hover);
  border-color: var(--sp-accent-hover);
}

.sp-reach {
  margin: 16px 0 0;
  color: var(--sp-ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

.sp-reach a {
  color: var(--sp-accent-ink);
  font-weight: 600;
  text-decoration: none;
}

.sp-reach a:hover { text-decoration: underline; }

.sp-browse {
  margin: 6px 0 0;
  color: var(--sp-ink-4);
  font-size: 13.5px;
  line-height: 1.7;
}

.sp-browse a {
  color: var(--sp-ink-3);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.sp-browse a:hover { color: var(--sp-accent-ink); text-decoration: underline; }

.sp-view-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  text-align: left;
}

.sp-view-head h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-ink);
}

.sp-back {
  appearance: none;
  margin: 0;
  border: 1px solid var(--sp-hair);
  background: #fff;
  color: var(--sp-ink);
  border-radius: 999px;
  padding: 7px 13px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  flex: none;
}

.sp-back:hover { background: var(--sp-surface); }

.sp-symptoms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: left;
}

.sp-symptom {
  appearance: none;
  margin: 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--sp-hair);
  color: var(--sp-ink);
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.sp-symptom:hover,
.sp-symptom:focus-visible {
  border-color: rgba(26, 115, 232, 0.5);
  outline: none;
}

.sp-symptom[aria-pressed="true"] {
  border-color: var(--sp-accent);
  background: var(--sp-accent-soft);
  color: var(--sp-accent-ink);
}

.sp-steps {
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--sp-hair);
  text-align: left;
  color: var(--sp-ink-2);
  font-size: 15px;
  line-height: 1.5;
}

.sp-steps[hidden] { display: none; }

.sp-steps h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--sp-ink);
}

.sp-steps h3 + h3,
.sp-steps ol + h3 { margin-top: 16px; }

.sp-steps ol {
  margin: 0 0 10px;
  padding-left: 20px;
  list-style: decimal;
}

.sp-steps li {
  margin: 5px 0;
  font-size: 15px;
}

.sp-steps li::marker {
  color: var(--sp-accent-ink);
  font-weight: 600;
}

.sp-steps--open { margin-top: 0; }

.sp-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.sp-link-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--sp-hair);
  background: var(--sp-surface);
  color: var(--sp-ink);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.sp-link-btn:hover,
.sp-link-btn:focus-visible {
  background: #e8e8ed;
  color: var(--sp-ink);
  text-decoration: none;
  outline: none;
}

.sp-link-btn--accent {
  background: var(--sp-accent-soft);
  border-color: #c4d8f8;
  color: var(--sp-accent-ink);
}

.sp-link-btn--accent:hover,
.sp-link-btn--accent:focus-visible { background: var(--sp-accent-soft-2); color: var(--sp-accent-ink); }

.sp-note {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--sp-surface);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--sp-ink-2);
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.sp-inline-link {
  appearance: none;
  display: inline;
  margin: 0;
  border: none;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--sp-accent-ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.sp-inline-link:hover { text-decoration: underline; color: var(--sp-accent-ink); }

/* ---- Below the portal: the form in a soft card, the reach strip, two quiet cards, the office block ---- */
.sp-form-section {
  --sp-ink: #0a1018;
  --sp-ink-2: #424245;
  --sp-ink-3: #6e6e73;
  --sp-ink-4: #86868b;
  --sp-surface: #f5f5f7;
  --sp-hair: rgba(0, 0, 0, 0.08);
  --sp-accent: #1a73e8;
  --sp-accent-hover: #1666d0;
  --sp-accent-ink: #1666d0;
  --sp-accent-soft: #e8f0fe;
  --sp-accent-soft-2: #d9e7fd;
  background: #fff;
  color: var(--sp-ink);
  padding: clamp(48px, 7vw, 88px) 22px clamp(56px, 8vw, 104px);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.sp-form-section *,
.sp-form-section *::before,
.sp-form-section *::after { box-sizing: border-box; }

.sp-form-inner {
  max-width: 760px;
  margin: 0 auto;
  background: var(--sp-surface);
  padding: clamp(32px, 5vw, 56px) clamp(22px, 5vw, 56px);
  border-radius: 28px;
}

.sp-form-head {
  text-align: center;
  margin-bottom: 26px;
}

.sp-form-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  color: var(--sp-ink);
}

.sp-form-head p {
  margin: 0 auto;
  max-width: 560px;
  color: var(--sp-ink-3);
  font-size: 16px;
  line-height: 1.5;
}

/* the Formstack embed inside the grey card: plain fields, the site's blue button */
.sp-form-inner .fsForm,
.sp-form-inner .fsBody { background: transparent; padding: 0; margin: 0; }
.sp-form-inner .fsBody .fsForm { box-shadow: none; }
.sp-form-inner .fsLabel { color: var(--sp-ink); font-weight: 500; }
.sp-form-inner .fsSupporting { color: var(--sp-ink-4); }
.sp-form-inner .fsSubmitButton,
.sp-form-inner input[type="submit"] {
  background: var(--sp-accent);
  border: none;
  border-radius: 999px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  padding: 11px 24px;
  cursor: pointer;
}
.sp-form-inner .fsSubmitButton:hover,
.sp-form-inner input[type="submit"]:hover { background: var(--sp-accent-hover); }

.sp-reach-strip {
  max-width: 760px;
  margin: 32px auto 0;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px 22px;
  flex-wrap: wrap;
  text-align: center;
  color: var(--sp-ink-3);
  font-size: 14.5px;
  line-height: 1.5;
  background: #fff;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.sp-reach-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.sp-reach-strip svg {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: var(--sp-ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sp-reach-strip a {
  color: var(--sp-ink);
  font-weight: 600;
  text-decoration: none;
}

.sp-reach-strip a:hover { color: var(--sp-accent); }

.sp-cards {
  max-width: 760px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.sp-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  background: var(--sp-surface);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-align: left;
}

.sp-card-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-ink-4);
}

.sp-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sp-ink);
}

.sp-card p {
  margin: 0 0 4px;
  color: var(--sp-ink-3);
  font-size: 14.5px;
  line-height: 1.5;
}

.sp-card .sp-row { margin-top: auto; }

.sp-office {
  max-width: 760px;
  margin: 36px auto 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 40px;
  padding-top: 28px;
  border-top: 1px solid var(--sp-hair);
  text-align: left;
}

.sp-office h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--sp-ink);
}

.sp-office p {
  margin: 0;
  color: var(--sp-ink-3);
  font-size: 14.5px;
  line-height: 1.6;
}

.sp-office a {
  color: var(--sp-ink);
  font-weight: 500;
  text-decoration: none;
}

.sp-office a:hover { color: var(--sp-accent); }

@media (max-width: 767.98px) {
  .sp-hero { padding-top: 18px; }

  .sp-wrap { padding: 0 16px; }

  .sp-faces img {
    width: 64px;
    height: 64px;
    margin-left: -14px;
    border-width: 3px;
  }

  .sp-ask { padding-left: 14px; }

  .sp-ask input[type="text"] { font-size: 16px; }

  .sp-ask-btn { padding: 10px 16px; }

  .sp-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sp-actions > .sp-action:last-child:nth-child(odd) { grid-column: 1 / -1; }

  .sp-action {
    min-height: 92px;
    font-size: 13.5px;
  }

  .sp-symptoms { grid-template-columns: 1fr; }

  .sp-browse a { white-space: normal; }

  .sp-form-section { padding-left: 16px; padding-right: 16px; }

  .sp-form-inner { border-radius: 24px; }

  .sp-reach-strip {
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px;
    border-radius: 20px;
    font-size: 14px;
  }

  .sp-cards,
  .sp-office { grid-template-columns: 1fr; }
}
