/* Match the native fallback form (shown under strict tracking prevention)
   to the same card design as the embedded HubSpot form above. */
.hubspot-native-form {
  width: 100%;
}
.hubspot-native-form__field {
  margin-bottom: 1.5rem;
}
.hubspot-native-form__label {
  display: block;
  font-size: 16px;
  line-height: 24px;
  margin-bottom: 8px;
}
.hubspot-native-form__check {
  font-size: 0.75rem;
  line-height: 1.33;
  color: #000;
}
.hubspot-native-form input[type=text],
.hubspot-native-form input[type=email],
.hubspot-native-form input[type=tel],
.hubspot-native-form input[type=number],
.hubspot-native-form select,
.hubspot-native-form textarea {
  border-radius: 0;
  border-color: #000;
}
.hubspot-native-form .wp-block-buttons {
  width: 100%;
}
.hubspot-native-form .wp-block-button {
  width: 100%;
}
.hubspot-native-form__submit {
  border-radius: 0;
  background: #186bf1;
  color: #fff;
  font-weight: 500;
  width: auto;
  transition: background 0.2s ease;
}
.hubspot-native-form__submit:hover {
  background: rgb(57.66, 128.5657142857, 243.04);
}

/*
 * Forms
 */
.hubspot-image-wrapper img, .hubspot-image-wrapper picture {
  pointer-events: none;
}

.hubspot-form-init {
  width: 100%;
  color: #000;
}
.hubspot-form-init.text-white label {
  color: #fff;
}
.hubspot-form-init.text-white .hs-button.primary {
  background: #fff;
  color: #000;
  margin-top: 24px;
}
.hubspot-form-init a:not(.wp-block-button__link) {
  text-decoration: underline;
  font-weight: 500;
}
.hubspot-form-init .form-columns-2 {
  max-width: 100% !important;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 16px;
}
.hubspot-form-init .form-columns-2 .hs-form-field {
  float: none !important;
  width: 100% !important;
}
.hubspot-form-init .form-columns-2 .input {
  margin-right: 0 !important;
}
.hubspot-form-init .form-columns-1,
.hubspot-form-init .form-columns-0 {
  max-width: 100% !important;
}
.hubspot-form-init .form-columns-1 .input,
.hubspot-form-init .form-columns-0 .input {
  margin-right: 0 !important;
}
.hubspot-form-init .form-columns-1 .input input[type=text],
.hubspot-form-init .form-columns-1 .input input[type=email],
.hubspot-form-init .form-columns-1 .input input[type=tel],
.hubspot-form-init .form-columns-1 .input input[type=password],
.hubspot-form-init .form-columns-1 .input select,
.hubspot-form-init .form-columns-0 .input input[type=text],
.hubspot-form-init .form-columns-0 .input input[type=email],
.hubspot-form-init .form-columns-0 .input input[type=tel],
.hubspot-form-init .form-columns-0 .input input[type=password],
.hubspot-form-init .form-columns-0 .input select {
  width: 100% !important;
}
.hubspot-form-init .form-columns-1 .input textarea,
.hubspot-form-init .form-columns-0 .input textarea {
  width: 100% !important;
}

/* Native fallback form, shown when the HubSpot embed is blocked by the
   browser's tracking prevention (Strict mode). Submits same-origin. */
