/* ROWS */
.cb-form__row {
  display: flex;
  grid-column-gap: 1.875rem;
  margin-bottom: 1rem;
  width: 100%;
  align-items: center;
  position: relative;
}
.cb-form__row > div {
  flex-grow: 1;
  flex-basis: 50%;
}

/* INPUT - TEXT */
.cb-textinput {
  position: relative;
}
.cb-textinput input,
.cb-textinput textarea,
.cb-selectinput select {
  font-size: 1rem;
  outline: none;
  border: 1px solid var(--unfocused);
  border-radius: 3px;
  padding: 1rem 0.7rem;
  /* width: calc(100% - 1.4rem); */
  width: 100%;
  color: var(--unfocused);
  transition: 0.1s ease-out;
}
.cb-textinput label {
  position: absolute;
  font-size: 1rem;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background-color: white;
  color: var(--unfocused);
  padding: 0 0.3rem;
  margin: 0 0.5rem;
  transition: 0.1s ease-out;
  transform-origin: left top;
  pointer-events: none;
}
.cb-textinput textarea ~ label {
  top: 1.5rem;
}
.cb-textinput input:focus,
.cb-textinput textarea:focus {
  border-color: var(--outline);
  color: var(--text-highlight);
}
.cb-textinput input:focus ~ label,
.cb-textinput textarea:focus ~ label {
  color: var(--outline);
  top: 0;
  margin: 0;
  left: 10px;
  font-size: 0.9rem;
}
.cb-textinput input:not(:placeholder-shown) ~ label,
.cb-textinput textarea:not(:placeholder-shown) ~ label {
  top: 0;
  left: 10px;
  font-size: 0.9rem;
}

/* SELECT */
div.cb-selectinput {
  flex-grow: 0;
  position: relative;
  width: calc(50% - 0.9375rem);
}

.cb-selectinput select {
  outline: none;
  width: 100%;
  height: 100%;
  color: var(--unfocused);
  padding: 1rem 0.7rem;
}

.cb-selectinput select:focus {
  border-color: var(--outline);
  color: var(--text-highlight);
}

.cb-select-label {
  color: var(--unfocused);
  font-weight: normal;
  position: absolute;
  pointer-events: none;
  font-size: 1rem;
  top: 0px;
  transition: 0.2s ease all;
  background-color: white;
  left: 10px;
  font-size: 0.9rem;
  transform: translateY(-50%);
  padding: 0 0.3rem;
}

.cb-selectinput select:focus ~ .cb-select-label {
  color: var(--outline);
}

/* CHECKBOXES */
.cb-checkbox {
  display: block;
  position: relative;
  padding-left: 2rem;
}
.cb-checkmark {
  position: absolute;
  top: 5px;
  left: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--text-highlight);
}

/* SUBMIT */

.cb-form input[type="submit"] {
  color: #fff;
  cursor: pointer;
  border: none;
  transition: background-color 0.1s ease;
  background-color: var(--text-highlight);
  font-size: 1.25rem;
  border-radius: 22.5px;
  padding: 1rem;
  width: 100%;
}
.cb-form input[type="submit"]:hover {
  background-color: var(--outline);
}

/* NOTES */
.cb-form__notes {
  margin-bottom: 1rem;
}
.cb-form__note--required {
  text-align: right;
}

/* NOTIFICATIONS */
.cb-form__notification {
  padding: 0.5rem 0 0.5rem 0.5rem;
  margin-top: 1rem;
  border-left: solid 3px transparent;
}
.cb-form__notification--error {
  border-left-color: darkred;
}
.cb-form__notification--success {
  border-left-color: darkgreen;
}

@media only screen and (max-width: 768px) {
  div.cb-selectinput {
    width: 100%;
    margin-bottom: 1.875rem;
  }
  .cb-form__row {
    margin: 0;
    flex-direction: column;
  }
  .cb-form__row > div {
    margin-bottom: 1rem;
    flex-basis: 100%;
    width: 100%;
  }
  .cb-form__row button {
    width: 80%;
    margin: 0 auto;
  }
}
