input {
  background-color: var(--color-input);
}

input:focus {
  background-color: var(--color-input-focus);
}

input:required {
  background-color: var(--color-input-required);
}

.form_input {
  position: relative;
  padding: 10px 0 0 0;
  margin-bottom: 15px;
}

label {
  display: block;
  color: black;
  font-family: sans-serif;
  font-size: 16px;
  position: absolute;
  top: 32px;
  left: 48px;
  pointer-events: none;
  transition: top 0.25s ease-in-out, left 0.25s ease-in-out, opacity 0.25s ease-in-out;
  opacity: 0;
}

input[type=text]:not(:placeholder-shown) , input[type=password]:not(:placeholder-shown) {
  /* outline: 1px solid limegreen; */
  background-color: var(--color-primary);
}

input[type=text]:focus:not(:placeholder-shown) , input[type=password]:focus:not(:placeholder-shown) {
  /* outline: 1px solid limegreen; */
  background-color: var(--color-input-focus);
}

input[type=text]:not(:placeholder-shown) + label, input[type=password]:not(:placeholder-shown) + label {
  background-color: none;
  padding: 0 5px;
  color: black;
  font-size: 14px;
  top: 0px;
  left: 48px;
  opacity: 1;
}

input[type=text]:focus:not(:placeholder-shown) + label, input[type=password]:focus:not(:placeholder-shown) + label {
  color: black;
  background-color: none; 
}

input[type=text]:focus + label, input[type=password]:focus + label {
  background-color: none;
  padding: 0px 5px;
  font-size: 14px;
  top: -10px;
  left: 38px;
  opacity: 1;
}

input[type=text], input[type=password] {
  border: 1px solid grey;
  font-family: sans-serif;
  font-size: 16px;
  height: 35px;
  width: 200px;
  padding: 0 10px;
  border-radius: 8px;
}

input[type=text]::placeholder, input[type=password]::placeholder {
  opacity: 1;
}

input[type=text]:focus::placeholder, input[type=password]:focus::placeholder {
  opacity: 0;
}


/*  div radio buttons */
.div_radio {
  display : block;
}

.div_radio > input{ /* HIDE RADIO */
  visibility: hidden; /* Makes input not-clickable */
  position: absolute; /* Remove input from document flow */
}

.div_radio > input + div{ /* DIV STYLES */
  margin: 5px;
  padding: 7px;
  font-size: 0.90em;
  width: auto;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  outline: none;
  color: white;
  background-color: rgb(54, 163, 207);
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px rgb(193, 191, 191);
}

.div_radio > input:checked + div { /* (RADIO CHECKED) DIV STYLES */
  background-color: rgb(57, 214, 57);
  color: black;
  border-radius: 0px;
  pointer-events:none;
  box-shadow: none;
}

.redPlaceholder::-webkit-input-placeholder {
  color: red;
}