input, select, textarea {
  width: 100%;
  height: 32px;
  padding: 4px 8px ;
  border-radius: 4px;
  border: solid 1px var(--second);
  background-color: #fff;
  font-size: 15px;
  &:hover{
    border-color: var(--active);
    outline: none;
  }
  &:focus, &:focus-visible {
    border-color: var(--prime);
    outline: none;
    
  }
  &:disabled{
    border-color: #EDEDED;
    outline: none;
  }
}

.invalid {
  input, select, .textbox {
    border-color: var(--active)!important;
  }
}


.toggle {
  cursor: pointer;
  &:hover{
    color: var(--active);
    .switch{
      background-color: white;
      border-color:var(--active);
      &:before {
        background-color: var(--active);
      }
      &.active{
        background-color:var(--active);
        border-color:var(--active);
        &:before {
          background-color: white;
        }
      }
    }
  }
  .switch {
    width: 28px;
    height: 16px;
    margin: auto 0;
    padding: 1px;
    border-radius: 8px;
    background-color: white;
    border: 1px solid var(--second);
    cursor: pointer;
    transition: background-color 0.3s;
    &:before {
      display: block;
      width: 12px;
      height: 12px;
      background-color: var(--second);
      border-radius: 6px;
      transition: transform 0.3s;
      content: '';
    }
    &.active{
      background-color:var(--prime);
      border-color:var(--prime);
      &:before {
        background-color: white;
        transform: translateX(12px);
      }
    }
  }
}