/* Button hacks - note to check build success*/
/* white red */
.e-button--with-icon::after {
  margin-left: 24px;
  height: 24px;
  content: '';
  width: 24px;
}

.e-button--tertiary.e-button--with-icon::after,
.e-button--tertiary-alt.e-button--with-icon::after {
  margin-left: 16px;
  height: 7px;
  width: 11px;
}

.e-button--primary.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-white-red.svg');
}

.e-button--tertiary.e-button--with-icon::after,
.e-button--tertiary-alt.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-right-plain-white.svg');
  transition: transform var(--ds-animation-curve), background var(--ds-animation-curve);
}

.e-button--tertiary.e-button--with-icon:hover::after,
.e-button--tertiary.e-button--with-icon:focus::after,
.e-button--tertiary-alt.e-button--with-icon:hover::after,
.e-button--tertiary-alt.e-button--with-icon:focus::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-right-plain-red.svg');
  transform: translateX(10px);
}

.c-primary-hero__button-alt .e-button--primary.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-red.svg');
}

/* red */
.e-button--primary-alt.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-red.svg');
}

/* grey */
.e-button--with-icon.e-button--disabled::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-grey.svg');
}

/* black */
.e-button--secondary.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-charcoal.svg');
}

/* red */
.e-button--secondary:focus.e-button--with-icon::after,
.e-button--secondary:hover.e-button--with-icon::after {
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-red.svg');
}

/* Intro copy CTA override */
.c-intro-copy__buttons .hs-cta-wrapper + .hs-cta-wrapper {
  margin-top: var(--ds-spacing-4-x);
}

@media (min-width: 48em) {
  .c-intro-copy__buttons .hs-cta-wrapper + .hs-cta-wrapper {
    margin-left: var(--ds-spacing-5-x);
    margin-top: 0;
  }
}

/* Preview */

.hs-inline-edit .c-header {
  /* prevents modules from being able to get added to the page in preview mode */
  display: none;
}

/* Hubspot forms */
.c-forms .hs-button.primary {
  /* Button reset styles */
  appearance: none;
  border: none;
  background: var(--ds-button-bg-color) url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-white-red.svg') no-repeat calc(100% - var(--ds-spacing-3-x));
  text-decoration: none;
  cursor: pointer;

  /* Base button styles */
  align-items: center;
  background-color: var(--ds-button-bg-color);
  border: 2px solid var(--ds-button-bg-color);
  color: var(--ds-color-primary-white);
  border-radius: 32px;
  display: inline-flex;
  font-family: var(--ds-font-family-secondary);
  font-size: var(--ds-heading-size-h6);
  font-weight: var(--ds-font-weight-medium);
  justify-content: space-between;
  padding: var(--ds-spacing-3-x) var(--ds-spacing-4-x);
  padding-right: 50px;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, border 0.2s ease-in-out;
  text-align: center;
  max-width: 35ch;
  min-width: 140px;
  width: auto;
}

.c-forms .hs-button.primary:hover,
.c-forms .hs-button.primary:focus {
  background: var(--ds-button-bg-color-hover) url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-white-red.svg') no-repeat calc(100% - var(--ds-spacing-3-x));
  border: 2px solid var(--ds-button-bg-color-hover);
  color: var(--ds-color-primary-white);
}

.c-forms .hs-fieldtype-select .input select {
  padding-right: var(--ds-spacing-6-x);
}

.c-forms select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.c-forms select::-ms-expand {
  display: none;
}

.c-forms .hs-fieldtype-select .input {
  position: relative;
}

.c-forms .hs-fieldtype-select .input::after {
  content: '';
  height: 24px;
  width: 24px;
  position: absolute;
  top: calc(50% - 12px);
  right: 12px;
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/arrow-down-charcoal.svg') no-repeat center;
  z-index: 2;
}

.c-forms .hs-form-field .hs-error-msg {
  justify-content: flex-start;
  align-items: center;
  display: flex;
}

.c-forms .hs-error-msg::before {
  content: '';
  height: 16px;
  margin-right: 8px;
  flex-shrink:: 0;
  background: url('https://14563840.fs1.hubspotusercontent-na1.net/hubfs/14563840/raw_assets/public/AND_Digital/images/validation-error.svg') no-repeat center;
  width: 16px;
}