eq-form-layout,
.eq-form-layout {
  display: grid;
  grid-template-rows: minmax(min-content, 1fr) auto;
  width: 100%;
  min-height: var(--eq-form-layout-min-height, 100%);
  box-sizing: border-box;
}

.eq-form-layout__main,
.eq-form-layout__footer {
  width: 100%;
  max-width: var(--eq-form-layout-max-width, 80rem);
  min-width: 0;
  margin-inline: auto;
  padding-inline: var(--eq-form-layout-inline-padding, clamp(1rem, 4vw, 3rem));
  box-sizing: border-box;
}

.eq-form-layout__main {
  align-self: stretch;
  display: grid;
  align-content: center;
  grid-template-columns: var(
    --eq-form-layout-columns,
    repeat(auto-fit, minmax(min(100%, var(--eq-form-layout-item-min-width, 16rem)), 1fr))
  );
  gap: var(--eq-form-layout-gap, 1rem);
}

.eq-form-layout__main > * {
  width: 100%;
  max-width: var(--eq-form-layout-item-max-width, 32rem);
  min-width: 0;
  justify-self: center;
  box-sizing: border-box;
}

.eq-form-layout__main > [data-form-span="full"] {
  grid-column: 1 / -1;
}

.eq-form-layout__footer {
  padding-top: var(--eq-form-layout-footer-gap, 1rem);
}

.eq-form-layout__footer[hidden] {
  display: none !important;
}
