@import url('https://fonts.googleapis.com/css2?family=Public+Sans:wght@100..900&display=swap');

:root {
  --gray: #3d3936;
  --light-gray: #dbe0e7;
  --yellow: #ffd800;
  --blue: #33a3dc;
  --red: #f44f4f;
}

body {
  font-size: 100%;
  color: var(--gray);
  margin: 0;
}

form {
  display: flex;
  flex-flow: column nowrap;
  font-family: 'Public Sans', system-ui, sans-serif;
  gap: 1rem;
}

form div {
  display: flex;
  flex-flow: column nowrap;
  gap: .25rem;
}

form div.buttons {
  flex-flow: row nowrap;
  gap: 1rem;
}

button[type="reset"] {
  background: var(--red);
  color: white;
}

input,
select,
label,
textarea {
  font-size: 1rem;
  font-family: 'Public Sans', system-ui, sans-serif;
}

input:not(input[type='checkbox']),
textarea,
select {
  border: 1px solid #ccc;
  border-radius: 0;
  box-shadow: inset 0 1px 3px #eee;
  display: inline-block;
  padding: 0.5em 0.6em;
}

form button,
form input[type="submit"] {
  background: var(--yellow);
  border: none;
  border-radius: 3px;
  box-shadow: none;
  cursor: pointer;
  font-size: .9rem;
  padding: 0.75rem 1rem;
  user-select: none;
  white-space: nowrap;
  width: fit-content;
  text-box: cap alphabetic;
}

form button:hover,
form input[type="submit"]:hover {
  background: var(--blue);
  color: #fff;
}

label span.required {
  color: var(--red);
}

* {
  &:focus-visible {
    /* outline-offset: 2px; */
    border-color: var(--blue);
    outline: 1px solid var(--blue);
  }
}

select {
  appearance: none;
  background: #fff;
  border: 1px solid var(--light-gray);
  display: block;
  font-weight: 600;
  margin: 0;
  padding: 4px 50px 4px 15px;
  width: 100%;
}

.form-select {
  position: relative;
}

.form-select > .arrow {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 40px;
  border-left: 1px solid var(--light-gray);
  pointer-events: none;
}

.form-select > .arrow::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -4px;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 7px 0 7px;
  border-color: #000 transparent transparent transparent;
}
