/* Local copies of the live site’s Latin Google Fonts (Raleway + Montserrat).
   Source: fonts.googleapis.com css2, 20 Nov 2026. Montserrat 700 is also
   loaded because the brand sheet notes labels compute at 700. */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/montserrat-400-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/montserrat-500-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/montserrat-600-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/montserrat-700-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/raleway-600-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/raleway-700-latin.woff2) format('woff2');
}

@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(assets/fonts/raleway-800-latin.woff2) format('woff2');
}

/* ==========================================================================
   BHS Equipment form styles — round 2 draft sample
   Tokens from /workspace/bhs-lendco/standards/brand-sheet.md
   Layout is for our own front end (full-viewport split). Not a drop-in for
   native hosted forms. See STYLE-SPEC.md.
   ========================================================================== */

:root {
  --bhs-green: #24A55F;
  --bhs-green-btn: #1C844C; /* white labels 4.71:1 */
  --bhs-green-ink: #197443; /* text on #F5F8F6 is 5.42:1; on #E5F3EA is 5.07:1 */
  --bhs-gold: #FED749;
  --bhs-nav: #22AA66;
  --bhs-text: #282828;
  --bhs-panel: #E5F3EA;
  --bhs-white: #FFFFFF;
  --bhs-stage: #F5F8F6;
  --bhs-footer-bar: #176D3F; /* #EFEFEF on this is 5.54:1 */
  --bhs-error: #D63637;
  --bhs-muted: #5A5F5C;
  --bhs-label: rgba(0, 0, 0, 0.85);
  --bhs-field-text: rgba(0, 0, 0, 0.8);
  --bhs-field-border: rgba(0, 0, 0, 0.25);
  --bhs-font-heading: "Raleway", Arial, sans-serif;
  --bhs-font-body: "Montserrat", Arial, sans-serif;
  --bhs-radius-btn: 200px;
  --bhs-radius-input: 8px;
  --bhs-input-height: 56px;
  --bhs-target: 48px;
  --bhs-glow: 0 0 0 4px rgba(36, 165, 95, 0.28);
  --bhs-rail-width: 420px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }

body.bhs-form-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--bhs-font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 20px;
  color: var(--bhs-text);
  background: var(--bhs-stage);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bhs-form-page a { color: var(--bhs-green-btn); }

.bhs-skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.bhs-skip:focus {
  left: 12px; top: 12px;
  z-index: 100;
  background: var(--bhs-white);
  color: var(--bhs-text);
  padding: 8px 12px;
}

/* ----- Shell: desktop split, no floating card ----- */
.bhs-shell {
  display: grid;
  grid-template-columns: minmax(360px, 42%) 1fr;
  flex: 1 1 auto;
  min-height: 0;
}

/* ----- Left branded rail ----- */
.bhs-rail {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: 32px 36px 28px;
  color: var(--bhs-white);
  background-color: var(--bhs-text);
  background-image: url("assets/panel-workshop.jpg");
  background-size: cover;
  background-position: 28% 50%;
  overflow: hidden;
}

.bhs-rail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg,
      rgba(40, 40, 40, 0.94) 0%,
      rgba(40, 40, 40, 0.90) 52%,
      rgba(20, 48, 34, 0.78) 100%);
}

.bhs-rail::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 80%);
}

.bhs-rail > * { position: relative; z-index: 1; }

.bhs-rail__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.bhs-logo--white {
  display: block;
  height: 52px;
  width: auto;
}

.bhs-sample-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 200px;
  background: var(--bhs-gold);
  color: var(--bhs-text);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* Animated step counter */
.bhs-counter {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}

.bhs-counter__ring {
  position: relative;
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
}

.bhs-counter__ring svg {
  width: 72px;
  height: 72px;
  transform: rotate(-90deg);
}

.bhs-counter__track { fill: none; stroke: rgba(255,255,255,0.15); stroke-width: 5; }
.bhs-counter__fill {
  fill: none;
  stroke: var(--bhs-green);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.bhs-counter__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bhs-font-heading);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--bhs-white);
}

