.hubspot-general-form--wrapper {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
  gap: 2rem;
  padding-bottom: 20px;
  padding-top: 20px;
  grid-template-areas: "primary primary primary" "secondary secondary secondary";
}

.hubspot-general-form--form {
  position: relative;
  z-index: 3;
  grid-area: primary;
}

.hubspot-general-form--text {
  position: relative;
  z-index: 1;
  grid-area: secondary;
  display: table;
}

.hubspot-general-form--text, .hubspot-general-form--text p {
  font-size: 1rem;
  line-height: 1.3rem;
}

.group-secondary:before {
  content: "";
  display: block;
  width: 150%;
  height: 200px;
  background: #ae2840 url("../../images/con_bg_tint.svg");
  position: absolute;
  background-repeat: no-repeat;
  background-position: center;
  top: -100px;
  left: -25%;
  right: 0;
  z-index: -1;
}

.block-vistra-content-form-header .paragraph {
  padding: 3rem 0;
}

.block-vistra-content-form-header .bg-colour-white {
  background-color: #ae2840;
}

.block-vistra-content-form-header [class*="bg-colour-"] {
  background-color: var(--vistra-forms-primary-color);
}

.block-vistra-content-form-header .hubspot-general-form--form .hubspot-general-form--wrapper {
  background-color: #FFFFFF;
}

.block-vistra-content-form-header .hubspot-general-form--wrapper {
  background-color: var(--vistra-forms-light-color);
  padding: 1rem 1rem;
}

.block-vistra-content-form-header .hs-form .hs-button.primary.large {
  border-radius: 12px;
  font-size: 1.125rem;
}

.block-vistra-content-form-header .hs-form .hs-form-field input[type=text].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field input[type=tel].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field input[type=email].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field select.hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field textarea.hs-input {
  border-radius: 13px;
  background: inherit;
  border: 1px solid #D8D8D8;
  min-height: 55px;
}

.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-text,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-phonenumber,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-select,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-textarea {
  position: relative;
  margin: 20px 0;
}

.block-vistra-content-form-header .hs-form .hs-form-field textarea.hs-input {
  min-height: 80px;
}

.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-text > label,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-phonenumber > label,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-select > label,
.block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-textarea > label {
  position: absolute;
  top: -7px;
  left: 13px;
  color: #181818;
  text-transform: uppercase;
  font-weight: 600;
  background-color: var(--vistra-input-colour);
  padding: 0px 5px;
  border-radius: 5px 5px 0 0;
  max-width: 85%;
}

@media all and (max-width: 388px) {
  .block-vistra-content-form-header .hs-form .hs-form-field.hs-fieldtype-textarea {
    padding-top: 15px;
  }
}

.block-vistra-content-form-header .hs-form .hs-form-field input[type=text].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field input[type=phonenumber].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field input[type=email].hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field select.hs-input,
.block-vistra-content-form-header .hs-form .hs-form-field textarea.hs-input {
  background-color: var(--vistra-input-colour);
}

@media all and (min-width: 48em) {
  .block-vistra-content-form-header .paragraph {
    padding: 5rem 0;
  }
  .block-vistra-content-form-header .hubspot-general-form--wrapper {
    padding: 1rem 1.5rem;
  }
  .block-vistra-content-form-header .bg-colour-white .hubspot-general-form--wrapper {
    padding: 0;
  }
  .block-vistra-content-form-header .hbspt-form .hs-button.primary.large {
    max-width: 30%;
  }
}

@media all and (min-width: 64em) {
  .hubspot-general-form--wrapper {
    grid-template-areas: "primary primary secondary";
  }
  .hubspot-general-form--text > div {
    padding-bottom: 64px;
    display: table-cell;
    vertical-align: bottom;
  }
}
