
/*********** INFORMATION *****************************

- document:  SlideIt - CSS3 fixed sliding elements
- element:   Quick Message form - Bottom Right
- author:    Capelle @ Codecanyon
- profile:   http://codecanyon.net/user/Capelle

*****************************************************/


/*  ==================
    1. FONTS
    ==================  */

/** 1.1. Fonts ***************/

/*@import url(https://fonts.googleapis.com/css?family=Lato:300); /* Delete this import if you're changing the font family */


/*  ==================
    2. RESET
    ==================  */

/***** Body reset *****/
/*
body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    background: #585A69;
}
/* === Note === Delete this body reset - it's for demo purpouses only */

/***** Item reset *****/
/*
#slideit * {
    font-weight: 300;
    font-style: normal;
    font-size: 100%;
    font-family: 'Open Sans', sans-serif;
    vertical-align: baseline;
    line-height: normal;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}
*/

#slideit textarea {
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
}

#slideit a {
    text-decoration: none;
}
#slideit input[type="radio"] {
    display: none;
}
#slideit label {
    cursor: pointer;
}
/* === Note === If you experience issues with reset above, please adjust the selectors and values according to your template/website.
When adjusting the reset is adviced to check up the elements on your page, as they might distort. */


/*  ==================
    3. MAIN STYLES
    ==================  */

#slideit {
    z-index: 99999; /* Keep the item above all other elements on the page */
    position: fixed;
    width: 320px; /* Width of the wrapper of the section. Adjust this value if you want wider elements */
    bottom: 0; /* Vertical position of the elements */
    right: 2%; /* Horizontal position of the elements */
}

/***** Form styles *****/

#slideit section {
    margin: 0;
    overflow: auto;
    width: 100%;
    height: auto;
    max-height: 90vh;
    right: 0;
    bottom: 0;
    position: absolute;
    z-index: 10;
    background: #fff;
    -webkit-backface-visibility: hidden; /* Webkit transition hack */
}
#slideit section,
#slideit input#close-item:checked ~ section {
    /* Section position when closed */
    -webkit-transform: translateY(100%);
    -moz-transform: translateY(100%);
    -ms-transform: translateY(100%);
    -o-transform: translateY(100%);
    transform: translateY(100%);
}
#slideit input#open-item:checked ~ section {
    /* Section position when opened */
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -o-transform: translateY(0);
    transform: translateY(0);
}
#slideit section .wrap {
    padding: 15px 10px 30px 20px;
    position: relative;
    border-bottom: 6px solid #796799;
}
#slideit span.title {
    font-size: 24px;
    padding: 30px;
    color: #fff;
/*    background: #C2C6E2;*/
    text-transform: uppercase;
    display: block;
    width: 100%;
}
#slideit p.info {
    font-size: 13px;
    color: #999;
    line-height: 18px;
}
#slideit .field {
    width: 100%;
    position: relative;
    margin: 30px 0px;
    display: block;
}

/***** Labels *****/

#slideit label.open,
#slideit label.close {
    text-align: center;
    position: absolute;
}
#slideit label.open {
    font-size: 13px;
    color: #fff;
    background: #2D5F8B;
    width: 100px;
    bottom: -50px;
    left: 0;
    right: 0;
    top: auto;
    margin: 0 auto;
    padding: 10px 0;
    text-transform: uppercase;
    z-index: 1;
}
#slideit input#close-item:checked ~ label.open {
    bottom: 0;
}
#slideit label.open:hover,
#slideit label.open:focus {
    background: #222;
    color: #fff;
}
#slideit label.close {
    right: 10px;
    left: auto;
    top: 10px;
    bottom: auto;
    font-size: 20px;
    background: transparent;
    background-image: none !important;
    color: #fff;
    width: 15px;
    line-height: 12px;
    text-indent: inherit;
}
#slideit label.close:hover,
#slideit label.close:focus {
/*    background: #757786;*/
}

/***** Input, selectbox and textarea *****/

