﻿.fancyInputContainer {
    
}

.fancyInputContainer label {
    display: block;

    width: 100%;
    height: 38px;

    line-height: 38px;
    font-size: 16px;

    margin-bottom: -38px;
    padding-left: 4px;
    padding-right: 4px;

    position: relative;
    z-index: 1;
    pointer-events: none;

    color: grey;

    transition: all 0.2s linear;
}

.fancyInputContainer input {
    box-sizing: border-box;

    width: 100%;
    height: 38px;

    font-size: 16px;

    padding-left: 4px;
    padding-right: 4px;
}
.fancyInputContainer input:focus {
    padding-left: 4px;
    padding-right: 4px;
}

.fancyInputContainer.filled {
    
}

.fancyInputContainer.focus label, .fancyInputContainer.filled label {
    font-size: 10px;
    line-height: 14px;
    height: 14px;
    margin-bottom: -14px;
}

.fancyInputContainer.focus input, .fancyInputContainer.filled input {
    padding-top: 8px;
}

.fancyInputContainer.focus label {
    color: #0775CE;
}

/* textarea by default doesn't inherit from body but other input fields do and this creates inconsistency */
textarea {
   font-family: inherit;
   font-size: inherit;
}

input[type=checkbox] {
    height: 20px;
    width: 20px !important;
    border-radius: 0;
    display: inline-block !important;
    float: left;
    margin: 4px;
    margin-top: 1px;
    cursor: pointer;
}

input[type=checkbox] + label {
    box-sizing: border-box;
    width: 100%;
    min-height: 40px;
    background: white;
    line-height: 36px;
    margin-bottom: 12px;
    padding: 0 6px;
    border: solid 1px #A9A9A9;
    color: black;
    margin-top: 0;
    cursor: pointer;
    -moz-user-select: none;
    -ms-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

input[type=checkbox]:checked + label {
    background: lightgreen;
}

input[type=checkbox][checked] + label {
    background: pink;
}

input[type=checkbox][checked]:checked + label {
    background: white;
}