form {
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 2rem;
  background-color: #0f9d58;
  color: white;
  border-radius: 1rem;
  container-type: inline-size;
  container-name: form;
}

.col {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  align-content: center;
}

h3,
h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid white;
  width: 100%;
}

:is(h3, h4):not(:first-child) {
  margin-top: 0.75rem;
}

input[type="text"] {
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-color);
  font-family: monospace;
}

input[type="text"] {
  overflow-x: auto;
}

input[role="button"] {
  cursor: pointer;
}

input[type="radio"] {
  margin: 0;
}

label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.col > label {
  margin-bottom: 0.25rem;
}

@container form (max-width: 525px) {
  .row.radio-group {
    align-items: start;
    gap: 0.25rem;
  }

  .radio-group {
    flex-direction: column;
  }

  .radio-group label {
    margin-left: 0.2rem;
  }
}

@container form (min-width: 525px) {
  .radio-group label {
    margin-left: 0.2rem;
    margin-right: 0.75rem;
  }
}
