/* H2E custom lead form. Scoped to .h2e-lf, brand tokens from context/home-eco-enr.md. */
.h2e-lf,
.entry-content > form.h2e-lf,
.wp-block-group form.h2e-lf {
  --h2e-green: #2c8937;
  --h2e-green-dark: #1e6127;
  --h2e-green-light: #f0f8f1;
  --h2e-orange: #fc8b11;
  --h2e-text: #111c14;
  --h2e-muted: #3a5040;
  --h2e-border: #e4ebe5;
  --h2e-error: #b3261e;
  background: #fff;
  border: 1px solid var(--h2e-border);
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(17, 28, 20, 0.08);
  color: var(--h2e-text);
  font-size: 15px;
  line-height: 1.35;
  margin: 24px auto;
  max-width: 480px;
  padding: 12px;
  width: 100%;
}
.h2e-lf * {
  box-sizing: border-box;
}
.h2e-lf__progress {
  background: var(--h2e-green-light);
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}
.h2e-lf__bar {
  background: var(--h2e-green);
  display: block;
  height: 100%;
  transition: width 0.25s ease;
  width: 33%;
}
.h2e-lf__steplabel {
  color: var(--h2e-muted);
  font-size: 14px;
  margin: 8px 0 4px;
}
.h2e-lf__step {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}
.h2e-lf__step[hidden],
.h2e-lf [hidden] {
  display: none !important;
}
.h2e-lf legend {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 8px;
  outline: none;
  padding: 0;
}
.h2e-lf__cards {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}
.h2e-lf__card {
  align-items: center;
  border: 2px solid var(--h2e-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 8px;
  position: relative;
}
.h2e-lf__card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.h2e-lf__card input {
  opacity: 0;
  position: absolute;
}
.h2e-lf__card:has(input:checked) {
  background: var(--h2e-green-light);
  border-color: var(--h2e-green);
}
.h2e-lf__card:has(input:focus-visible) {
  outline: 3px solid var(--h2e-orange);
  outline-offset: 2px;
}
.h2e-lf__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 8px 0 4px;
}
.h2e-lf__opt {
  color: var(--h2e-muted);
  font-weight: 400;
}
.h2e-lf__input {
  border: 1px solid #b9c7bc;
  border-radius: 8px;
  font-size: 16px;
  min-height: 40px;
  padding: 8px 10px;
  width: 100%;
}
.h2e-lf__input:focus {
  border-color: var(--h2e-green);
  outline: 3px solid rgba(44, 137, 55, 0.25);
}
.h2e-lf [aria-invalid="true"] {
  border-color: var(--h2e-error);
}
.h2e-lf__area {
  min-height: 72px;
  resize: vertical;
}
.h2e-lf__choice {
  align-items: center;
  border: 1px solid var(--h2e-border);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  margin-bottom: 6px;
  min-height: 36px;
  padding: 6px 10px;
}
.h2e-lf__choice:has(input:checked) {
  background: var(--h2e-green-light);
  border-color: var(--h2e-green);
}
.h2e-lf__choice input,
.h2e-lf__consent input {
  accent-color: var(--h2e-green);
  flex: 0 0 auto;
  height: 20px;
  width: 20px;
}
.h2e-lf__choice--inline {
  display: inline-flex;
  margin-right: 6px;
}
.h2e-lf__consent {
  align-items: flex-start;
  color: var(--h2e-muted);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  gap: 8px;
  margin-top: 8px;
}
.h2e-lf__consent input {
  margin-top: 2px;
}
.h2e-lf__rgpd,
.h2e-lf__reassure {
  color: var(--h2e-muted);
  font-size: 12px;
  margin: 12px 0 0;
}
.h2e-lf__reassure {
  font-size: 14px;
  text-align: center;
}
.h2e-lf__note {
  background: var(--h2e-green-light);
  border-radius: 8px;
  font-size: 14px;
  margin: 8px 0 0;
  padding: 8px 10px;
}
.h2e-lf__error {
  color: var(--h2e-error);
  font-size: 14px;
  font-weight: 600;
  margin: 6px 0 0;
}
.h2e-lf__hp {
  display: none !important;
}
.h2e-lf__nav {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.h2e-lf button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  min-height: 44px;
  padding: 8px 14px;
}
.h2e-lf__next,
.h2e-lf__submit {
  background: var(--h2e-orange);
  color: #1f0c0c;
  flex: 1;
  width: 100%;
}
.h2e-lf__step[data-step="1"] .h2e-lf__next {
  margin-top: 16px;
}
.h2e-lf__next:hover,
.h2e-lf__submit:hover {
  background: #ff8c0f;
}
.h2e-lf--sending .h2e-lf__submit {
  cursor: wait;
}
.h2e-lf__wait {
  align-items: center;
  color: var(--h2e-green-dark);
  display: flex;
  font-size: 14px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  margin: 10px 0 0;
}
.h2e-lf__wait[hidden] {
  display: none !important;
}
.h2e-lf__spin {
  animation: h2e-lf-spin 0.8s linear infinite;
  border: 2px solid var(--h2e-green-light);
  border-radius: 50%;
  border-top-color: var(--h2e-green);
  display: inline-block;
  height: 16px;
  width: 16px;
}
@keyframes h2e-lf-spin {
  to { transform: rotate(360deg); }
}
.h2e-lf__back {
  background: #fff;
  border: 1px solid var(--h2e-border) !important;
  color: var(--h2e-muted);
}
.h2e-lf button:focus-visible {
  outline: 3px solid var(--h2e-green);
  outline-offset: 2px;
}
@media (max-width: 420px) {
  .h2e-lf {
    padding: 16px;
  }
  .h2e-lf__cards {
    grid-template-columns: 1fr;
  }
}
