/* ============================================================
   Signature Homeworx — Lead Form widget.
   Ported from questionnaire.css, scoped under .shx-lf so multiple
   instances (and the rest of the page) never collide.

   Elementor-exposed tokens (Style tab → Colors): --shxlf-btn,
   --shxlf-btn-hover, --shxlf-accent. Everything else below is an
   internal brand token, fixed regardless of those three controls.
   ============================================================ */
.shx-lf {
  --shxlf-navy: #0D0040;
  --shxlf-navy-hover: #251a5e;
  --shxlf-gold: #fbbc04;
  --shxlf-btn: var(--shxlf-navy);
  --shxlf-btn-hover: var(--shxlf-navy-hover);
  --shxlf-font: 'Outfit', system-ui, sans-serif;

  /* internal-only tokens (not exposed as Elementor controls) */
  --shxlf-navy-tint: #efeef7;
  --shxlf-gray: #808080;
  --shxlf-line: #d8d7e2;
  --shxlf-dot-idle: #e8e8ee;
  --shxlf-text: #0D0040;
  --shxlf-muted: #71717f;
  --shxlf-card-bg: #ffffff;
  --shxlf-white: #ffffff;
  --shxlf-on-navy-muted: #cfcbe8;
  --shxlf-shadow-soft: 0 10px 40px rgba(13, 0, 64, 0.12);
  --shxlf-shadow-lift: 0 8px 20px rgba(13, 0, 64, 0.14);
  --shxlf-error: #b3261e;
  --shxlf-radius: 10px;
  --shxlf-font-script: 'Pacifico', cursive;
}

.shx-lf, .shx-lf * { box-sizing: border-box; }

.shx-lf .visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}

.shx-lf {
  max-width: 640px; margin: 0 auto; background: var(--shxlf-card-bg);
  border-radius: var(--shxlf-radius); padding: 32px 40px 40px;
  box-shadow: var(--shxlf-shadow-soft);
  font-family: var(--shxlf-font);
}

.shx-lf__heading {
  text-align: center; font-weight: 900; font-size: 22px;
  color: var(--shxlf-navy); margin: 0 0 20px;
}

