/* Lead forms rebuilt by lead-forms.js, matching the original ContactForm / TermsForm (see lead-forms.php).
   The card (white, 28px padding, 16px radius, shadow) comes from the converted .box-220 class the form keeps. */
:root:root form.lmc-lf {
  --lf-primary: rgb(33, 48, 94);
  --lf-accent: rgb(77, 123, 50);
  --lf-accent-ink: rgb(66, 105, 43);
  --lf-muted: rgb(67, 74, 96);
  --lf-border: rgb(213, 217, 226);
  --lf-input: rgb(117, 129, 159);
  --lf-danger: rgb(197, 32, 32);
  min-width: 0;
  color: var(--lf-primary);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  line-height: 24px;
  text-align: left;
}
:root:root .lmc-lf *,
:root:root .lmc-lf *::before,
:root:root .lmc-lf *::after { box-sizing: border-box; }
:root:root .lmc-lf :is(p, h2, fieldset, legend) { margin: 0; padding: 0; }
:root:root .lmc-lf fieldset { min-width: 0; border: 0; }
:root:root .lmc-lf [hidden] { display: none !important; }

/* Step header */
:root:root .lmc-lf .lmc-lf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
:root:root .lmc-lf .lmc-lf-head > div { min-width: 0; }
:root:root .lmc-lf .lmc-lf-eyebrow { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--lf-accent-ink); }
:root:root .lmc-lf .lmc-lf-h2 { margin-top: 8px; font-family: Outfit, sans-serif; font-size: 24px; line-height: 32px; font-weight: 700; letter-spacing: -0.025em; color: var(--lf-primary); text-transform: none; }
:root:root .lmc-lf .lmc-lf-h2--scroll { scroll-margin-top: 112px; }
:root:root .lmc-lf .lmc-lf-badge { flex-shrink: 0; padding: 4px 12px; border-radius: 9999px; background: rgba(33, 48, 94, 0.1); color: var(--lf-primary); font-size: 14px; line-height: 20px; font-weight: 700; }

/* Choice cards */
:root:root .lmc-lf .lmc-lf-legend { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lf-primary); }
:root:root .lmc-lf .lmc-lf-req { color: var(--lf-danger); }
:root:root .lmc-lf .lmc-lf-optional { font-weight: 400; color: var(--lf-muted); }
:root:root .lmc-lf .lmc-lf-options { display: grid; gap: 12px; margin-top: 16px; }
:root:root .lmc-lf .lmc-lf-option {
  display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; margin: 0;
  padding: 12px 16px; border: 1px solid var(--lf-border); border-radius: 4px; background: #fff;
  color: var(--lf-primary); font-size: 14px; line-height: 20px; font-weight: 600; cursor: pointer;
  transition: color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1);
}
:root:root .lmc-lf .lmc-lf-option:hover { border-color: rgba(33, 48, 94, 0.4); }
:root:root .lmc-lf .lmc-lf-option.is-selected { border-color: var(--lf-accent); background: rgba(77, 123, 50, 0.1); }
:root:root .lmc-lf .lmc-lf-option:not(.lmc-lf-option--terms):focus-within { box-shadow: 0 0 0 2px rgba(77, 123, 50, 0.3); }
:root:root .lmc-lf .lmc-lf-option--inquiry { align-items: flex-start; font-weight: 400; }
:root:root .lmc-lf .lmc-lf-option--terms { padding-block: 0; border-radius: 8px; }
:root:root .lmc-lf :is(.lmc-lf-option, .lmc-lf-radio, .lmc-lf-consent) input {
  appearance: auto; -webkit-appearance: auto; flex-shrink: 0; width: 16px; height: 16px; min-height: 0; margin: 0; padding: 0;
  accent-color: var(--lf-primary); box-shadow: none; cursor: pointer;
}
:root:root .lmc-lf :is(.lmc-lf-option--inquiry, .lmc-lf-consent) input { margin-top: 4px; }
:root:root .lmc-lf .lmc-lf-option-text { min-width: 0; }
:root:root .lmc-lf .lmc-lf-option-title { display: block; font-weight: 600; }
:root:root .lmc-lf .lmc-lf-option-desc { display: block; margin-top: 4px; line-height: 1.625; color: var(--lf-muted); }