.hubspot-native-form {
  width: 100%;
}
.hubspot-native-form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 16px;
}
.hubspot-native-form__row--cols-2 {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 767px) {
  .hubspot-native-form__row--cols-2 {
    grid-template-columns: 1fr;
  }
}
.hubspot-native-form__field {
  margin-bottom: 16px;
}
.hubspot-native-form__req {
  color: #000;
}
.hubspot-native-form input[type=text],
.hubspot-native-form input[type=email],
.hubspot-native-form input[type=tel],
.hubspot-native-form input[type=number],
.hubspot-native-form select,
.hubspot-native-form textarea {
  display: block;
  width: 100%;
  border-radius: 2px;
  border: 1px solid #000;
  background-color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  color: #000;
}
.hubspot-native-form input[type=text],
.hubspot-native-form input[type=email],
.hubspot-native-form input[type=tel],
.hubspot-native-form input[type=number],
.hubspot-native-form select {
  height: 40px;
}
.hubspot-native-form textarea {
  resize: vertical;
  min-height: 96px;
}
.hubspot-native-form__check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: inherit;
  cursor: pointer;
}
.hubspot-native-form__check input {
  margin-top: 3px;
  flex: 0 0 auto;
}
.hubspot-native-form__check p {
  display: inline;
  font-size: 0.75rem;
}
.hubspot-native-form__check a {
  text-decoration: underline;
}
.hubspot-native-form__privacy {
  font-size: 13px;
  line-height: 18px;
  color: inherit;
  opacity: 0.7;
  margin-bottom: 16px;
}
.hubspot-native-form__messages {
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 12px;
}
.hubspot-native-form__messages:empty {
  display: none;
}
.hubspot-native-form__messages.is-error {
  color: #df2033;
}
.hubspot-native-form__messages.is-success {
  color: inherit;
}
.hubspot-native-form__submit {
  width: auto;
}
.hubspot-native-form__submit.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.hs-form-field {
  margin-bottom: 16px;
}
.hs-form-field .hs-error-msg {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  margin-top: 4px;
  color: #df2033;
}
.hs-form-field .inputs-list {
  margin: 0;
  padding: 0;
  list-style-type: none;
}
.hs-form-field .inputs-list p {
  font-size: 14px;
}
.hs-form-field input[type=text],
.hs-form-field input[type=email],
.hs-form-field input[type=tel],
.hs-form-field input[type=password],
.hs-form-field select {
  display: block;
  height: 40px;
  width: 100%;
  border-radius: 2px;
  border: 1px solid #000;
  background-color: #fff;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  color: #000;
}
.hs-form-field input[type=text].error,
.hs-form-field input[type=email].error,
.hs-form-field input[type=tel].error,
.hs-form-field input[type=password].error,
.hs-form-field select.error {
  background-color: #fff0f1;
  border-color: #df2033;
  color: #df2033;
}
.hs-form-field select {
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAUCAMAAACtdX32AAAAdVBMVEUAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAhMdQaAAAAJ3RSTlMAAAECAwQGBwsOFBwkJTg5RUZ4eYCHkJefpaytrsXGy8zW3+Do8vNn0bsyAAAAYElEQVR42tXROwJDQAAA0Ymw1p9kiT+L5P5HVEi3qJn2lcPjtIuzUIJ/rhIGy762N3XaThqMN1ZPALsZPEzG1x8LrFL77DHBnEMxBewz0fJ6LyFHTPL7xhwzWYrJ9z22AqmQBV757MHfAAAAAElFTkSuQmCC);
  background-position: 100%;
  background-repeat: no-repeat;
  -moz-appearance: none;
       appearance: none;
  -webkit-appearance: none;
}
.hs-form-field input[type=checkbox]:checked + label:before {
  background: #D6E7FF;
  border: 1px solid #D6E7FF;
}
.hs-form-field textarea {
  display: block;
  border-radius: 2px;
  border: 1px solid #000;
  padding: 8px 16px;
  font-size: 16px;
  line-height: 24px;
  width: 100%;
}
.hs-form-field label {
  margin-bottom: 8px;
  display: block;
  font-size: 16px;
  line-height: 24px;
  color: #000;
}

.hs-richtext {
  color: #000;
  margin-bottom: 16px;
}
.hs-richtext p {
  margin: 0 0 1em 0;
}
.hs-richtext a {
  color: #186BF2;
  font-weight: 500;
}

.hs-form-booleancheckbox label {
  display: inline-block;
  cursor: pointer;
}
.hs-form-booleancheckbox {
  /*
   * Custom checkbox
   */
}
.hs-form-booleancheckbox .hs-form-booleancheckbox-display {
  font-family: system-ui, sans-serif;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 20px auto;
  gap: 0 12px;
}
.hs-form-booleancheckbox .hs-form-booleancheckbox-display > span {
  margin-left: 0 !important;
}
.hs-form-booleancheckbox .hs-form-booleancheckbox-display + .hs-form-booleancheckbox-display {
  margin-top: 1em;
}
.hs-form-booleancheckbox .hs-form-booleancheckbox-display--disabled {
  color: #6C7789;
  cursor: not-allowed;
}
.hs-form-booleancheckbox input[type=checkbox] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  -moz-appearance: none;
       appearance: none;
  /* For iOS < 15 */
  background-color: var(--form-background);
  /* Not removed via appearance */
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 20px;
  height: 20px;
  border: 1px solid currentColor;
  border-radius: 2px;
  display: grid;
  place-content: center;
  margin-top: 4px;
}
.hs-form-booleancheckbox input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #186BF2;
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}
.hs-form-booleancheckbox input[type=checkbox]:checked::before {
  transform: scale(1);
}

.hs-button.primary {
  height: 40px;
  width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  border: 0;
  background: #000;
  padding: 8px 24px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  color: #fff;
}

@media (max-width: 767px) {
  .form-columns-2 {
    grid-template-columns: 1fr;
  }
}
