.sp-form {
  --sp-red: #d8213b;
  --sp-red-dark: #ac1a2f;
  --sp-red-tint: #faebeb;
  --sp-ink: #000;
  --sp-grey: #4c4c4c;
  --sp-line: #d7d7d7;
  --sp-field: #f7f7f7;

  --hsf-global__font-family: "Facit Web", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --hsf-button__font-family: var(--hsf-global__font-family);
  font-family: var(--hsf-global__font-family);
  --hsf-global__font-size: 1.6rem;
  --hsf-global__color: #000;
  --hsf-global__error-color: var(--sp-red);
  --hsf-row__vertical-spacing: 22px;
  --hsf-row__horizontal-spacing: 20px;
  --hsf-module__vertical-spacing: 8px;
  --hsf-background__padding: 0;
  --hsf-background__background-color: transparent;
  --hsf-erroralert__font-size: 1.4rem;
  font-size: 1.6rem;
}

.sp-frame {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 5px;
  box-shadow: 0 2px 5px 0 rgba(0, 0, 64, .1);
  padding: 36px 40px 32px;
  scroll-margin-top: 110px;
}

.sp-frame:not(.sp-frame--ready) { min-height: 460px; }
.sp-frame:not(.sp-frame--ready) .hs-form-html,
.sp-frame:not(.sp-frame--ready) .sp-frame__head { visibility: hidden; }

.sp-form .sp-progress {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
}

.sp-form .sp-card,
.sp-form .hsfc-Button,
.sp-form .hsfc-TextInput,
.sp-form .hsfc-TextareaInput { font-family: var(--hsf-global__font-family); }

.sp-progress__item {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1.2;
  color: var(--sp-grey);
  white-space: nowrap;
}

.sp-progress__item::before { display: none !important; }
.sp-progress__item:last-child { flex: 0 0 auto; }

.sp-progress__item:not(:last-child)::after {
  content: "";
  flex: 1 1 auto;
  height: 2px;
  min-width: 16px;
  margin: 0 12px 0 2px;
  background: var(--sp-line);
}

.sp-progress__item--done:not(:last-child)::after { background: var(--sp-red); }

.sp-progress__dot {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--sp-grey);
  background: #fff;
  border: 2px solid var(--sp-line);
  border-radius: 50%;
}

.sp-progress__dot svg { width: 14px; height: 14px; }

.sp-progress__item--active,
.sp-progress__item--done { color: var(--sp-ink); }
.sp-progress__item--active { font-weight: 700; }

.sp-progress__item--active .sp-progress__dot,
.sp-progress__item--done .sp-progress__dot {
  color: #fff;
  background: var(--sp-red);
  border-color: var(--sp-red);
}

.sp-count {
  display: none;
  margin: 0 0 6px;
  font-size: 1.4rem;
  color: var(--sp-grey);
}

h2.sp-form-heading { margin-bottom: 24px !important; }

.sp-form .sp-title {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--sp-ink);
  outline: 0;
}

.sp-form .sp-text {
  margin: 0 0 28px;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--sp-grey);
}

.sp-form [data-hsfc-id="Renderer"] { padding: 0; background: transparent; }

.sp-form .hsfc-Step__Content { display: block; padding: 0; }

.sp-form .sp-step-in { animation: sp-step-in .22s ease-out; }

@keyframes sp-step-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-form .sp-step-in { animation: none; }
  .sp-form * { transition: none !important; }
}

.sp-form .hsfc-Row { margin: 0 0 22px; }
.sp-form .hsfc-Row .hsfc-Row { margin-bottom: 0; }

.sp-form .hsfc-Step__Content:has(.sp-row--half) {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 20px;
}

.sp-form .hsfc-Step__Content:has(.sp-row--half) > * { grid-column: 1 / -1; }
.sp-form .hsfc-Step__Content:has(.sp-row--half) > .sp-row--half { grid-column: auto; }

.sp-form .hsfc-FieldLabel {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sp-ink);
  background: none;
  box-shadow: none;
  cursor: default;
}

.sp-form .hsfc-FieldLabel__RequiredIndicator { margin-left: 2px; color: var(--sp-red); }

