/**
 * Local Ember — static LP qualifying form, shared styles.
 *
 * Ships BYTE-IDENTICAL on every page. Each page maps its own palette onto the --lf-*
 * variables below in its own stylesheet, so the form inherits that page's look instead
 * of importing a second design system. Do not hardcode a colour in this file.
 */

[data-leadform] {
  --lf-surface:    #ffffff;
  --lf-surface-2:  #f4f7fb;
  --lf-text:       #1c2333;
  --lf-text-2:     #4d5670;
  --lf-line:       #e2e8f0;
  --lf-accent:     #1860a8;
  --lf-accent-ink: #ffffff;
  --lf-focus:      #2b7fc4;
  --lf-danger:     #b3261e;
  --lf-radius:     14px;
}

[data-leadform] [data-step][hidden] { display: none; }

.lf-progress {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--lf-text-2); margin: 0 0 14px;
}

.lf-q {
  font-family: var(--lf-serif, inherit);
  font-size: clamp(20px, 2.6vw, 26px); line-height: 1.25; font-weight: 600;
  color: var(--lf-text); margin: 0 0 20px;
}

.lf-choices { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }

/* A choice is a real <button>: keyboard, screen readers and Enter all work for free. */
.lf-choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font: inherit; font-size: 16px; line-height: 1.45; color: var(--lf-text);
  background: var(--lf-surface-2);
  border: 1.5px solid var(--lf-line); border-radius: var(--lf-radius);
  padding: 16px 18px;
  transition: border-color .18s, background .18s, transform .18s;
}
.lf-choice:hover { border-color: var(--lf-accent); background: var(--lf-surface); }
.lf-choice:focus-visible { outline: 3px solid var(--lf-focus); outline-offset: 2px; }
.lf-choice[aria-pressed="true"] {
  border-color: var(--lf-accent);
  box-shadow: inset 0 0 0 1px var(--lf-accent);
}

.lf-back {
  margin-top: 18px; background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--lf-text-2); text-decoration: underline;
}
.lf-back:hover { color: var(--lf-accent); }

.lf-reveal {
  font-family: var(--lf-serif, inherit);
  font-size: clamp(19px, 2.4vw, 24px); line-height: 1.3; font-weight: 600;
  color: var(--lf-text); margin: 0 0 10px;
}
.lf-sub { font-size: 15.5px; line-height: 1.6; color: var(--lf-text-2); margin: 0 0 22px; }

.lf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lf-fields .lf-full { grid-column: 1 / -1; }

.lf-field label {
  display: block; font-size: 13px; font-weight: 600; color: var(--lf-text-2); margin-bottom: 6px;
}
.lf-field input {
  width: 100%; font: inherit; font-size: 16px;  /* 16px or iOS zooms on focus */
  color: var(--lf-text); background: var(--lf-surface);
  border: 1.5px solid var(--lf-line); border-radius: 10px;
  padding: 13px 14px;
}
.lf-field input:focus-visible { outline: 3px solid var(--lf-focus); outline-offset: 1px; border-color: var(--lf-accent); }

/**
 * The honeypot. Positioned off-canvas rather than display:none, because some bots skip
 * hidden inputs but fill visible ones.
 * ⚠️ Measuring the INPUT reads as a stray 34x47 box and looks like a live defect. It is
 * not — measure this WRAPPER, which is 0x0 and transparent.
 */
.lf-hp {
  position: absolute; left: -9999px; width: 0; height: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
}

.lf-submit {
  width: 100%; margin-top: 20px; cursor: pointer;
  font: inherit; font-size: 16.5px; font-weight: 700;
  color: var(--lf-accent-ink); background: var(--lf-accent);
  border: 0; border-radius: 999px; padding: 17px 24px;
  transition: filter .18s, transform .18s;
}
.lf-submit:hover:not(:disabled) { filter: brightness(1.08); }
.lf-submit:disabled { opacity: .6; cursor: default; }
.lf-submit:focus-visible { outline: 3px solid var(--lf-focus); outline-offset: 3px; }

.lf-error {
  margin-top: 14px; padding: 12px 14px; border-radius: 10px;
  background: color-mix(in srgb, var(--lf-danger) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lf-danger) 35%, transparent);
  color: var(--lf-danger); font-size: 14.5px; line-height: 1.5;
}

.lf-fineprint { margin: 14px 0 0; font-size: 12.5px; line-height: 1.55; color: var(--lf-text-2); }

.lf-done { text-align: center; padding: 28px 8px; }
.lf-done h3 { font-family: var(--lf-serif, inherit); font-size: 24px; color: var(--lf-text); margin: 0 0 8px; }
.lf-done p  { font-size: 15.5px; color: var(--lf-text-2); margin: 0; }

@media (max-width: 600px) {
  .lf-fields { grid-template-columns: 1fr; }
  .lf-choice { padding: 15px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-choice, .lf-submit { transition: none; }
}
