.atu-form-is-open {
  padding-right: var(--atu-form-scrollbar-width, 0);
  overflow: hidden;
}

.atu-form-modal {
  --atu-color-heading: #120f38;
  --atu-color-brand-green: #00825d;
  --atu-color-brand-green-dark: #006b4c;
  --atu-color-soft-green: #e6f3ef;
  --atu-color-soft-green-strong: #cce6df;
  --atu-color-red-lentil-light: #fce3d4;
  --atu-color-white: #fff;
  --atu-color-modal-surface: #d9dcdb;
  --atu-color-placeholder: #a7aaa9;
  --atu-color-required: #e53b2e;
  --atu-color-error: #b42318;
  --atu-color-error-dark: #8b1a10;
  --atu-font-display: 'TT Firs Neue', sans-serif;
  --atu-font-body: 'Roboto', Arial, sans-serif;
  --atu-space-3: 0.75rem;
  --atu-space-4: 1rem;
  --atu-space-6: 1.5rem;
  --atu-space-8: 2rem;
  --atu-space-12: 3rem;
  --atu-space-16: 4rem;
  --atu-form-modal-width: 64rem;
  visibility: hidden;

  width: min(calc(100% - 4rem), var(--atu-form-modal-width));
  max-width: none;
  max-height: calc(100% - 3rem);
  padding: 0;
  margin: auto;
  overflow: auto;
  color: var(--atu-color-heading);
  background: transparent;
  border: 0;
}

.atu-form-modal[open] {
  visibility: visible;
}

.atu-form-modal:has(.atu-form--lead) {
  --atu-form-modal-width: 54.5rem;
}

.atu-form-modal:has(.atu-form--download) {
  --atu-form-modal-width: 64rem;
}

.atu-form-modal::backdrop {
  --atu-color-backdrop: rgba(43, 37, 39, 0.88);

  background: var(--atu-color-backdrop);
  opacity: 0;
  transition: opacity 150ms linear;
}

.atu-form-modal.is-open::backdrop {
  opacity: 1;
}

.atu-form-modal__panel {
  position: relative;
  box-sizing: border-box;
  min-height: 100%;
  padding: var(--atu-space-12);
  background: var(--atu-color-modal-surface);
  opacity: 0;
  transform: translateY(-3rem);
  transition:
    opacity 300ms ease-out,
    transform 300ms ease-out;
}

.atu-form-modal.is-open .atu-form-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

.atu-form-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  font: 700 2rem/1 var(--atu-font-display);
  color: var(--atu-color-heading);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.atu-form,
.atu-form * {
  box-sizing: border-box;
}

.atu-form {
  font-family: var(--atu-font-body);
}

.atu-form__header {
  margin-bottom: 2rem;
}

.atu-form__title {
  margin: 0 0 0.5rem;
  font-family: var(--atu-font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--atu-color-brand-green);
}

.atu-form__description {
  max-width: 54rem;
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.atu-form__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  row-gap: 1.5rem;
  column-gap: 4rem;
}

.atu-form__field--full {
  grid-column: 1 / -1;
}

.atu-form__label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--atu-color-brand-green);
}

.atu-form__required,
.atu-form__required-note span {
  color: var(--atu-color-required);
}

.atu-form__control {
  display: block;
  width: 100%;
  height: 3.5rem;
  padding: var(--atu-space-3) var(--atu-space-4);
  font: 400 1rem/1.4 var(--atu-font-body);
  color: var(--atu-color-heading);
  background-color: var(--atu-color-white);
  border: 0.125rem solid transparent;
  border-radius: 0;
}

.atu-form__control::placeholder {
  color: var(--atu-color-placeholder);
  opacity: 1;
}

.atu-form__control:focus {
  outline: 0.125rem solid transparent;
  border-color: var(--atu-color-brand-green);
}

.atu-form__control[aria-invalid='true'] {
  background-color: var(--atu-color-soft-green-strong);
}

.atu-form__select {
  padding-right: var(--atu-space-12);
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--atu-color-placeholder) 50%),
    linear-gradient(135deg, var(--atu-color-placeholder) 50%, transparent 50%);
  background-repeat: no-repeat;
  background-position:
    calc(100% - 1.25rem) 1.5rem,
    calc(100% - 0.875rem) 1.5rem;
  background-size:
    0.375rem 0.375rem,
    0.375rem 0.375rem;
}

.atu-form__textarea {
  height: auto;
  min-height: 8rem;
  resize: vertical;
}

.atu-form__checkbox-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}

.atu-form__checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0.25rem 0 0;
  accent-color: var(--atu-color-brand-green);
}

.atu-form__consent-label {
  font-size: 1rem;
  line-height: 1.4;
}

.atu-form__consent-label a {
  color: inherit;
  text-decoration: underline;
}

.atu-form__consent {
  margin-top: 1.5rem;
}

.atu-form__required-note {
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--atu-color-brand-green);
  text-align: right;
}

.atu-form--download .atu-form__required-note {
  text-align: left;
}

.atu-form__error {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  color: var(--atu-color-error);
}

.atu-form__feedback {
  padding: var(--atu-space-4);
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.4;
}

.atu-form__feedback.is-success {
  color: var(--atu-color-brand-green-dark);
  background: var(--atu-color-soft-green);
}

.atu-form__feedback.is-error {
  color: var(--atu-color-error-dark);
  background: var(--atu-color-red-lentil-light);
}

.atu-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.atu-form__submit {
  min-width: 17.25rem;
  padding: var(--atu-space-3) var(--atu-space-4);
  font-family: var(--atu-font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--atu-color-white);
  text-transform: uppercase;
  cursor: pointer;
  background: var(--atu-color-brand-green);
  border: 0.125rem solid transparent;
}

.atu-form__submit:hover,
.atu-form__submit:focus {
  background: var(--atu-color-brand-green-dark);
}

.atu-form.is-submitting {
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .atu-form-modal::backdrop,
  .atu-form-modal__panel {
    transition: none;
  }
}

@media (max-width: 47.9375rem) {
  .atu-form-modal {
    width: min(calc(100% - 2rem), 40rem);
    max-height: calc(100% - 2rem);
  }

  .atu-form-modal__panel {
    padding: var(--atu-space-16) var(--atu-space-6) var(--atu-space-8);
  }

  .atu-form-modal__close {
    top: 1rem;
    right: 1rem;
  }

  .atu-form__fields {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
  }

  .atu-form__field--full {
    grid-column: auto;
  }

  .atu-form__required-note {
    text-align: left;
  }

  .atu-form__submit {
    width: 100%;
    min-width: 0;
  }
}