/* ---- Stepper ---- */
.shx-lf .stepper { display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.shx-lf .stepper__dot {
  width: 40px; height: 40px; border-radius: 50%; background: var(--shxlf-dot-idle);
  color: var(--shxlf-gray); display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; transition: background .3s, color .3s;
}
.shx-lf .stepper__dot.is-current, .shx-lf .stepper__dot.is-done { background: var(--shxlf-accent, var(--shxlf-navy)); color: var(--shxlf-white); }
.shx-lf .stepper__bar { width: 56px; height: 2px; background: var(--shxlf-dot-idle); transition: background .3s; }
.shx-lf .stepper__bar.is-done { background: var(--shxlf-accent, var(--shxlf-navy)); }

/* ---- Steps & transitions ---- */
.shx-lf .step { text-align: center; }
.shx-lf .step[hidden] { display: none; }
@keyframes shxlfStepInFwd { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes shxlfStepInBack { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }
.shx-lf .step.enter-fwd { animation: shxlfStepInFwd .35s cubic-bezier(.22, .8, .36, 1); }
.shx-lf .step.enter-back { animation: shxlfStepInBack .35s cubic-bezier(.22, .8, .36, 1); }
@media (prefers-reduced-motion: reduce) {
  .shx-lf .step.enter-fwd, .shx-lf .step.enter-back { animation: none; }
  .shx-lf .svc, .shx-lf .btn { transition: none !important; }
}

.shx-lf .script-accent {
  font-family: var(--shxlf-font-script); color: var(--shxlf-gray);
  font-size: 22px; margin: 0 0 2px; transform: rotate(-3deg);
}
.shx-lf .step__title { font-weight: 900; font-size: 26px; line-height: 1.25; margin: 4px 0 6px; }
.shx-lf .step__title--small { font-size: 21px; }
.shx-lf .step__sub { color: var(--shxlf-muted); font-size: 16px; margin: 0 0 18px; }
.shx-lf .step__title:focus { outline: none; }

/* ---- Service cards ---- */
.shx-lf .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 22px 0 24px; }
.shx-lf .svc {
  border: 1px solid var(--shxlf-line); border-radius: var(--shxlf-radius); background: var(--shxlf-white);
  padding: 22px 10px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  cursor: pointer; color: var(--shxlf-navy); font-family: inherit;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s, border-color .18s;
}
.shx-lf .svc:hover { transform: translateY(-3px); box-shadow: var(--shxlf-shadow-lift); }
.shx-lf .svc:focus-visible { outline: 3px solid var(--shxlf-accent, var(--shxlf-navy-hover)); outline-offset: 2px; }
.shx-lf .svc__icon svg { width: 44px; height: 44px; display: block; margin-bottom: 6px; }
.shx-lf .svc__label { font-weight: 800; font-size: 17px; }
.shx-lf .svc__sub { font-size: 13px; color: var(--shxlf-muted); }
.shx-lf .svc.is-selected { background: var(--shxlf-navy); border-color: var(--shxlf-navy); color: var(--shxlf-white); }
.shx-lf .svc.is-selected .svc__sub { color: var(--shxlf-on-navy-muted); }

/* ---- Buttons & links ---- */
.shx-lf .btn {
  display: block; width: 100%; border: 0; border-radius: var(--shxlf-radius);
  background: var(--shxlf-btn); color: var(--shxlf-white); font-family: inherit;
  font-size: 18px; font-weight: 700; padding: 16px; cursor: pointer;
  transition: background .18s, transform .12s;
}
.shx-lf .btn:hover:not(:disabled) { background: var(--shxlf-btn-hover); }
.shx-lf .btn:active:not(:disabled) { transform: scale(.985); }
.shx-lf .btn:disabled { background: var(--shxlf-dot-idle); color: var(--shxlf-gray); cursor: not-allowed; }
.shx-lf .btn:focus-visible { outline: 3px solid var(--shxlf-accent, var(--shxlf-navy-hover)); outline-offset: 2px; }
.shx-lf .linkback {
  background: none; border: 0; color: var(--shxlf-muted); font-family: inherit;
  font-size: 15px; cursor: pointer; padding: 4px 8px; margin-bottom: 14px;
}
.shx-lf .linkback:hover { color: var(--shxlf-accent, var(--shxlf-navy)); text-decoration: underline; }

/* ---- Fields ---- */
.shx-lf .field { text-align: left; margin-bottom: 2px; }
.shx-lf .field--center { max-width: 320px; margin: 0 auto 18px; }
.shx-lf .field__label { display: block; color: var(--shxlf-navy); font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.shx-lf .field input {
  width: 100%; border: 1px solid var(--shxlf-line); border-radius: 6px;
  padding: 13px 14px; font-family: inherit; font-size: 16px; color: var(--shxlf-text);
  transition: border-color .15s, box-shadow .15s;
}
.shx-lf .field input:focus { outline: none; border-color: var(--shxlf-navy); box-shadow: 0 0 0 3px var(--shxlf-navy-tint); }
.shx-lf .field__error { color: var(--shxlf-error); font-size: 13.5px; margin: 5px 0 0; text-align: left; }
.shx-lf [data-shx-el="formError"] { text-align: center; margin-bottom: 12px; }

/* ---- Contact form ---- */
.shx-lf .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 16px; }
.shx-lf .field--full { grid-column: 1 / -1; }
.shx-lf .chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 10px; }
.shx-lf .chip {
  background: var(--shxlf-navy); color: var(--shxlf-white); border-radius: 999px;
  font-size: 13.5px; font-weight: 700; padding: 6px 14px;
}
.shx-lf .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.shx-lf .consent { color: var(--shxlf-muted); font-size: 12px; font-style: italic; line-height: 1.55; text-align: left; margin: 18px 0 0; }
.shx-lf .btn.is-loading { opacity: .75; pointer-events: none; }

/* ---- Mobile ---- */
@media (max-width: 560px) {
  .shx-lf { padding: 24px 18px 28px; }
  .shx-lf .cards { grid-template-columns: 1fr; }
  .shx-lf .svc { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; text-align: left; }
  .shx-lf .svc__icon svg { margin-bottom: 0; width: 36px; height: 36px; }
  .shx-lf .grid { grid-template-columns: 1fr; }
  .shx-lf .step__title { font-size: 22px; }
  .shx-lf .stepper__bar { width: 36px; }
}
