/* eco4schemewales lead forms (2026-10-27).
   Controls follow the parts bin's Starwind picks (input, native-select, label, textarea: 44px tall, 16px text,
   3px focus ring, red border when invalid); colours, fonts, corners and shadows are the site's own tokens.
   Tick boxes and radio buttons stay native, inside larger bordered rows: the bin has no adopt-grade choice part. */
.lf {
  background: var(--color-surface-0, #fff);
  border: 1px solid var(--color-surface-200, #e7e5e4);
  border-radius: var(--radius-lg, 16px);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  color: var(--color-text-primary, #0d1418);
  font-family: var(--font-sans);
  text-align: left;
}
.lf-head {
  padding: 1.5rem 1.5rem 1.25rem;
  background: linear-gradient(180deg, var(--color-brand-50, #eef3fb) 0%, #fff 100%);
  border-bottom: 1px solid var(--color-surface-200, #e7e5e4);
}
.lf-title {
  margin: 0 0 .375rem;
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.lf-sub { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--color-text-secondary, #475569); }
.lf-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: .375rem 1.125rem;
  margin: .875rem 0 0;
  padding: 0;
  list-style: none;
  font-size: .85rem;
  font-weight: 600;
  color: var(--color-brand-700, #14305f);
}
.lf-ticks li { display: flex; align-items: center; gap: .375rem; }
.lf-ticks svg { flex: none; width: 1rem; height: 1rem; color: var(--color-success, #10b981); }
.lf-body { display: grid; gap: 1.5rem; padding: 1.5rem; }
.lf-step { display: grid; gap: 1rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.lf-step-title {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .875rem;
  padding: 0;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-brand-600, #1f4485);
}
.lf-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--color-brand-600, #1f4485);
  color: #fff;
  font-size: .75rem;
  letter-spacing: 0;
}
.lf-row { display: grid; gap: 1rem; }
/* align-content: start keeps a field's box at the top when its row-mate is taller (e.g. has a hint) */
.lf-field { display: grid; align-content: start; gap: .4rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.lf-label { padding: 0; font-size: .95rem; font-weight: 500; line-height: 1.35; color: var(--color-text-primary, #0d1418); }
.lf-opt { font-weight: 400; color: var(--color-text-secondary, #475569); }
.lf-hint { font-size: .8125rem; line-height: 1.45; color: var(--color-text-secondary, #475569); }
.lf-input, .lf-select, .lf-textarea {
  width: 100%;
  height: 2.75rem;
  margin: 0;
  padding: 0 .75rem;
  font: inherit;
  font-size: 1rem;
  color: inherit;
  background-color: #fff;
  border: 1px solid #a8a29e;
  border-radius: var(--radius-md, 10px);
  box-shadow: 0 1px 2px rgb(13 33 67 / .05);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lf-textarea { height: auto; min-height: 7.5rem; padding: .625rem .75rem; line-height: 1.5; resize: vertical; }
.lf-select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d1418' stroke-opacity='.55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 1rem;
  cursor: pointer;
}
.lf-input::placeholder, .lf-textarea::placeholder { color: #8a8f98; }
.lf-input:hover, .lf-select:hover, .lf-textarea:hover { border-color: #78716c; }
.lf-input:focus-visible, .lf-select:focus-visible, .lf-textarea:focus-visible {
  border-color: var(--color-brand-500, #2c5aa8);
  box-shadow: 0 0 0 3px rgb(44 90 168 / .25);
}
.lf-input:user-invalid, .lf-select:user-invalid, .lf-textarea:user-invalid {
  border-color: var(--color-error, #ef4444);
  box-shadow: 0 0 0 3px rgb(239 68 68 / .15);
}
.lf-err { display: none; font-size: .8125rem; font-weight: 500; color: #b91c1c; }
.lf-field:has(:user-invalid) > .lf-err { display: block; }
.lf-choices { display: grid; gap: .5rem; }
.lf-choices-3 { grid-template-columns: repeat(3, 1fr); } /* short answers (Yes / No / Not sure) sit side by side even on phones */
.lf-choice {
  display: flex;
  align-items: center;
  gap: .625rem;
  min-height: 2.75rem;
  padding: .5rem .875rem;
  font-size: .95rem;
  line-height: 1.3;
  background: #fff;
  border: 1px solid #d6d3d1;
  border-radius: var(--radius-md, 10px);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.lf-choice:hover { border-color: var(--color-brand-200, #adc3e8); background: var(--color-brand-50, #eef3fb); }
.lf-choice input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--color-brand-600, #1f4485); cursor: pointer; }
.lf-choice:has(input:checked) {
  border-color: var(--color-brand-500, #2c5aa8);
  background: var(--color-brand-50, #eef3fb);
  box-shadow: inset 0 0 0 1px var(--color-brand-500, #2c5aa8);
  font-weight: 600;
}
.lf-choice:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(44 90 168 / .25); }
.lf-field:has(input:user-invalid) .lf-choice { border-color: var(--color-error, #ef4444); }
.lf-foot { display: grid; gap: .875rem; padding-top: .25rem; border-top: 1px solid var(--color-surface-100, #f5f5f4); }
.lf-submit { width: 100%; margin-top: .75rem; font-size: 1.05rem; }
.lf-submit svg { width: 1.125rem; height: 1.125rem; }
.lf-safe { display: flex; gap: .5rem; align-items: flex-start; margin: 0; font-size: .8125rem; line-height: 1.5; color: var(--color-text-secondary, #475569); }
.lf-safe svg { flex: none; width: 1rem; height: 1rem; margin-top: .125rem; color: var(--color-brand-500, #2c5aa8); }
.lf-safe a { color: var(--color-brand-600, #1f4485); text-decoration: underline; }
.lf-gotcha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-plain { padding: 1.5rem; }
@media (min-width: 640px) {
  .lf-row-2, .lf-choices-2 { grid-template-columns: 1fr 1fr; }
  .lf-head { padding: 1.75rem 2rem 1.5rem; }
  .lf-body, .lf-plain { padding: 1.75rem 2rem 2rem; }
  .lf-submit { width: auto; justify-self: start; padding-left: 2rem; padding-right: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  .lf-input, .lf-select, .lf-textarea, .lf-choice { transition: none; }
}
