


form {
    box-sizing: border-box;
    /*    
    padding: 2rem;
    border-radius: 1rem;
    background-color: hsl(0, 0%, 100%);
    border: 4px solid hsl(0, 0%, 90%);
    */
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    justify-items: stretch;
    padding: 0 10px;
}

.topRight {
    display: block;
    width: 600px;
    background-color: rgb(109, 176, 189);
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 20px;
}


.full-width {
    grid-column: span 2;
}

.large-label {
    display: inline-block;
    font: bold 1.5rem sans-serif;
    margin-bottom: 0.5rem;
}

.small-label {
    vertical-align: middle;
    display: inline-block;
    margin-left: 0.25rem;
    margin-right: 1.5rem;
    font: 1.25rem sans-serif;
}

button,
fieldset,
input,
legend,
select,
textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

input,
select,
textarea {
    border: 2px solid #333;
    background-color: white;
    border-radius: 0.25rem;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 4px hsl(213, 90%, 70%);
}

input[type="text"],
input[type="email"],
select,
textarea {
    font: 1.25rem / 1.5 sans-serif;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 0.5rem 0.75rem;
}

textarea {
    min-height: 10rem;
}

input::placeholder,
textarea::placeholder {
    opacity: 1;
    /* Firefox */
    color: hsl(213, 73%, 50%);
}

/*
select {
    background: url("../assets/down-arrow.svg") no-repeat center right 0.75rem;
}*/


form {
  display: grid;
  place-content: center;
  /*min-height: 100vh;*/
}

.form-control {
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  line-height: 1.1;
  display: grid;
  grid-template-columns: 1em auto;
  gap: 0.5em;
  color: #FFF;
}

.form-control + .form-control {
  margin-top: 1em;
}

.form-control--disabled {
  color: var(--form-control-disabled);
  cursor: not-allowed;
}

input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  background-color: var(--form-background);
  margin: 0;

  font: inherit;
  color: #FFF;
  width: 1.15em;
  height: 1.15em;
  border: 0.15em solid #FFF;
  border-radius: 0.15em;
  transform: translateY(-0.075em);

  display: grid;
  place-content: center;
}

input[type="checkbox"]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--form-control-color);
  background-color: #44d430;
}

input[type="checkbox"]:checked::before {
  transform: scale(1);
}

input[type="checkbox"]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}

input[type="checkbox"]:disabled {
  --form-control-color: var(--form-control-disabled);
  color: var(--form-control-disabled);
  cursor: not-allowed;
}




/*
input[type="radio"],
input[type="checkbox"] {
    height: 1.5em;
    width: 1.5em;
    vertical-align: middle;
}

input[type="radio"] {
    border-radius: 50%;
}

input[type="radio"]:checked {
    background-image: radial-gradient(hsl(213, 73%, 50%) 40%,
            transparent calc(40% + 1px));
}

input[type="checkbox"]:checked {
    background: url("../assets/check.svg") no-repeat center / 75% auto;
}
*/

button {
    font: 1.25rem sans-serif;
    border-radius: 0.25rem;
    cursor: pointer;
    padding: 0.75rem 1.25rem;
    display: block;
    width: 100%;
}

button:focus {
    outline: none;
    box-shadow: 0 0 0 4px black;
}

button[type="submit"] {
    background-color: hsl(213, 73%, 50%);
    color: white;
}

button[type="submit"]:hover {
    background-color: hsl(213, 73%, 40%);
}

button[type="reset"] {
    text-decoration: underline;
    margin-left: 1rem;
}

button[type="reset"]:hover {
    text-decoration: none;
}

button[type="reset"] {
    text-decoration: underline;
    margin-left: 1rem;
}