/* Buttons: one filled primary action; Back is outlined. */
:root:root .lmc-lf :is(.lmc-lf-cta, .lmc-lf-back) {
  display: inline-flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 0;
  padding: 12px 24px; border-radius: 9999px; font-family: "Plus Jakarta Sans", sans-serif; font-size: 14px; line-height: 20px;
  font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
  transition: filter .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
:root:root .lmc-lf .lmc-lf-cta {
  border: 0; background: var(--lf-accent); color: #fff; letter-spacing: 0.1em; text-transform: uppercase;
  box-shadow: 0 20px 25px -5px rgba(77, 123, 50, 0.25), 0 8px 10px -6px rgba(77, 123, 50, 0.25);
}
:root:root .lmc-lf .lmc-lf-cta:hover:not(:disabled) { filter: brightness(1.1); background: var(--lf-accent); color: #fff; }
:root:root .lmc-lf .lmc-lf-cta--continue { margin-top: 28px; }
:root:root .lmc-lf .lmc-lf-cta--submit { box-shadow: 0 20px 25px -5px rgba(77, 123, 50, 0.3), 0 8px 10px -6px rgba(77, 123, 50, 0.3); }
:root:root .lmc-lf .lmc-lf-cta--submit:hover:not(:disabled) { box-shadow: 0 20px 25px -5px rgba(77, 123, 50, 0.5), 0 8px 10px -6px rgba(77, 123, 50, 0.5); }
:root:root .lmc-lf .lmc-lf-back { border: 1px solid var(--lf-border); background: #fff; color: var(--lf-primary); }
:root:root .lmc-lf .lmc-lf-back:hover:not(:disabled) { background: rgba(240, 241, 244, 0.5); color: var(--lf-primary); }
:root:root .lmc-lf .lmc-lf-back--terms { border-color: rgba(33, 48, 94, 0.2); background: transparent; letter-spacing: 0.1em; text-transform: uppercase; }
:root:root .lmc-lf .lmc-lf-back--terms:hover:not(:disabled) { border-color: rgba(33, 48, 94, 0.5); background: transparent; }
:root:root .lmc-lf :is(.lmc-lf-cta, .lmc-lf-back):disabled { cursor: not-allowed; opacity: .6; }
:root:root .lmc-lf .lmc-lf-back--terms:disabled { opacity: .5; }
:root:root .lmc-lf .lmc-lf-actions { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
:root:root .lmc-lf .lmc-lf-actions--terms { margin-top: 28px; }
:root:root .lmc-lf .lmc-lf-cta--terms { padding-inline: 28px; }

/* Summary (step 2) */
:root:root .lmc-lf .lmc-lf-mb6 { margin-bottom: 24px; }
:root:root .lmc-lf .lmc-lf-mt6 { margin-top: 24px; }
:root:root .lmc-lf .lmc-lf-summary { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--lf-primary); }
:root:root .lmc-lf .lmc-lf-summary--first { margin-bottom: 8px; }
:root:root .lmc-lf .lmc-lf-summary-note { margin-top: 8px; font-size: 14px; line-height: 1.625; color: var(--lf-muted); }
:root:root .lmc-lf .lmc-lf-terms-summary { margin-bottom: 24px; padding: 12px 16px; border-radius: 8px; background: rgba(33, 48, 94, 0.06); }
:root:root .lmc-lf .lmc-lf-terms-summary-title { font-size: 14px; line-height: 20px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(33, 48, 94, 0.75); }
:root:root .lmc-lf .lmc-lf-terms-summary-note { margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--lf-muted); }

/* Fields */
:root:root .lmc-lf .lmc-lf-grid2,
:root:root .lmc-lf .lmc-lf-stack,
:root:root .lmc-lf .lmc-lf-terms-contact { display: grid; gap: 20px; min-width: 0; }
:root:root .lmc-lf .lmc-lf-terms-contact { padding-top: 20px; border-top: 1px solid rgba(213, 217, 226, 0.7); }
:root:root .lmc-lf .lmc-lf-label { display: block; min-width: 0; margin-bottom: 0; color: var(--lf-primary); font-size: 14px; line-height: 20px; font-weight: 600; }
:root:root .lmc-lf .lmc-lf-label--relaxed { line-height: 1.625; }
:root:root .lmc-lf .lmc-lf-input {
  display: block; width: 100%; min-width: 0; min-height: 48px; margin: 8px 0 0; padding: 12px 14px;
  border: 1px solid var(--lf-input); border-radius: 4px; background: #fff; box-shadow: none; outline: none;
  color: var(--lf-primary); font-family: "Plus Jakarta Sans", sans-serif; font-size: 16px; line-height: 24px; font-weight: 400;
  transition: color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1), box-shadow .15s cubic-bezier(.4, 0, .2, 1);
}
:root:root .lmc-lf .lmc-lf-input--terms { border-radius: 2px; }
:root:root .lmc-lf .lmc-lf-input::placeholder { color: rgba(67, 74, 96, 0.7); opacity: 1; }
:root:root .lmc-lf .lmc-lf-input:focus { border-color: var(--lf-primary); box-shadow: 0 0 0 2px rgba(77, 123, 50, 0.3); }
:root:root .lmc-lf .lmc-lf-input[aria-invalid="true"] { border-color: var(--lf-danger); }
:root:root .lmc-lf .lmc-lf-select { line-height: normal; cursor: pointer; }
:root:root .lmc-lf .lmc-lf-textarea { display: inline-block; vertical-align: baseline; resize: vertical; height: auto; }
:root:root .lmc-lf .lmc-lf-hint { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--lf-muted); }
:root:root .lmc-lf .lmc-lf-hint--message { margin-top: 8px; }
:root:root .lmc-lf .lmc-lf-error { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--lf-danger); }
:root:root .lmc-lf .lmc-lf-error--group { margin-top: 8px; }
:root:root .lmc-lf .lmc-lf-server-error { margin-top: 20px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--lf-danger); }