#slideit input,
#slideit textarea {
    display: block;
    width: 100%;
    border-bottom: solid 1px #ddd;
    padding: 0 20px 4px 3px;
    font-size: 13px;
    color: #222;
    position: relative;
}
#slideit textarea {
    resize: none;
    height: 22px;
    overflow: hidden;
}
#slideit input:hover,
#slideit input:focus,
#slideit textarea:hover,
#slideit textarea:focus {
    border-bottom-color: #222;
    outline: none;
}
#slideit textarea:focus {
    height: 100px;
}
#slideit input.send {
    display: inline-block;
    clear: both;
    background: #757786;
    color: #fff;
    font-size: 14px;
    text-transform: uppercase;
    padding: 8px 26px;
    cursor: pointer;
    margin: 30px 0 0 0;
    width: auto;
    border: none;
}
#slideit input.send:hover,
#slideit input.send:focus {
    background: #9EA3C5;
    border: none;
    outline: none;
}
#slideit input.reset {
    background: none;
    width: auto;
    cursor: pointer;
    border: none;
    outline: none;
    display: inline-block;
    float: right;
    padding: 0;
    margin: 40px 0 0 0;
    font-size: 12px;
    color: #ccc;
}
#slideit input.reset:hover,
#slideit input.reset:focus {
    color: #222;
}

/***** Validations *****/

#slideit input:required,
#slideit textarea:required {
    background: #fff url("chat2mail/required.png") no-repeat 100% 6px;
    box-shadow: none;
    outline: none;
}
#slideit input:hover:invalid,
#slideit textarea:hover:invalid {
    background: #fff url("chat2mail/focused.png") no-repeat 100% 6px;
    box-shadow: none;
    outline: none;
}
#slideit input:required:valid,
#slideit textarea:required:valid {
    background: #fff url("chat2mail/valid.png") no-repeat 100% 6px;
    box-shadow: none;
    outline: none;
}
#slideit input:focus:invalid,
#slideit textarea:focus:invalid {
    background: #fff url("chat2mail/invalid.png") no-repeat 100% 6px;
    z-index: 10;
    box-shadow: none;
    outline: none;
}

.red-color {
    color: #e02222;
}

/***** Placeholders *****/

::-webkit-input-placeholder {
    color: #999;
}
#slideit input:focus::-webkit-input-placeholder {
    color: #ccc;
}
#slideit textarea:focus::-webkit-input-placeholder {
    color: #ccc;
}
:-moz-placeholder {
    color: #999;
}
#slideit input:focus:-moz-placeholder {
    color: #ccc;
}
#slideit textarea:focus:-moz-placeholder {
    color: #ccc;
}
::-moz-placeholder {
    color: #999;
}
#slideit input:focus::-moz-placeholder {
    color: #ccc;
}
#slideit textarea:focus::-moz-placeholder {
    color: #ccc;
}
:-ms-input-placeholder {
    color: #999;
}
#slideit input:focus:-ms-input-placeholder {
    color: #ccc;
}
#slideit textarea:focus:-ms-input-placeholder {
    color: #ccc;
}
.ie9-placeholder {
    color: #999 !important;
}
.ie9-placeholder:focus {
    color: #ccc !important;
}

/***** Tooltips *****/

#slideit .tip {
    background: #222;
    color: #fff;
    font-size: 12px;
    padding: 10px 12px;
    text-align: center;
    position: absolute;
    top: -68px;
    left: -20px;
    opacity: 0;
    visibility: hidden;
    width: auto;
    cursor: default;
}
#slideit .tip:after {
    border-top: 6px solid rgba(0, 0, 0, 1);
    border-left: 8px solid rgba(0, 0, 0, 0);
    border-right: 8px solid rgba(0, 0, 0, 0);
    content: "";
    position: absolute;
    bottom: -6px;
    left: 28px;
}
#slideit input:focus ~ .tip,
#slideit textarea:focus ~ .tip {
    top: -48px;
    opacity: 1;
    visibility: visible;
    z-index: 99;
}
#slideit input:required:valid ~ .tip,
#slideit textarea:required:valid ~ .tip {
    opacity: 0;
    visibility: hidden;
}

