/*
* Copyright (c) 2005-2017 MicroPact, Inc. All Rights Reserved.
*
*  /\ /\ \/ /   Always design for the end goal, develop with them in mind
* / / \ \  /    deploy with a path forward, and success will be more easily achieved
* \ \_/ /  \
*  \___/ /\ \                                           - Che de Bruin
*            
* This software is the proprietary information of MicroPact, Inc.
* Use is subject to license terms.
*
* Page description: CSS for forms
*
* @author MicroPact, Inc.
* @since 1.0
*
*/

input[type="text"]:focus,
input[type="password"]:focus,
input[type="checkbox"]:focus,
input[type="radio"]:focus,
select:focus,
textarea:focus {
    outline: none;
    border: 1px solid #1974c7;
}


input[type="text"]:not([disabled]):focus,
input[type="password"]:not([disabled]):focus,
input[type="checkbox"]:not([disabled]):focus,
input[type="radio"]:not([disabled]):focus,
select:not([disabled]):hover,
textarea:not([disabled]):hover {
    outline: none;
    border: 1px solid #1974c7;
}

input.formInput,
input[type="text"],
input[type="password"],
textarea,
select {
    background-color: #fff;
    color: #272727;
    display: inline-block;
    border: 1px solid #C0C0C0;
    -moz-border-radius: 3px;
    -webkit-border-radius: 3px;
    border-radius: 3px;
    
    height: 30px;
    vertical-align: middle;

    font-family: roboto;
    font-size: .80rem;
    
    padding: 5px;
    vertical-align: top;
}