/* Original's two-colour focus ring for keyboard users. */
:root:root .lmc-lf :is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--lf-primary);
}

/* Yes/No and transaction radios */
:root:root .lmc-lf .lmc-lf-radio-row { display: flex; gap: 24px; margin-top: 12px; }
:root:root .lmc-lf .lmc-lf-radio-grid { display: grid; gap: 12px; margin-top: 12px; }
:root:root .lmc-lf .lmc-lf-radio { display: flex; align-items: center; gap: 8px; min-height: 44px; margin: 0; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--lf-primary); cursor: pointer; }

/* Consent */
:root:root .lmc-lf .lmc-lf-final { display: grid; gap: 20px; min-width: 0; margin-top: 24px; }
:root:root .lmc-lf .lmc-lf-consent { display: flex; align-items: flex-start; gap: 12px; min-width: 0; margin: 0; font-size: 14px; line-height: 1.625; font-weight: 400; color: var(--lf-muted); cursor: pointer; }
:root:root .lmc-lf .lmc-lf-consent.lmc-lf-mt6 { margin-top: 24px; }
:root:root .lmc-lf .lmc-lf-consent .lmc-lf-error { line-height: 20px; }

/* Address suggestions */
:root:root .lmc-lf .lmc-lf-addr { position: relative; }
:root:root .lmc-lf .lmc-lf-addr-help { margin: 0; font-size: 16px; line-height: 24px; color: var(--lf-primary); }
:root:root .lmc-lf .lmc-lf-addr-options { position: absolute; top: 80px; left: 0; right: 0; z-index: 30; overflow: hidden; border: 1px solid #b8c1cf; border-radius: 12px; background: #fff; box-shadow: 0 10px 30px #12214420; }
:root:root .lmc-lf .lmc-lf-addr-options ul { margin: 0; padding: 4px; list-style: none; }
:root:root .lmc-lf .lmc-lf-addr-options li { padding: 12px; border-radius: 8px; color: #233153; font-size: 14px; line-height: 20px; cursor: pointer; }
:root:root .lmc-lf .lmc-lf-addr-options li[aria-selected="true"] { background: #edf3e8; }
:root:root .lmc-lf .lmc-lf-addr-attribution { padding: 8px 16px; border-top: 1px solid #e4e7eb; color: #586273; font-size: 14px; line-height: 20px; text-align: right; }

:root:root .lmc-lf .lmc-lf-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (min-width: 640px) {
  :root:root .lmc-lf .lmc-lf-h2 { font-size: 30px; line-height: 36px; }
  :root:root .lmc-lf .lmc-lf-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root:root .lmc-lf .lmc-lf-terms-contact { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root:root .lmc-lf .lmc-lf-radio-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root:root .lmc-lf .lmc-lf-actions--contact { flex-direction: row; }
  :root:root .lmc-lf .lmc-lf-actions--contact .lmc-lf-back { width: auto; }
  :root:root .lmc-lf .lmc-lf-actions--contact .lmc-lf-cta { width: auto; flex: 1 1 0%; }
  :root:root .lmc-lf .lmc-lf-actions--terms { flex-direction: row; justify-content: space-between; }
  :root:root .lmc-lf .lmc-lf-actions--terms > * { width: auto; }
}
@media (max-width: 767px) {
  :root:root .lmc-lf :is(.lmc-lf-cta, .lmc-lf-back) { font-size: clamp(0.875rem, 3.9vw, 0.9375rem); line-height: calc(1.25 / 0.875); letter-spacing: 0.025em; white-space: nowrap; touch-action: manipulation; }
  :root:root .lmc-lf .lmc-lf-cta { padding-inline: 16px; }
  :root:root .lmc-lf .lmc-lf-back { padding-inline: 12px; }
}

/* Thank-you page: the optional instant-terms follow-up after a fix & flip or new construction inquiry. */
:root:root .lmc-lf-continue { margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(33, 48, 94, 0.15); text-align: center; }
:root:root .lmc-lf-continue h2 { margin: 0; font-family: Outfit, sans-serif; font-size: 24px; line-height: 32px; font-weight: 700; color: rgb(33, 48, 94); }
:root:root .lmc-lf-continue p { max-width: 576px; margin: 12px auto 0; font-size: 16px; line-height: 24px; color: rgb(67, 74, 96); }
:root:root .lmc-lf-continue a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 12px 24px;
  border: 1px solid rgb(33, 48, 94); border-radius: 9999px; color: rgb(33, 48, 94); font-weight: 600; text-decoration: none;
  transition: background-color .15s cubic-bezier(.4, 0, .2, 1);
}
:root:root .lmc-lf-continue a:hover { background: rgba(33, 48, 94, 0.05); color: rgb(33, 48, 94); }

@media (prefers-reduced-motion: reduce) {
  :root:root .lmc-lf *, :root:root .lmc-lf-continue a { transition-duration: 0.01ms !important; }
}
