/* HubSpot developer-embed forms (hs-form-html), styled to match the site.
   HubSpot injects its own default CSS using "[data-hsfc-id=Renderer] .hsfc-*"
   selectors, so every rule here is prefixed with ".hs-form-html [data-hsfc-id=Renderer]"
   to out-rank it.
   .is-inline  = home page (email + button on one row)
   .is-stacked = contact page newsletter (input above full-width button) */

.hs-form-html {
  width: 100%;
  max-width: 642px;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Form {
  font-family: Calibri, Georgia, sans-serif;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Step {
  border: 0;
  background: transparent;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 0;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Row {
  flex: 1 1 auto;
  width: 100%;
  max-width: 460px;
  margin: 0;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-EmailField {
  width: 100%;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-EmailField > *:not(:last-child) {
  margin-bottom: 0;
}

/* Visually hide the field label (the placeholder acts as the label) */
.hs-form-html [data-hsfc-id=Renderer] .hsfc-FieldLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-TextInput {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #fff;
  color: #333;
  font-family: Calibri, Georgia, sans-serif;
  font-size: 17px;
  line-height: 1.2;
  box-shadow: none;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-TextInput::placeholder {
  color: #6b6b6b;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-TextInput:hover,
.hs-form-html [data-hsfc-id=Renderer] .hsfc-TextInput:active {
  box-shadow: none;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-TextInput:focus {
  outline: none;
  border-color: #e85d2a;
  box-shadow: none;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-ErrorAlert {
  margin-top: 6px;
  color: #c30000;
  font-size: 14px;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow {
  flex: 0 0 auto;
  margin: 0;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow__Alerts:empty {
  display: none;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 52px;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons > * {
  width: auto;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Button {
  width: auto;
  margin: 0;
  padding: 13px 23.5px;
  border: 0;
  border-radius: 999px;
  background-color: #e85d2a;
  color: #fff;
  font-family: Calibre, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
  box-shadow: none;
  cursor: pointer;
  transition: transform .2s;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):hover,
.hs-form-html [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):focus,
.hs-form-html [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):active {
  background-color: #e85d2a;
  color: #fff;
  box-shadow: none;
}

.hs-form-html [data-hsfc-id=Renderer] .hsfc-Button:not([disabled]):hover {
  transform: scale(1.05);
}

/* Stacked variant (contact page) */
.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
  flex-direction: column;
  align-items: stretch;
}

.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-Row {
  max-width: 100%;
}

.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-TextInput {
  background-color: #f7f5f2;
}

.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons,
.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons > *,
.hs-form-html.is-stacked [data-hsfc-id=Renderer] .hsfc-Button {
  width: 100%;
}

@media screen and (max-width: 767px) {
  .hs-form-html [data-hsfc-id=Renderer] .hsfc-Step .hsfc-Step__Content {
    flex-direction: column;
    align-items: stretch;
  }

  .hs-form-html [data-hsfc-id=Renderer] .hsfc-Row {
    max-width: 100%;
  }

  .hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons,
  .hs-form-html [data-hsfc-id=Renderer] .hsfc-NavigationRow__Buttons > *,
  .hs-form-html [data-hsfc-id=Renderer] .hsfc-Button {
    width: 100%;
  }
}
