.form {
  box-shadow: var(--popup-box-shadow);
  padding: var(--Spacing-x3) 0;
  display: grid;
  gap: var(--Spacing-x3);
}

.form > div:not(.buttons) {
  padding: 0 var(--Spacing-x3);
}

.inputs {
  display: grid;
  gap: var(--Spacing-x3);
}

@media screen and (min-width: 768px) {
  .grid {
    grid-template-areas:
      "a a"
      "b c"
      "d d";
  }

  .grid > div:nth-child(1) {
    grid-area: a;
  }
  .grid > div:nth-child(2) {
    grid-area: b;
  }
  .grid > div:nth-child(3) {
    grid-area: c;
  }
  .grid > div:nth-child(4) {
    grid-area: d;
  }
}

.buttons {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--Base-Border-Subtle);
  padding: var(--Spacing-x3) var(--Spacing-x3) 0;
  gap: var(--Spacing-x2);
}

.buttons > button:only-child {
  margin-left: auto;
}

.buttons > button {
  min-width: 140px;
}

.footnote {
  display: grid;
  gap: var(--Spacing-x-half);
}