/***** Transitions *****/

#slideit label,
#slideit input {
    -webkit-transition: all 0.1s ease-in-out;
    -moz-transition: all 0.1s ease-in-out;
    -ms-transition: all 0.1s ease-in-out;
    -o-transition: all 0.1s ease-in-out;
    transition: all 0.1s ease-in-out;
}
#slideit .tip {
    -webkit-transition: opacity 0.4s ease;
    -moz-transition: opacity 0.4s ease;
    -ms-transition: opacity 0.4s ease;
    -o-transition: opacity 0.4s ease;
    transition: opacity 0.4s ease;
}
#slideit textarea {
    -webkit-transition: height 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -moz-transition: height 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -ms-transition: height 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -o-transition: height 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    transition: height 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
}
#slideit section {
    -webkit-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -moz-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -ms-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    -o-transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
    transition: all 0.4s cubic-bezier(0.2, 0.6, 0.3, 1);
}
#slideit input#close-item:checked ~ label.open {
    -webkit-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
    -moz-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
    -ms-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
    -o-transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
    transition: bottom 0.3s ease 0.4s, background 0.1s ease, color 0.1s ease;
}

input[type="radio"].toggle {
    display: none;
}

input[type="radio"].toggle:checked + label {
    background-image: -moz-linear-gradient(bottom,#969696,#727272);
    background-image: -webkit-gradient(linear,0 0,0 100%,from(#969696),#727272);
    background-image: -webkit-linear-gradient(bottom,#969696,#727272);
    background-image: -o-linear-gradient(bottom,#969696,#727272);
    background-image: linear-gradient(to top,#969696,#727272);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff969696',endColorstr='#ff727272',GradientType=0);
    filter: progid:DXImageTransform.Microsoft.gradient(enabled=false);
    -webkit-box-shadow: inset 0 1px 6px rgba(41, 41, 41, 0.2),0 1px 2px rgba(0,0,0,0.05);
    -moz-box-shadow: inset 0 1px 6px 0 rgba(41, 41, 41, 0.2),0 1px 2px rgba(0,0,0,0.05);
    box-shadow: inset 0 1px 6px rgba(41, 41, 41, 0.2),0 1px 2px rgba(0, 0, 0, 0.05);
    cursor: default;
    color: #796799;
    border-color: transparent;
    text-shadow: 0 1px 1px rgba(40, 40, 40, 0.75);
}

input[type="radio"].toggle + label {
    width: 3em;
    padding: 3px;
    border: 1px solid !important;
    margin: 0;
    color: #796799;
}

input[type="radio"].toggle:checked + label.btn:hover {
    background-color: inherit;
    background-position: 0 0;
    -webkit-transition: none;
    -moz-trainsition: none;
    transition: none;
    color: #fff !important;
    border-color: #796799 !important;
}

input[type="radio"].toggle:checked + label {
    color: #f5f5f5 !important;
    border-color: #796799 !important;
}

input[type="radio"].toggle-left + label {
    border-right: 0;
    -webkit-border-top-right-radius: 0;
    -webkit-border-bottom-right-radius: 0;
    -moz-border-top-right-radius: 0;
    -moz-border-bottom-right-radius: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

input[type="radio"].toggle-right + label {
    -webkit-border-top-left-radius: 0;
    -webkit-border-bottom-left-radius: 0;
    -moz-border-top-left-radius: 0;
    -moz-border-bottom-left-radius: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    margin: -4px;
}

.fielder .field {
    margin: 15px 0 !important;
}

select.form-control {
    font-size: 14px;
    padding-left: 0;
    color: grey;
}

.textleft {
    text-align: left;
}

/*  ==================
    4. MEDIA QUERIES
    ==================  */

/***** Max width 320px *****/

@media screen and (max-width:320px){
    #slideit {
        width: 100%;
        right: 0;
    }
}