.bhs-counter__copy { display: flex; flex-direction: column; gap: 2px; }

.bhs-counter__label {
  margin: 0;
  font-family: var(--bhs-font-heading);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--bhs-white);
}

.bhs-eta {
  margin: 0 0 28px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
}

.bhs-eta__tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 200px;
  border: 1px solid rgba(254, 215, 73, 0.55);
  color: var(--bhs-gold);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* Vertical step list */
.bhs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1 1 auto;
}

.bhs-steps li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}

.bhs-steps li.is-done { color: rgba(255, 255, 255, 0.92); }
.bhs-steps li.is-current {
  color: var(--bhs-white);
  font-weight: 700;
  background: rgba(36, 165, 95, 0.22);
  box-shadow: inset 3px 0 0 var(--bhs-gold);
}

.bhs-steps__mark {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bhs-steps li.is-done .bhs-steps__mark {
  border-color: var(--bhs-green);
  background: var(--bhs-green);
  color: var(--bhs-white);
}

.bhs-steps li.is-current .bhs-steps__mark {
  border-color: var(--bhs-gold);
  background: var(--bhs-gold);
  color: var(--bhs-text);
  box-shadow: 0 0 0 4px rgba(254, 215, 73, 0.2);
}

.bhs-steps__mark svg { width: 12px; height: 12px; display: none; }
.bhs-steps li.is-done .bhs-steps__mark svg { display: block; }

.bhs-rail__foot {
  margin-top: auto;
  padding-top: 22px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.82);
}

.bhs-trust {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
}

.bhs-trust__lock {
  flex: 0 0 14px;
  width: 14px;
  height: 14px;
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.88);
}

.bhs-trust__phone {
  margin: 8px 0 0 22px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bhs-trust__phone a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.bhs-trust__phone a:hover,
.bhs-trust__phone a:focus {
  color: var(--bhs-gold);
  text-decoration: underline;
}

/* ----- Right stage ----- */
.bhs-stage {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--bhs-stage);
  position: relative;
}

.bhs-mobile-header { display: none; }

.bhs-stage__scroll {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  padding: 48px 64px 40px;
  max-width: 760px;
  width: 100%;
}

.bhs-stage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
  margin-bottom: 28px;
}

.bhs-kicker {
  margin: 0;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bhs-green-ink);
}

