/* Willow Springs standalone Facility Lead Form compatibility layer.
   Scoped to the migration wrapper so legacy campaign CSS cannot leak in. */
.wsr-legacy-lead-form {
  --lf-accent: #825841;
  --lf-accent-dark: #6b4835;
  --lf-accent-soft: rgba(130, 88, 65, 0.18);
  --lf-cta: #f9bd15;
  --lf-cta-dark: #e5ab0c;
  --lf-cta-ink: #222222;
  --lf-ink: #222222;
  --lf-text: #212529;
  --lf-card: #ffffff;
  --lf-panel: #f8f4f2;
  --lf-line: rgba(130, 88, 65, 0.24);
  --lf-border: #222222;
  --lf-muted: #555555;
  --lf-ph: #767676;
  --lf-err: #b3261e;
  --lf-serif: "Noto Serif", Georgia, serif;
  --lf-sans: Poppins, Arial, sans-serif;
  display: block;
  width: 100%;
  min-width: 0;
  padding: 24px;
  color: var(--lf-text);
  background: var(--lf-card);
  border-radius: 5px;
  text-align: left;
  box-sizing: border-box;
  container-type: inline-size;
}

.wsr-legacy-lead-form *,
.wsr-legacy-lead-form *::before,
.wsr-legacy-lead-form *::after {
  box-sizing: border-box;
}

.wsr-legacy-lead-form .lead-form-wrap {
  max-width: none;
  padding: 0;
  color: var(--lf-text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font-family: var(--lf-sans);
  font-weight: 500;
}

.wsr-legacy-lead-form form.lead-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(230px, calc(50% - 8px))), 1fr));
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--lf-text);
  background: transparent;
}

.wsr-legacy-lead-form .lf-row { display: contents; }
.wsr-legacy-lead-form .lf-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
  margin: 0;
}

.wsr-legacy-lead-form .lf-section-heading,
.wsr-legacy-lead-form .lf-panel,
.wsr-legacy-lead-form .lf-field-checkbox,
.wsr-legacy-lead-form .lf-alert,
.wsr-legacy-lead-form .lf-submit,
.wsr-legacy-lead-form .lf-secure,
.wsr-legacy-lead-form .lf-success { grid-column: 1 / -1; }

.wsr-legacy-lead-form .lf-row:has(input[name="dob"]) .lf-field,
.wsr-legacy-lead-form .lf-row:has(textarea) .lf-field { grid-column: 1 / -1; }

.wsr-legacy-lead-form .lf-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, max(230px, calc(50% - 8px))), 1fr));
  gap: 16px;
  min-width: 0;
  padding: 25px;
  color: var(--lf-text);
  background: var(--lf-panel);
  border: 0;
  border-radius: 5px;
}