.sp-form .hsfc-TextInput,
.sp-form .hsfc-TextareaInput {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  font: inherit;
  font-size: 1.6rem;
  color: var(--sp-ink);
  background: var(--sp-field);
  border: 0;
  border-bottom: 1px solid var(--sp-ink);
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  transition: background-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.sp-form .hsfc-TextareaInput {
  height: auto;
  min-height: 130px;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

.sp-form .hsfc-TextInput:hover,
.sp-form .hsfc-TextareaInput:hover { background: #f0f0f0; }

.sp-form .hsfc-TextInput:focus,
.sp-form .hsfc-TextareaInput:focus {
  background: #fff;
  border-bottom-color: var(--sp-red);
  box-shadow: 0 2px 0 0 var(--sp-red);
}

.sp-form [aria-invalid="true"].hsfc-TextInput,
.sp-form [aria-invalid="true"].hsfc-TextareaInput {
  background: var(--sp-red-tint);
  border-bottom-color: var(--sp-red);
}

.sp-form .hsfc-ErrorAlert {
  margin-top: 6px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.35;
  color: var(--sp-red-dark);
}

.sp-form .hsfc-DropdownInput,
.sp-form .hsfc-PhoneInput { position: relative; }

.sp-form .hsfc-TextInput--button { padding-right: 40px; cursor: pointer; }

.sp-form .hsfc-DropdownInput__Caret {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 48px;
  pointer-events: none;
}

.sp-form .hsfc-DropdownInput__Caret span { display: none; }

.sp-form .hsfc-DropdownInput__Caret { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 14px no-repeat; }

.sp-form .hsfc-PhoneInput__FlagAndCaret__Caret {
  width: 14px;
  height: 14px;
  margin: 0;
  border: 0;
  transform: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 6l5 5 5-5' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.sp-form .hsfc-DropdownOptions {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  padding: 0;
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 5px;
  box-shadow: 0 8px 24px rgba(0, 0, 64, .14);
  overflow: hidden;
}

.sp-form .hsfc-DropdownOptions {
  top: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}

.sp-form .hsfc-DropdownOptions__Search {
  padding: 10px;
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
}

.sp-form .hsfc-DropdownOptions__Search .hsfc-TextInput { height: 40px; }

.sp-form .hsfc-DropdownOptions__List {
  max-height: 240px;
  margin: 0 !important;
  padding: 4px 0;
  overflow-y: auto;
  list-style: none;
}

.sp-form .hsfc-DropdownOptions__List__ListItem {
  margin: 0 !important;
  padding: 9px 14px !important;
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--sp-ink);
  background: #fff;
  cursor: pointer;
}

.sp-form .hsfc-DropdownOptions__List__ListItem::before { display: none !important; }

.sp-form .hsfc-DropdownOptions__List__ListItem:hover,
.sp-form .hsfc-DropdownOptions__List__ListItem:focus {
  color: var(--sp-ink);
  background: var(--sp-field);
  outline: 0;
}

.sp-form .hsfc-DropdownOptions__List__ListItem--selected,
.sp-form .hsfc-DropdownOptions__List__ListItem--selected:hover {
  font-weight: 700;
  color: var(--sp-red);
  background: var(--sp-red-tint);
}

.sp-form .hsfc-PhoneInput { display: flex; background: var(--sp-field); }

.sp-form .hsfc-PhoneInput__FlagAndCaret {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 6px;
  width: 64px;
  height: 47px;
  padding: 0 0 0 14px;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.sp-form .hsfc-PhoneInput__FlagAndCaret__Flag { font-size: 1.6rem; line-height: 1; }

.sp-form .hsfc-PhoneInput > .hsfc-TextInput { padding-left: 70px; }
.sp-form .hsfc-PhoneInput__FlagAndCaret:focus-visible { outline: 2px solid var(--sp-red); outline-offset: -2px; }

.sp-has-cards > .hsfc-DropdownInput {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
  pointer-events: none;
}

.sp-has-cards { position: relative; }

.sp-field--lead > .hsfc-FieldLabel {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.sp-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(var(--sp-cols, 3), minmax(0, 1fr));
}

.sp-cards--2 { --sp-cols: 2; }
.sp-cards--3 { --sp-cols: 3; }
.sp-cards--4 { --sp-cols: 4; }
.sp-cards--5 { --sp-cols: 5; }

.sp-form .sp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 118px;
  margin: 0;
  padding: 20px 10px 16px;
  font: inherit;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  color: var(--sp-ink);
  background: #fff;
  border: 1px solid var(--sp-line);
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
  -webkit-appearance: none;
  appearance: none;
  --sp-badge: #fff;
}

.sp-card__icon {
  display: block;
  width: 44px;
  height: 44px;
  color: var(--sp-ink);
  transition: color .15s ease;
}

.sp-card__icon svg { display: block; width: 100%; height: 100%; }
.sp-icon-badge { fill: var(--sp-badge); stroke: none; }

.sp-form .sp-card:hover {
  color: var(--sp-ink);
  text-decoration: none;
  border-color: var(--sp-red);
  box-shadow: 0 2px 8px 0 rgba(0, 0, 64, .12);
}

.sp-form .sp-card:hover .sp-card__icon { color: var(--sp-red); }

.sp-form .sp-card:focus { outline: 0; }

.sp-form .sp-card:focus-visible {
  outline: 2px solid var(--sp-red);
  outline-offset: 2px;
}

.sp-form .sp-card[aria-pressed="true"] {
  background: var(--sp-red-tint);
  border-color: var(--sp-red);
  box-shadow: inset 0 0 0 1px var(--sp-red);
  --sp-badge: var(--sp-red-tint);
}

.sp-form .sp-card[aria-pressed="true"] .sp-card__icon { color: var(--sp-red); }

.sp-form a.sp-card--link,
.sp-form a.sp-card--link:hover,
.sp-form a.sp-card--link:focus { color: var(--sp-ink); text-decoration: none; }

.sp-form a.sp-card--link::before,
.sp-form a.sp-card--link::after { display: none; content: none; }

.sp-card__hint {
  margin-top: -6px;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--sp-grey);
}

.sp-form a.sp-card--link:hover .sp-card__hint { color: var(--sp-red); }

.sp-card__arrow {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  width: 18px;
  height: 18px;
  color: var(--sp-grey);
}

.sp-card__arrow svg { width: 100%; height: 100%; }
.sp-form a.sp-card--link:hover .sp-card__arrow { color: var(--sp-red); }

.sp-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #fff;
  background: var(--sp-red);
  border-radius: 50%;
}