.bhs-saved {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 200px;
  background: var(--bhs-panel);
  color: var(--bhs-green-ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.bhs-saved.is-on {
  opacity: 1;
  transform: none;
}

.bhs-saved svg { width: 14px; height: 14px; display: block; }

.bhs-form-steps { position: relative; }

.bhs-form-step { display: none; }
.bhs-form-step.is-active {
  display: block;
  animation: bhs-step-in 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes bhs-step-in {
  from { opacity: 0; transform: translateX(22px); }
  to   { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .bhs-form-step.is-active { animation: none; }
  .bhs-counter__fill, .bhs-saved, .bhs-tick, .bhs-form-btn { transition: none; }
  .bhs-form-btn:active:not(:disabled) { transform: none; }
}

.bhs-form-title {
  margin: 0 0 16px;
  font-family: var(--bhs-font-heading);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--bhs-text);
}

.bhs-form-intro {
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--bhs-text);
  max-width: 36em;
}

.bhs-form-fields {
  display: grid;
  gap: 22px;
  margin: 0 0 32px;
}

.bhs-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Floating labels */
.bhs-field {
  position: relative;
  min-width: 0;
}

.bhs-form-input {
  width: 100%;
  height: var(--bhs-input-height);
  padding: 18px 44px 0 16px;
  border: 1.5px solid var(--bhs-field-border);
  border-radius: var(--bhs-radius-input);
  background: var(--bhs-white);
  color: var(--bhs-field-text);
  font-family: var(--bhs-font-body);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  outline: none;
  box-shadow: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
  appearance: none;
  -webkit-appearance: none;
}

.bhs-form-label {
  position: absolute;
  left: 14px;
  /* Centre on the input only, not the whole field (hint/error sit under the box). */
  top: calc(var(--bhs-input-height) / 2);
  transform: translateY(-50%);
  padding: 0 4px;
  font-family: var(--bhs-font-body);
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  color: var(--bhs-muted);
  background: transparent;
  pointer-events: none;
  transition: top 0.16s ease, transform 0.16s ease, font-size 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.bhs-form-input:focus,
.bhs-form-input:not(:placeholder-shown) {
  padding-top: 20px;
  padding-bottom: 4px;
}

.bhs-form-input:focus + .bhs-form-label,
.bhs-form-input:not(:placeholder-shown) + .bhs-form-label {
  top: 10px;
  transform: none;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--bhs-muted);
  background: transparent;
}

.bhs-form-input:focus + .bhs-form-label { color: var(--bhs-green-btn); }

.bhs-form-req { color: var(--bhs-green-btn); }

.bhs-form-input:focus {
  border-color: var(--bhs-green);
  box-shadow: var(--bhs-glow);
}

.bhs-field.is-error .bhs-form-input,
.bhs-form-input[aria-invalid="true"] {
  border-color: var(--bhs-error);
  box-shadow: 0 0 0 4px rgba(214, 54, 55, 0.16);
}

.bhs-field.is-error .bhs-form-label { color: var(--bhs-error); }

.bhs-form-error {
  display: none;
  margin: 6px 2px 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--bhs-error);
}
.bhs-field.is-error .bhs-form-error { display: block; }

/* Green tick when a field validates */
.bhs-tick {
  position: absolute;
  right: 14px;
  top: 28px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bhs-green);
  color: var(--bhs-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.6);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.bhs-field.is-valid .bhs-tick {
  opacity: 1;
  transform: scale(1);
}
.bhs-tick svg { width: 12px; height: 12px; display: block; }


.bhs-hint {
  margin: 6px 2px 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--bhs-muted);
  font-weight: 400;
}
.bhs-field.is-valid .bhs-hint,
.bhs-field.is-error .bhs-hint { display: none; }

/* Actions */
.bhs-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bhs-form-actions--end { justify-content: flex-end; }

.bhs-form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--bhs-target);
  min-width: var(--bhs-target);
  padding: 16px 28px;
  border-radius: var(--bhs-radius-btn);
  font-family: var(--bhs-font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 16px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: normal;
  cursor: pointer;
  border: 2px solid transparent;
  box-shadow: none;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.12s ease, box-shadow 0.16s ease;
}
.bhs-form-btn:focus-visible {
  outline: none;
  box-shadow: var(--bhs-glow);
}
.bhs-form-btn:active:not(:disabled) { transform: scale(0.97); }

.bhs-form-btn--primary {
  background: var(--bhs-green-btn);
  color: var(--bhs-white);
  border-color: var(--bhs-green-btn);
  min-width: 160px;
}
.bhs-form-btn--primary:hover,
.bhs-form-btn--primary:focus-visible {
  background: var(--bhs-gold);
  border-color: var(--bhs-gold);
  color: var(--bhs-text);
}

.bhs-form-btn--secondary {
  background: transparent;
  color: var(--bhs-green-ink);
  border: 2px solid rgba(25, 116, 67, 0.75);
  min-width: 120px;
}
.bhs-form-btn--secondary:hover,
.bhs-form-btn--secondary:focus-visible {
  background: var(--bhs-panel);
  border-color: var(--bhs-green-btn);
}

.bhs-form-btn__icon { width: 18px; height: 18px; display: block; }

.bhs-form-reassurance {
  margin: 24px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--bhs-muted);
}

/* Thank-you */
.bhs-form-thanks-mark {
  width: 72px;
  height: 72px;
  margin: 0 0 24px;
  border-radius: 50%;
  background: var(--bhs-panel);
  color: var(--bhs-green-btn);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 8px rgba(36, 165, 95, 0.1);
}
.bhs-form-thanks-mark svg { width: 36px; height: 36px; }

/* Site footer — Welcome and Thank-you only */
.bhs-form-site-footer { display: none; }
body[data-screen="welcome"] .bhs-form-site-footer,
body[data-screen="end"] .bhs-form-site-footer { display: block; }

