/*** form with floating labels style ***/
/** foloseste un selector parinte (specificity) pt elemente ca sa nu fie afectate elementele de form in header/footer **/

/** misc **/
* {
    box-sizing: border-box;
}
.error {
    /* border-color: #bf2026 !important; */
    color: #bf2026 !important;
}
.required {
	color: #bf2026;
}
.success-text {
    color: #00b04f;
}
.float-container, .float-customSelect {
    border: solid 1px #dddddd;
    box-sizing: border-box;
    margin-bottom: 8px;
    padding: 8px 30px 8px 30px;
    position: relative;
    width: 100%;
    padding: 12px 30px 2px 30px !important;
    overflow: hidden;
}
.float-customSelect.open {
    overflow: visible;
}
.float-container:hover, .float-customSelect:hover {
    border: 1px solid #949494;
}
.float-container input, .float-customSelect input {
    border: none;
    font-size: 18px;
    outline: 0;
    padding: 17px 0 10px;
    height: 46px;
    width: 100%;
    -webkit-box-shadow: none;
    box-shadow: none;
}

/** labels **/
label {
    display: block;
    font-size: 18px;
    margin: 0 0 10px 27px;
}
.float-container label, .float-customSelect label {
    margin: 0 0 0 0;
    position: absolute;
    transform-origin: top left;
    transform: translate(0, 6px) scale(1);
    transition: all 0.1s ease-in-out;
}
.float-container.active label, .float-customSelect.active label {
    transform: translate(0, 0) scale(0.75);
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

/** custom select **/
.float-customSelect {
    position: relative;
}
img.arrowIcon {
    position: absolute;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    width: 25px;
    opacity: 0.5;
    transition: 0.2s ease;
    display:none;
}
.float-customSelect.open img.arrowIcon {
    transform: rotate(180deg) translateY(50%);
}
.float-customSelect input {
    cursor: default;
    position: relative;
    z-index:2;
    background-color: transparent;
    display: none;
}
.float-customSelect ul {
    border: 1px solid gray;
    background-color: #ffffff;
    width: 100%;
    max-height: 400px;
	overflow-y: scroll;
    padding: 0;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 0;
    opacity: 0;
    transition: opacity 0.1s ease-in, top 0.2s ease-out;
    z-index: 1;
}
.float-customSelect ul.open {
    top: 100%;
    left: 0;
    opacity: 1;
    transition: opacity 0.2s ease-in, top 0.2s ease-out;
}
.float-customSelect ul li {
    list-style: none;
    width: 100%;
    padding: 12px 15px;
    transition: background-color 0.3s ease-in;
    position: relative;
    z-index: 1;
}
.float-customSelect ul li:hover {
    background-color: #7fabec;
}

/** radio box **/
input[type='checkbox'], input[type='radio'] {
    display: none;
}

input[type="radio"]+label span {
    /* background-color: #fff; */
    border: solid 1px #949494;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: content-box;
    display: inline-block;
    width: 21px;
    height: 21px;
    margin: 0px 5px 2px 0px;
    vertical-align: middle;
    cursor: pointer;
    -moz-border-radius: 50%;
    border-radius: 50%;
}
input[type="radio"]:checked+label span {
    background-color: #0096d6;
    box-shadow: inset 0 0 0 2px #ffffff; /** IE9+ **/ 
    border-color: #5a5a5a;
}
input[type="radio"]:hover+label span {
    border-color: #363636;
}
input[type="radio"]:disabled+label span {
    background-color: #e5e5e5;
    box-shadow: inset 0 0 0 2px #e5e5e5;
    border-color: #949494;
}
input[type="radio"]+label.error span {
    border-color: #bf2026;
}
/** end radio box **/

/*------------------CHECKBOXES (FORMS)------------------*/
input[type="checkbox"]+label span {
    background: white;
    height: 27px;
    width: 27px;
    border: solid 1px #949494;
    box-sizing: border-box;
    border-radius: 1px;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    display: inline-block;
    margin: 0 5px 2px 0;
    vertical-align: middle;
}
input[type="checkbox"]+label.error span {
    border-color: #bf2026;
}
input[type="checkbox"]:checked+label span {
    background-color: #0096d6;
    border-color: #363636;			
}
input[type="checkbox"]:hover+label span {
    border-color: #363636;
}
input[type="checkbox"]:checked+label span:after {
    content: "";
    display: block;
    left: 7px;
    top: 0px;
    width: 10px;
    height: 18px;
    border: 1px solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    position: relative;
    box-sizing: content-box;
}
input[type="checkbox"]:disabled+label span {
    background-color: #e5e5e5;
    border-color: #949494;
}
/*------------------END OF CHECKBOXES (FORMS)------------------*/

/*------------------BUTTONS------------------*/
input.button {
    cursor: pointer;
    color: #fff;
    height: 36px;
    padding: 0px 15px;
    border-radius: 0px 4px;
    background: #000;
    font-weight: bold;
    font-size: 16px;
    line-height: 34px;
    text-decoration: none;
    margin: 0px 10px;
    border: none;
    float: right;
}
input.critical {
    background: #D7410B;
}
input.critical:hover {
    background: #C1401A;
}
input.primary {
    background: #0096d6;
}
input.primary:hover {
    background: #006699;
}
input.secondary {
    background: #767676;
}
input.secondary:hover {
    background: #5a5a5a;
}
a.toggle {
    cursor: pointer;
    font-size: 14px;
    line-height: 18px;
    color: #767676;
    background-color: #fff;
    margin: 0px 1px;
    padding: 1px 6px 0px;
    display: inline-block;
    height: 26px;
    border: 1px #949494 solid;
    border-collapse: collapse;
    text-decoration: none;
}
a.toggle:hover {
    text-decoration: none;
    border: 1px #000 solid;
    color: #007dba;
}
a.checked.toggle {
    cursor: default;
    border-color: #007dba;
    color: #fff;
    background-color: #007dba;
}
div.reveal button.close-button {
    position: absolute;
}
button.close-button {
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: inline-block;
    font-size: 0px;
    color: #555555;
    line-height: 0px;
    padding: 0;
    border: none;
    position: relative;
    outline: none;
    background: none;
}
button.close-button span {
    display: inline-block;
    width: 42.43px;
    height: 30px;
    border-top: 1px solid #949494;
    transform-origin: 0 0;
}
/* nth-child works in >=IE9 */
button.close-button span:nth-child(1) {
    transform: rotate(45deg);
}
button.close-button span:nth-child(2) {
    transform: rotate(-45deg);
}
button.close-button:hover span {
    border-top-color: #363636;
}
/*------------------END OF BUTTONS------------------*/

/** TEXTAREA **/
.float-container textarea {
    width: 100%;
    height: 100px;
    padding: 12px 0 0 0;
    font-size: 18px;
    border: none;
    resize: none;
    box-shadow: none;
    transition: none;
}
textarea:focus, textarea:hover {
    /* border: 1px solid #949494; */
    box-shadow: none;
    transition: none;
    outline: 0;
}

/** SELECT **/
select {
    border: 0;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    text-indent: 1px;
    text-overflow: '';
    font-size: 16px;
    margin: 0 0 16px;
    height: 36px;
    padding: 0 8px;
}