.wsr-legacy-lead-form h3.lf-section-heading {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 4px;
  padding: 0;
  color: var(--lf-ink);
  font-family: var(--lf-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
}

.wsr-legacy-lead-form .lf-step-num {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: #ffffff;
  background: var(--lf-accent);
  border-radius: 50%;
  font-family: var(--lf-sans);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.wsr-legacy-lead-form .lf-section-note {
  color: var(--lf-muted);
  font-family: var(--lf-sans);
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
}

.wsr-legacy-lead-form .lf-label {
  display: block;
  margin: 0 0 6px;
  color: var(--lf-ink) !important;
  font-family: var(--lf-sans) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.wsr-legacy-lead-form .lf-required { color: var(--lf-err); }

.wsr-legacy-lead-form .lf-input {
  width: 100% !important;
  max-width: 100%;
  height: auto !important;
  min-height: 44px;
  margin: 0 !important;
  padding: 10px 12px !important;
  color: var(--lf-ink) !important;
  background: var(--lf-card) !important;
  border: 1px solid var(--lf-line) !important;
  border-bottom-color: var(--lf-border) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--lf-sans) !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.wsr-legacy-lead-form textarea.lf-input { min-height: 104px; resize: vertical; }
.wsr-legacy-lead-form .lf-input::placeholder { color: var(--lf-ph) !important; opacity: 1; }
.wsr-legacy-lead-form .lf-input:focus {
  outline: none;
  color: var(--lf-ink) !important;
  border-color: var(--lf-accent) !important;
  box-shadow: 0 0 0 3px var(--lf-accent-soft) !important;
}

.wsr-legacy-lead-form .lf-error {
  margin-top: 6px;
  color: var(--lf-err) !important;
  font-size: 12.5px;
  line-height: 1.4;
}
.wsr-legacy-lead-form .lf-error[hidden],
.wsr-legacy-lead-form .lf-alert[hidden],
.wsr-legacy-lead-form .lf-success[hidden] { display: none; }
.wsr-legacy-lead-form .lf-input-error,
.wsr-legacy-lead-form .lf-input-invalid {
  border-color: var(--lf-err) !important;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.10) !important;
}

.wsr-legacy-lead-form .lf-alert {
  margin: 0;
  padding: 12px 16px;
  border-radius: 3px;
  font-size: 14px;
  line-height: 1.5;
}
.wsr-legacy-lead-form .lf-alert-error {
  color: var(--lf-err);
  background: rgba(179, 38, 30, 0.06);
  border: 1px solid rgba(179, 38, 30, 0.32);
}

.wsr-legacy-lead-form .lf-field-checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 12px;
  margin: 4px 0 0;
}
.wsr-legacy-lead-form .lf-checkbox {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  width: 20px !important;
  height: 20px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  background: var(--lf-card) !important;
  border: 1px solid var(--lf-border) !important;
  border-radius: 3px !important;
  cursor: pointer;
}
.wsr-legacy-lead-form .lf-checkbox:checked {
  background: var(--lf-accent) !important;
  border-color: var(--lf-accent) !important;
}
.wsr-legacy-lead-form .lf-checkbox:checked::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.wsr-legacy-lead-form .lf-checkbox-label {
  margin: 0;
  color: var(--lf-muted) !important;
  font-family: var(--lf-sans) !important;
  font-size: 12.5px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
}

.wsr-legacy-lead-form .lf-submit {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100% !important;
  min-height: 50px;
  margin: 6px 0 0 !important;
  padding: 13px 22px !important;
  color: var(--lf-cta-ink) !important;
  background: var(--lf-cta) !important;
  border: 0 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  font-family: var(--lf-sans) !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-transform: none !important;
  cursor: pointer;
}
.wsr-legacy-lead-form .lf-submit:hover:not(:disabled) { background: var(--lf-cta-dark) !important; }
.wsr-legacy-lead-form .lf-submit:focus-visible {
  outline: 2px solid var(--lf-accent-dark);
  outline-offset: 3px;
}
.wsr-legacy-lead-form .lf-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.wsr-legacy-lead-form .lf-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: var(--lf-muted) !important;
  font-family: var(--lf-sans);
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.4;
}
.wsr-legacy-lead-form .lf-success { padding: 44px 24px; text-align: center; }
.wsr-legacy-lead-form .lf-success-text {
  margin: 0;
  padding: 0;
  color: var(--lf-ink) !important;
  font-family: var(--lf-serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}
.wsr-legacy-lead-form .g-recaptcha,
.wsr-legacy-lead-form iframe { max-width: 100%; }

@media (max-width: 767px) {
  .wsr-legacy-lead-form { padding: 16px; }
  .wsr-legacy-lead-form form.lead-form,
  .wsr-legacy-lead-form .lf-panel { gap: 14px; }
  .wsr-legacy-lead-form .lf-panel { padding: 20px; }
  .wsr-legacy-lead-form h3.lf-section-heading { font-size: 20px; }
  .wsr-legacy-lead-form .lf-submit { font-size: 16px !important; }
}

@container (max-width: 340px) {
  .wsr-legacy-lead-form { padding: 12px; }
  .wsr-legacy-lead-form .lf-panel { padding: 16px; }
}