.sp-card__check svg { width: 12px; height: 12px; }
.sp-form .sp-card[aria-pressed="true"] .sp-card__check { display: flex; }

.sp-form .sp-cards--error .sp-card { border-color: var(--sp-red); }

.sp-form .sp-file { position: relative; }

.sp-form .sp-file .hsfc-FileInput {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  clip-path: inset(50%);
}

.sp-form .sp-drop {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 20px 22px;
  background: var(--sp-field);
  border: 1px dashed #999;
  border-radius: 5px;
  box-shadow: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

.sp-form .sp-drop:hover,
.sp-form .sp-drop--over,
.sp-form .sp-file .hsfc-FileInput:focus-visible ~ .sp-drop {
  background: var(--sp-red-tint);
  border-color: var(--sp-red);
}

.sp-drop__icon { flex: 0 0 auto; width: 34px; height: 34px; color: var(--sp-red); }
.sp-drop__icon svg { display: block; width: 100%; height: 100%; }

.sp-drop__body { display: block; flex: 1 1 auto; min-width: 0; }

.sp-drop__title {
  display: block;
  overflow: hidden;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sp-ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sp-drop__link { color: var(--sp-red); text-decoration: underline; }

.sp-drop__hint {
  display: block;
  margin-top: 2px;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--sp-grey);
}

.sp-form .sp-drop--filled { background: #fff; border-style: solid; border-color: var(--sp-line); }

.sp-form .sp-drop__remove {
  flex: 0 0 auto;
  padding: 6px 2px;
  font: inherit;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sp-red);
  background: none;
  border: 0;
  cursor: pointer;
}

.sp-form .sp-drop__remove[hidden] { display: none; }
.sp-form .sp-drop__remove:hover { text-decoration: underline; }

.sp-form .hsfc-DataPrivacyField {
  padding: 18px 20px;
  font-size: 1.4rem;
  line-height: 1.5;
  background: var(--sp-field);
  border-radius: 5px;
}

.sp-form .hsfc-DataPrivacyField span[style] { background-color: transparent !important; }

.sp-form .hsfc-DataPrivacyField .hsfc-RichText { margin: 0 0 10px; padding-left: 32px; }
.sp-form .hsfc-DataPrivacyField .hsfc-Row:last-child .hsfc-RichText:empty { display: none; }

.sp-form .hsfc-DataPrivacyField { display: flex; flex-direction: column; }
.sp-form .hsfc-DataPrivacyField > .hsfc-Row:has(.hsfc-CheckboxField) { order: -1; }

.sp-form .hsfc-CheckboxField .hsfc-FieldLabel {
  position: relative;
  display: block;
  margin: 0 0 6px;
  padding-left: 32px;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}

.sp-form .hsfc-CheckboxInput {
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #fff;
  border: 2px solid var(--sp-red);
  border-radius: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.sp-form .hsfc-CheckboxInput:checked {
  background: var(--sp-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.sp-form .hsfc-CheckboxInput:focus-visible { outline: 2px solid var(--sp-red); outline-offset: 2px; }

.sp-form .hsfc-DataPrivacyField .hsfc-RichText { font-size: 1.4rem; line-height: 1.5; }
.sp-form .sp-blank { display: none; }

.sp-form .hsfc-DataPrivacyField { position: relative; }
.sp-form .hsfc-DataPrivacyField:has(.hsfc-ErrorAlert) { padding-bottom: 46px; }
.sp-form .hsfc-DataPrivacyField .hsfc-ErrorAlert { position: absolute; left: 52px; bottom: 18px; margin: 0; }
.sp-form .hsfc-CheckboxField .hsfc-FieldLabel__RequiredIndicator { display: none; }

.sp-form .hsfc-PhoneInput .hsfc-PhoneInput__FlagAndCaret { border: 0 !important; }

.sp-form .hsfc-NavigationRow { margin: 28px 0 0; padding: 0; }
.sp-frame--first .hsfc-NavigationRow { display: none; }

.sp-form .hsfc-NavigationRow__Alerts:not(:empty) { margin-bottom: 14px; }

.sp-form .hsfc-NavigationRow .hsfc-NavigationRow__Buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-direction: row !important;
  flex-wrap: nowrap;
}

.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button.sp-btn--primary { margin-left: auto; }

.sp-form .hsfc-Button[aria-busy="true"] { opacity: .65; cursor: progress; }

.sp-frame--done .sp-frame__head { display: none; }

.sp-frame--done .hsfc-PostSubmit,
.sp-frame--done .hsfc-Step { text-align: center; padding: 28px 0 8px; }

.sp-frame--done .hsfc-RichText p:last-child:empty { display: none; }

.sp-frame--done .hsfc-RichText p:first-child strong { color: var(--sp-ink); }

.sp-frame--done .hsfc-RichText::before {
  content: "";
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: var(--sp-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.8' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 34px no-repeat;
  border-radius: 50%;
}

@media (max-width: 767.98px) {
  .sp-frame { padding: 24px 18px 22px; }
  .sp-form .sp-progress { margin-bottom: 22px; }
  .sp-progress__label { display: none; }
  .sp-progress__item--active .sp-progress__label { display: inline; }
  .sp-count { display: block; }
  .sp-form .sp-title { font-size: 1.8rem; }
  .sp-form .sp-text { margin-bottom: 22px; }

  .sp-cards--3, .sp-cards--4, .sp-cards--5 { --sp-cols: 2; }
  .sp-cards--3 .sp-card:last-child,
  .sp-cards--5 .sp-card:last-child { grid-column: 1 / -1; }
  .sp-form .sp-card { min-height: 104px; padding: 16px 8px 14px; }

  .sp-form .hsfc-Step__Content:has(.sp-row--half) { display: block; }
}

.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button,
.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):hover,
.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):focus,
.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):active {
  position: relative;
  z-index: 1;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 12px 36px;
  overflow: hidden;
  font-family: var(--hsf-global__font-family);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: #d8213b;
  background: transparent;
  border: 3px solid #d8213b;
  border-radius: 0;
  box-shadow: none;
  outline: 0;
  transform: none;
  filter: none;
  cursor: pointer;
  transition: color .4s cubic-bezier(.4, 0, .2, 1);
}

.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #d8213b;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .25s cubic-bezier(.4, 0, .2, 1);
}

.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):hover,
.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):focus-visible { color: #fff; }

.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):hover::before,
.sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):focus-visible::before {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 767.98px) {
  .sp-form .hsfc-NavigationRow__Buttons .hsfc-Button,
  .sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):hover,
  .sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):focus,
  .sp-form .hsfc-NavigationRow__Buttons .hsfc-Button:not([disabled]):active { padding: 12px 22px; }
}
