/**
 * Applies the site's styled-form look (matching #wpforms-11 / 84 / 298 / 461)
 * to the newer WPForms so they match the special-page footer form:
 *   1887 = Footer Form (all pages, before footer)
 *   1893 = Ducted heat pump Home Assessment Footer
 *   1890 = Ducted Heat Pump Hero
 *   1858 = Other Services Hero Form
 * Hand-authored because the theme has no active Tailwind build step.
 */

#wpforms-1887,
#wpforms-1893,
#wpforms-1890,
#wpforms-1858 {
  margin-top: 0;
}

/* Text inputs + textarea */
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) input:not([type="checkbox"]),
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) textarea {
  color: #000;
  box-shadow: none;
  border-color: #ccc;
  border-radius: 0;
  height: 46px;
}
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) input:not([type="checkbox"])::placeholder,
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) textarea::placeholder {
  opacity: .9;
}
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) input:not([type="checkbox"]):focus,
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) textarea:focus {
  border-color: #999;
}
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) textarea {
  padding-block: 8px;
  height: 100px;
}

/* Two-column checkbox choices (e.g. "Product you are interested in?") */
:is(#wpforms-1887, #wpforms-1893) .wpforms-field-checkbox ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}
@media (max-width: 640px) {
  :is(#wpforms-1887, #wpforms-1893) .wpforms-field-checkbox ul {
    grid-template-columns: 1fr;
  }
}

/* Submit button — centred, primary orange, square, capitalised */
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) .wpforms-submit {
  display: block;
  margin-inline: auto;
  margin-top: 32px;
  width: 100%;
  max-width: 170px;
  height: auto;
  padding-block: 12px;
  background-color: var(--color-primary, #df6442);
  color: #fff;
  border: none;
  border-radius: 0;
  font-size: 1rem;
  text-transform: capitalize;
}
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) .wpforms-submit:after {
  content: none;
}
:is(#wpforms-1887, #wpforms-1893, #wpforms-1890, #wpforms-1858, #wpforms-2260) .wpforms-submit:hover {
  background-color: #000;
}

/* Solar footer quote form (2260) — wider button to fit the longer label */
#wpforms-2260 .wpforms-submit { max-width: none; width: auto; padding-inline: 30px; }