.bhs-form-prefooter {
  background: #176D3F;
  color: var(--bhs-white);
  padding: 22px 40px 18px;
}
.bhs-form-prefooter__inner {
  max-width: 1425px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
  flex-wrap: wrap;
}
.bhs-prefooter-logo {
  height: 56px;
  width: auto;
  display: block;
}

.bhs-form-prefooter__contact {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--bhs-white);
}
.bhs-form-prefooter__contact a { color: var(--bhs-white); text-decoration: none; }
.bhs-form-prefooter__contact a:hover { color: var(--bhs-gold); }

.bhs-form-copyright {
  background: var(--bhs-footer-bar);
  color: #EFEFEF;
  padding: 12px 40px;
  font-size: 13px;
  line-height: 1.5;
}
.bhs-form-copyright__inner { max-width: 1425px; margin: 0 auto; }
.bhs-form-copyright a { color: #EFEFEF; text-decoration: none; }
.bhs-form-copyright a:hover { color: var(--bhs-gold); }

body[data-screen="welcome"] .bhs-stage__scroll,
body[data-screen="end"] .bhs-stage__scroll {
  justify-content: center;
}

/* ----- Mobile ----- */
@media (max-width: 900px) {
  .bhs-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .bhs-rail { display: none; }

  .bhs-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex: 0 0 auto;
    padding: 10px 16px;
    background: var(--bhs-white);
    border-bottom: 1px solid rgba(40, 40, 40, 0.08);
    min-height: 56px;
  }

  .bhs-logo--green {
    display: block;
    height: 30px;
    width: auto;
    flex: 0 0 auto;
  }

  .bhs-mobile-header__status {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
  }

  .bhs-mobile-header__step {
    font-size: 12px;
    font-weight: 700;
    color: var(--bhs-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .bhs-mobile-header__bar {
    width: 100%;
    max-width: 140px;
    height: 4px;
    border-radius: 200px;
    background: var(--bhs-panel);
    overflow: hidden;
  }
  .bhs-mobile-header__bar > span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 200px;
    background: linear-gradient(90deg, var(--bhs-green) 70%, var(--bhs-gold) 70%);
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body[data-screen="end"] .bhs-mobile-header__bar > span {
    width: 100% !important;
    background: var(--bhs-green) !important;
  }

  .bhs-stage__scroll {
    padding: 20px 20px 24px;
    max-width: none;
  }

  .bhs-stage__meta { margin-bottom: 16px; }

  .bhs-form-title { font-size: 32px; }

  @media (max-width: 400px) {
    .bhs-mobile-header { padding: 10px 12px; gap: 8px; }
    .bhs-logo--green { height: 28px; }
    .bhs-mobile-header__step { font-size: 11px; }
  }

  .bhs-form-row { grid-template-columns: 1fr; gap: 22px; }

  .bhs-form-prefooter,
  .bhs-form-copyright { padding-left: 20px; padding-right: 20px; }

  .bhs-form-logo--white, .bhs-prefooter-logo { height: 36px; width: auto; display: block; }

  .bhs-form-prefooter { padding-top: 16px; padding-bottom: 14px; }
  .bhs-prefooter-logo {
  height: 56px;
  width: auto;
  display: block;
}

.bhs-form-prefooter__contact { font-size: 13px; line-height: 1.45; }

  /* Sticky Continue during mid-form steps only */
  body[data-screen="name"] .bhs-form-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    margin: 0;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
    background: rgba(245, 248, 246, 0.94);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(40, 40, 40, 0.08);
  }

  body[data-screen="name"] .bhs-stage__scroll {
    padding-bottom: 96px;
  }

  body[data-screen="name"] .bhs-form-reassurance {
    margin-top: 8px;
  }

  body[data-screen="welcome"] .bhs-form-actions .bhs-form-btn--primary {
    width: 100%;
    min-width: 0;
  }

  body[data-screen="welcome"] .bhs-shell,
  body[data-screen="end"] .bhs-shell {
    min-height: 0;
  }
}

@media (max-width: 400px) {
  .bhs-form-title { font-size: 28px; }
}
