input, select, textarea {
  width: 100%;
  height: 40px;
  padding: 8px 16px;
  border-radius: 12px;
  border: solid 1px #C0C0C0;
  font-family: "PT Sans";
  font-size: 20px;
  color: var(--dark-1);
  background-color: #fff;
  &:hover{
    border-color: #6C6C6C;
    outline: none;
  }
  &:focus, &:focus-visible {
    border-color: #0070BA;
    outline: none;
    
  }
  &:disabled{
    border-color: #EDEDED;
    outline: none;
  }
}

.invalid {
  input, select, .textbox {
    border-color: #e60046!important;
  }
}


.switch {
  width: 44px;
  height: 24px;
  margin: auto 0;
  padding: 2px;
  border-radius: 12px;
  background-color: #fff;
  border: 1px solid #6C6C6C;
  cursor: pointer;
  transition: background-color 0.3s;
  &:before {
    display: block;
    width: 18px;
    height: 18px;
    background-color: #C0C0C0;
    border-radius: 9px;
    transition: transform 0.3s;
    content: '';
  }
  &.active {
    background-color:var(--blue-1);
    border-color:var(--blue-1);
    &:before {
      transform: translateX(20px);
      background-color: #fff;
    }
  }
  &.active{
    &:hover {
      background-color:var(--blue-2);
      border-color:var(--blue-2);
      &:before {
        transform: translateX(20px);
      }
    }
    &:focus{
      background-color:var(--blue-3);
      border-color:var(--blue-3);
      &:before {
        transform: translateX(20px);
      }
    }
  }
  &:not(.active):hover {
    border-color:#4D4D4D;
    &:before {
      background-color: #6C6C6C;
    }
  }
  &.disabled {
    opacity: 0.5;
  }
}



.checkbox {
  position: absolute;
  z-index: -1;
  opacity: 0;
}

.checkbox+label {
  display: inline-flex;
  align-items: center;
  user-select: none;
  font-size: 20px;
}
.checkbox+label::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  flex-grow: 0;
  margin-right: 0.5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  background-image: url("~/src/assets/images/icons/checkbox/checbox_none_base_24dp.svg");
}
.checkbox:checked+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_check_base_24dp.svg");
}
.checkbox:not(:disabled):not(:checked)+label:hover::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_none_hover_24dp.svg");
}
.checkbox:not(:disabled):checked+label:hover::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_check_hover_24dp.svg");
}
.checkbox:not(:disabled):checked:active+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_check_active_24dp.svg");
}
.checkbox:not(:disabled):not(:checked):active+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_none_active_24dp.svg");
}
.checkbox:focus:checked+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_check_hover_24dp.svg");
}
.checkbox:focus:not(:checked)+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_none_hover_24dp.svg");
}
.checkbox:disabled:checked+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_check_disabled_24dp.svg");
}
.checkbox:disabled:not(:checked)+label::before {
  background-image: url("~/src/assets/images/icons/checkbox/checbox_none_disabled_24dp.svg");
}