.wp-hs-form p {
  margin-bottom: 1.5rem;
}
.wp-hs-errors {
  padding-left: 2rem;
}
.wp-hs-errors:not(:has(li)) {
  display: none;
  margin: 0;
  padding: 0;
}
/* HubSpot puts side-by-side fields in one formFieldGroup; the row modifier
   carries that field count through so the layout matches the form editor. */
.wp-hs-form-row {
  column-gap: 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-bottom: 1.5rem;
}
.wp-hs-form-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wp-hs-form-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wp-hs-form-row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 767px) {
  .wp-hs-form-row {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* A row holding only hidden fields would still occupy a grid track. */
.wp-hs-form-row:not(:has(.wp-hs-form-group:not(.wp-hs-hidden))) {
  display: none;
}
.wp-hs-form-group {
  margin-bottom: 0;
}
.wp-hs-label {
  display: block;
  margin: 0;
  padding: 0;
}
/* `.wp-hs-form p` outranks a lone class, so this needs the extra specificity
   or the generic paragraph margin-bottom wins and pads the label/input gap. */
.wp-hs-form .wp-hs-description {
  font-size: 1.5rem;
  margin: .75rem 0 0;
  padding: 0;
}
.wp-hs-form a {
  text-decoration: underline;
}
.wp-hs-required {
  color: red;
}

.wp-hs-text,
.wp-hs-number,
.wp-hs-phonenumber,
.wp-hs-select {
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 0.25rem;
  font-size: 1.5rem;
  padding: .5rem;
  width: 100%;
}

.wp-hs-label {
  font-size: 1.75rem !important;
  line-height: 1.3 !important;
  margin-bottom: .75rem;
  font-weight: 400 !important;
}
.wp-hs-input-wrap {
  background-color: #fff;
  border-radius: 0.9rem;
}
.wp-hs-text,
.wp-hs-number,
.wp-hs-phonenumber,
.wp-hs-select,
.wp-hs-textarea  {
  background-color: #fff;
  border: 1px solid #D9D9D9;
  border-radius: 0.9rem;
  color: inherit;
  font-size: 1.5rem;
  line-height: 2.4rem !important;
  max-width: 100% !important;
  outline: none !important;
  padding: 1rem 1.8rem !important;
  width: 100% !important;
}
.wp-hs-text:focus,
.wp-hs-number:focus,
.wp-hs-phonenumber:focus,
.wp-hs-select:focus,
.wp-hs-textarea:focus {
  background-color: #fff;
}
.wp-hs-number {
  appearance: auto !important;
}
.wp-hs-textarea {
  height: 320px;
}
.wp-hs-button {
  align-items: center;
  background-color: #f9514e;
  border: 1px solid #f9514e;
  border-radius: 18px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 1.6rem !important;
  justify-content: center;
  line-height: 1.3;
  padding: 1.26rem 2.85rem;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
  width: fit-content;
}
.wp-hs-button:disabled {
  background-color: #aaa;
  border: 1px solid #aaa;
  cursor: not-allowed;
}
.wp-hs-radio {
  margin-top: 2rem;
}
.wp-hs-checkboxes label,
.wp-hs-radio label {
  cursor: pointer;
  display: block;
  margin-bottom: 1rem;
  user-select: none;
}
.wp-hs-checkboxes [type=checkbox],
.wp-hs-radio [type=radio] {
  appearance: auto;
  height: 16px;
  width: 16px;
  margin-right: .5rem;
}
.wp-hs-hidden {
  display: none;
}