/* ─── Forms — lead/contact cards, newsletter pill, calculator fields,
   consent, status messages (demo forms and the CF7 versions share these). */
.lead-f,
.calc-f {
  display: grid;
  gap: 16px;
}

.lead-f {
  background: var(--paper);
  border-radius: var(--r);
  padding: 22px;
  box-shadow: var(--sh);
}

.lead-f label,
.calc-f label {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mut);
  min-width: 0;
}

.lead-f input:not([type="checkbox"]),
.lead-f select,
.lead-f textarea,
.calc-f input,
.calc-f select {
  width: 100%;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-xs);
  padding: 12px 14px;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  transition: border-color .2s;
}

.lead-f select,
.calc-f select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--mut) 50%), linear-gradient(135deg, var(--mut) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.lead-f textarea {
  resize: vertical;
}

.lead-f input:focus,
.lead-f select:focus,
.lead-f textarea:focus,
.calc-f input:focus,
.calc-f select:focus {
  outline: none;
  border-color: var(--g2);
}

[aria-invalid="true"] {
  border-color: var(--negative-color) !important;
}

.f-row {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .lead-f {
    padding: 34px;
  }

  .f-row--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .f-row--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Newsletter pill row (footer, on dark green) */
.nl__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--on-dark-line);
  border: 1px solid color-mix(in srgb, var(--surface-color) 20%, transparent);
  border-radius: var(--r-sm);
  padding: 6px;
}

.nl__row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 16px;
  color: var(--on-dark);
  outline: none;
}

.nl__row input::placeholder {
  color: var(--on-dark-faint);
}

@media (min-width: 640px) {
  .nl__row {
    flex-direction: row;
    border-radius: 999px;
  }
}

/* Honeypot */
.hp {
  position: absolute;
  left: -9999px;
}

.consent {
  display: flex !important;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px !important;
  font-weight: 400 !important;
  color: var(--mut);
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--g);
}

.consent a {
  text-decoration: underline;
}

/* Status message (demo forms) */
.status {
  display: none;
  margin: 0;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 12px;
}

.status.is-shown {
  display: block;
}

.status--ok {
  background: color-mix(in srgb, var(--positive-color) 12%, var(--surface-color));
  color: var(--positive-color);
}

.status--err {
  background: color-mix(in srgb, var(--negative-color) 10%, var(--surface-color));
  color: var(--negative-color);
}

/* Segmented control (calculator) */
.seg {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 4px;
  justify-self: start;
}

.seg button {
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 500;
}

.seg button[aria-pressed="true"] {
  background: var(--g);
  color: var(--on-dark);
}

/* Search field on search.php */
.search-f {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-top: 20px;
}

.search-f input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--paper);
}
