:root {
  --color-accent: #6200ee;
  --field-background-active: #f5f5f5;
  --field-background-active-selected: #fff;
  --table-header-color: #fff;
  --input-border-hover: rgba(0, 0, 0, 0.62);
  --label-color: #222;
}

.floating,
.input-checkbox {
  margin: var(--half-padding);
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom: 0.15em solid var(--dark-grey);
  transition: border-color, background-color 0.2s ease;
}

.floating:hover,
.floating:focus-within,
.input-checkbox:hover,
.input-checkbox:focus-within {
  background-color: var(--field-background-active);
}

.floating:hover,
.input-checkbox:hover {
  border-color: var(--input-border-hover);
}

.selected .floating:hover,
.selected .floating:focus-within,
.selected .input-checkbox:hover,
.selected .input-checkbox:focus-within {
  background-color: var(--field-background-active-selected);
}

.floating input,
.floating select {
  width: 100%;
  min-width: 10em;
  padding: 1.8rem 1rem 0.6rem;
  background: none;
}

.floating select {
  border-radius: 0;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23001E3D%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 0.7em top 60%;
  background-size: 0.65em auto;
}

.floating.input-disabled select {
  background-image: none;
}

.floating-input::placeholder {
  color: rgba(0, 0, 0, 0);
}

.floating-label {
  display: block;
  position: relative;
  max-height: 0;
  font-weight: 500;
  pointer-events: none;
}

.floating-label::before {
  color: var(--label-color);
  content: attr(data-content);
  display: inline-block;
  filter: blur(0);
  backface-visibility: hidden;
  transform-origin: left top;
  transition: transform 0.2s ease;
  left: 1em;
  position: relative;
  transform: translate3d(0, -3.12em, 0) scale3d(0.82, 0.82, 1);
}

.floating-label::after {
  bottom: 1em;
  content: "";
  height: 0.1em;
  position: absolute;
  transition:
    transform 180ms cubic-bezier(0.4, 0, 0.2, 1),
    opacity 180ms cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease;
  opacity: 0;
  left: 0;
  top: 100%;
  margin-top: -0.1em;
  transform: scale3d(0, 1, 1);
  width: 100%;
  background-color: var(--color-accent);
}

.floating-input:placeholder-shown + .floating-label::before {
  transform: translate3d(0, -2.2em, 0) scale3d(1, 1, 1);
}

.floating-input:focus + .floating-label::before {
  color: var(--color-accent);
  transform: translate3d(0, -3.12em, 0) scale3d(0.82, 0.82, 1);
}

.hidden-visually {
  border: 0;
  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.input-disabled {
  border-bottom-color: var(--green);
}

.floating.input-textarea {
  position: relative;
  margin-top: 20px;
}

.floating.input-textarea label {
  position: absolute;
  top: 20px;
}

.floating.input-textarea textarea {
  padding-left: 12px;
}