input.code,
input[type="text"].code,
input[type="password"].code,
textarea.code,
select.code {    
    border: none;
    height: unset;
    padding: 0px;
    font-family: monospace;
    font-size: .9rem;
    resize: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

button.code,
button.secondary.code {    
    font-family: monospace;
    font-size: .9rem;
    white-space: nowrap;
    padding: 0;
    margin: 0;
    height: auto;
}


pre:focus,
code:focus,
span:focus,
input[type="text"].code:focus,
input[type="password"].code:focus,
input[type="text"].code:not([disabled]):focus,
input[type="password"].code:not([disabled]):focus,
select.code:not([disabled]):hover,
textarea.code:not([disabled]):hover,
select.code:focus,
textarea.code:focus {
    outline: none;
    border: none;
}

input[type="text"]:disabled,
input[type="password"]:disabled,
select:disabled,
textarea:disabled {
    padding: 10px;
    outline: none;
    border: 1px solid transparent;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
}

textarea {

}

select {
    padding: 0px 7px;
}

select[multiple], select[size] {
    padding: 0px;
}

select option, 
select[size] option,
select[multiple] option {
    padding: 7px;
}

/* Check Box and Radio Button Animation */

input[type=checkbox].checkmark,
input[type=radio].checkmark {
    width: 18px;
    height: 18px;
    vertical-align: middle;
	-webkit-appearance: none;
   	-moz-appearance:    none;
   	appearance:         none;
	outline: 0;
	display: inline-block;
	-webkit-box-shadow: none;
	-moz-box-shadow: none;
	box-shadow: none;
	display: inline-block;
    -webkit-transition: -webkit-transform .05s;
    transition: transform .05s;
    margin: -3px 5px 0px 5px;
    
    outline: none;
}

input[type=checkbox].checkmark:not(:checked):hover,
input[type=radio].checkmark:not(:checked):hover {
    border-width: 1px;
    border-style: solid;
    border-color: var(--main-color-blue);
}

input[type=checkbox].checkmark:checked:hover,
input[type=checkbox].checkmark:checked:focus,
input[type=radio].checkmark:checked:hover,
input[type=radio].checkmark:checked:focus {
    border: none;
}

input[type=checkbox].checkmark:not(:checked),
input[type=radio].checkmark:not(:checked) {
    border: 1px solid #C0C0C0;
    border-radius: 2px;
}

input[type=checkbox].checkmark:checked,
input[type=radio].checkmark:checked {
    -ms-transform: rotate(45deg); /* IE 9 */
    -webkit-transform: rotate(45deg); /* Chrome, Safari, Opera */
    transform: rotate(45deg); 
	margin: 0px 5px 0px 5px 
}

input[type=checkbox].checkmark:checked:before,
input[type=radio].checkmark:checked:before {
    content: '';
    position: absolute;
    width: 5px;
    height: 18px;
    background-color: #272727;
    left: 7px;
    top: -3px;
}

input[type=checkbox].checkmark:checked:after,
input[type=radio].checkmark:checked:after {
    content: '';
    position: absolute;
    width: 7px;
    height: 5px;
    background-color: #272727;
    left: 2px;
    top: 10px;
}

input[type=checkbox].checkmark:disabled:checked:before,
input[type=radio].checkmark:disabled:checked:before {
    content: '';
    background-color: #C0C0C0;
}

input[type=checkbox].checkmark:disabled:checked:after,
input[type=radio].checkmark:disabled:checked:after {
    content: '';
    background-color: #C0C0C0;
}

.slider {
    position: relative;
    display: inline-block;
    width: 35px;
    height: 20px;
}

.slider input[type=checkbox] {
    display: none;
}

.slider span {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 24px;
}

.slider span:before {
    content: '';
    position: absolute;
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
    border-radius: 50%;
}

.slider input[type=checkbox]:checked + span {
    background-color: var(--main-color-blue);
}

.slider input[type=checkbox]:focus + span {
    box-shadow: 0 0 1px var(--main-color-blue);
}

.slider input[type=checkbox]:checked + span:before {
    -webkit-transform: translateX(15px);
    -ms-transform: translateX(15px);
    transform: translateX(15px);
}

button,
input[type="button"],
input[type="submit"],
a.button {
    background-color: var(--main-color-blue);  
    color: var(--main-button-font-primary);
    
    font-family: inherit;
    font-weight: 400;
    font-size: .85rem;

    /* letter-spacing: .03rem; */
    height: 36px;

    text-align: center;
    vertical-align: middle;

    /* text-transform: uppercase; */
    text-decoration: none;
    
    transition: all .2s ease-in-out;
    display: inline-flex;
    padding: 0 20px;
    margin: 0px;
    border: none;
    border-radius: 2px;

    cursor: pointer;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

button.primary,
input[type="button"].primary,
input[type="submit"].primary,
a.button.primary {
    background-color: var(--main-button-background-primary);
    color: var(--main-button-font-primary);
}

button.child,
input[type="button"].child,
input[type="submit"].child,
a.button.child {
    background-color: var(--main-color-gray-light);   
    color: var(--main-font-primary); 
    text-transform: unset;
}

button.secondary,
input[type="button"].secondary,
input[type="submit"].secondary,
a.button.secondary {
    background-color: var(--main-color-white);    
    color: var(--main-color-blue);
    padding: 0 10px;
    margin-left: 5px;
}

button.secondary svg path,
a.button.secondary svg path {
    fill: var(--main-color-blue);
}

button.destructive,
input[type="button"].destructive,
input[type="submit"].destructive,
a.button.destructive {
    background-color: var(--main-color-red);    
    color: var(--main-font-primary-reverse);
}

a.button {
    line-height: 36px;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover,
a.button:hover {
    background-color: #1d4f91;
    cursor: pointer;
}

button.secondary:hover,
input[type="button"].secondary:hover,
input[type="submit"].secondary:hover,
a.button.secondary:hover {
    background-color: transparent;
    color: #272727;
    cursor: pointer;
}

button.child:hover,
input[type="button"].child:hover,
input[type="submit"].child:hover,
a.button.child:hover {
    background-color: var(--main-color-gray);
}

button.destructive:hover,
input[type="button"].destructive:hover,
input[type="submit"].destructive:hover,
a.button.destructive:hover {
    background-color: var(--main-color-red-dark); 
    cursor: pointer;
}

button:disabled,
input[type="button"]:disabled,
input[type="submit"]:disabled,
a.button:disabled {
    background-color: #D6CEB6;
    color: #555;
}

button.small,
input[type="button"].small,
input[type="submit"].small,
a.button.small {
    height: 30px;
    font-size: .8rem;
    padding: 0px 10px;
    width: auto;
    min-width: unset;
    letter-spacing: unset;
    text-transform: initial;
}

button.secondary.small,
input[type="button"].secondary.small,
input[type="submit"].secondary.small,
a.button.secondary.small {
    padding: 0px 5px;
}

button.small-x,
input[type="button"].small-x,
input[type="submit"].small-x,
a.button.small-x {
    height: 25px;
    font-size: .75rem;
    padding: 0px 5px;
    width: auto;
    min-width: unset;
    letter-spacing: unset;
    text-transform: initial;
}

button.secondary.small,
button.secondary.small-x,
input[type="button"].secondary.small,
input[type="button"].secondary.small-x,
input[type="submit"].secondary.small,
input[type="submit"].secondary.small-x,
a.button.secondary.small,
a.button.secondary.small-x {
    padding: 0px 5px;
    margin: 0px;
}

a.button.small {
    line-height: 30px;
}

button.icon {
	display: flex;
	align-items: center;
	width: fit-content;
}

button.icon svg {
	margin: 0px 5px 0px 0px;
	height: 24px;
	width: 24px;
	min-height: 24px;
	min-width: 24px;
}

input.borderless {
    border: none;
}

input.oversized {
    font-size: 1rem;
    font-weight: 400;
}

input.search {
	width: 100%;
	text-indent: 25px;
	background-position: 5px;
	background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><path fill='#8e8e8e' d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z' /></svg>");
}

input.search.small {
	width: 100%;
	text-indent: 22px;
	background-position: 5px;
	background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='18' height='18' ><path fill='#8e8e8e' d='M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z' /></svg>");
}

input.small-2x,
label.small-2x {
    width: 50px;
    min-width: 50px;
}

input.small-x,
label.small-x {
    width: 75px;
    min-width: 75px;
}

input.small,
label.small {
    width: 100px;
    min-width: 100px;
}

input.width-250,
label.width-250 {
    width: 250px;
    min-width: 250px;
}

input.width-200,
label.width-200 {
    width: 200px;
    min-width: 200px;
}

input.width-150,
label.width-150 {
    width: 150px;
    min-width: 150px;
}

input.width-100,
label.width-100 {
    width: 100px;
    min-width: 100px;
}

input.width-75,
label.width-75 {
    width: 75px;
    min-width: 75px;
}

input.width-50,
label.width-50 {
    width: 50px;
    min-width: 50px;
}

input.fill,
label.fill {
    width: 100%;
    min-width: unset;
}

textarea.expand,
select.expand,
input.expand,
label.expand  {
    width: 100%;
}

.form-buttons {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

/* COLOR MAPPING */
