.form {
  display: grid;
  gap: 0.375rem;
  max-inline-size: 22rem;
  font: 1rem system-ui, sans-serif;
}

.label {
  margin-block-start: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.field {
  box-sizing: border-box;
  inline-size: 100%;
  padding: 0.5rem 0.75rem;
  font: inherit;
  color: inherit;
  background-color: white;
  border: 1px solid gray;
  border-radius: 0.375rem;
}

.field::placeholder {
  color: dimgray;
  opacity: 1;
}

.field:focus-visible {
  border-color: royalblue;
  outline: 3px solid rgb(65 105 225 / 0.35);
  outline-offset: 0;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-block-start: 0.75rem;
}

.button {
  padding: 0.625rem 1.25rem;
  font: inherit;
  font-weight: 600;
  color: white;
  background-color: royalblue;
  border: 0;
  border-radius: 0.375rem;
  cursor: pointer;
}

.button:hover {
  background-color: mediumblue;
}

.button:disabled {
  background-color: gray;
  cursor: not-allowed;
}