﻿.contact-info-form{
    background-color: #f5f5f5;
    margin-top: 95px;
}
.contact-info-box{
    width: 1200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding-top: 80px;
    padding-bottom: 80px;
    font-size: 0;
}
.contact-left-box{
    width: 50%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-right: 40px;
}
.contact-form-list{
    width: 100%;
}
.contact-form-list-title{
    font-size: 16px;
    font-family: 'Lato', "微軟正黑體";
    margin: 10px 0;
}
.contact-form-text{
    width: 100%;
    border: none;
    height: 36px;
    background-color: #fff;
    padding: 0 10px;
    font-size: 14px;
    box-sizing: border-box;
}
.contact-form-list-textarea {
    resize: none;
    outline: none;
    width: 100%;
    height: 132px;
    border: none;
    background-color: #fff;
    display: block;
    position: relative;
    box-sizing: border-box;
    padding: 10px;
    font-size: 14px;
}
.contact-form-list-title span{
    color: #c71313;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
    margin-top: 25px;
}
.button button {
    width: 180px;
    height: 60px;
    line-height: 60px;
    background-color: #fff;
    text-align: center;
    letter-spacing: 2px;
    font-family: 'Lato', "微軟正黑體";
    border: none;
    border: 1px solid #bbb;
    font-size: 20px;
    cursor: pointer;
    transition: all .3s linear;
}
.contact-right-box{
    display: inline-block;
    vertical-align: top;
    width: 50%;
    box-sizing: border-box;
}
.contact-right-box>span{
    font-size: 18px;
    font-family: 'Lato', "微軟正黑體";
    font-weight: 300;
    color: #555;
    line-height: 1.8;
    display: block;
}
.contact-right-span{
    padding-bottom: 30px;
}
.contact-right-mail{
    margin-top: 20px;
    font-size: 20px;
    font-family: 'Lato', "微軟正黑體";
}
.contact-right-mail a{
    display: inline-block;
    font-size: 20px;
    font-family: 'Lato', "微軟正黑體";
    color: #47a5ee;
    transition: all .3s linear;
}
.contact-map-box{
    width: 100%;
    height: 300px;
}
.contact-form-select{
    width: 100%;
    height: 40px;
    box-sizing: border-box;
    border: 1px solid #555;
    display: block;
    margin-top: 10px;
    letter-spacing: 2px;
    padding-left: 10px;
    color: #555;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
}
.contact-form-select-box{
    position: relative;
}
.contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 10px solid transparent;
    border-top: 12px solid #555;
    border-left: 10px solid transparent;
    display: block;
    position: absolute;
    right: 10px;
    top: 15px;
    pointer-events: none;
}
.contact-form-select-box:before{
    content: 'none';
    font-size: 0;
    width: 40px;
    height: 100%;
    display: block;
    border-left: 1px solid #555;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
}

.contact-checkbox-lable input:checked + span:before{
    background-image: url(../img/front/checked.png);
    background-repeat: no-repeat;
    background-size: 80%;
    background-position: center;
}
.contact-checkbox-lable input:checked + span:before{
    background-image: url(../img/front/checked.png);
    background-size: 70%;
}

/*表單送出*/
.contact-thanks-box,
.alert-box{
    width: 100%;
    height: 100vh;
    display: none;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
}
.contact-thanks-box.active,
.alert-box.active{
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    display: -webkit-flex;
    display:     flex;
}
.contact-thanks,
.alert-info{
    background-color: #000;
    position: relative;
    padding: 80px;
    border-radius: 5px;
    z-index: 6;
}
.alert-info-box{
    position: relative;
}
.contact-thanks-p{
    font-size: 26px;
    line-height: 1.6;
    letter-spacing: 2px;
    font-weight: bold;
    color: #FFF;
    display: block;
}
.contact-out,
.alert-out{
    width: 20px;
    height: 20px;
    max-width: 100%;
    display: block;
    position: absolute;
    border-radius: 50%;
    border: 1px solid #FFF;
    top: 4%;
    right: 4%;
    cursor: pointer;
}
.contact-out span,
.alert-out span{
    width: 15px;
    height: 1px;
    background-color: #FFF;
    display: block;
    margin: 0 auto;
    position: relative;
}
.alert-out{
    z-index: 6;
}
.contact-out span:nth-child(1),
.alert-out span:nth-child(1){
    top: 9px;
    left: 0.5px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2),
.alert-out span:nth-child(2){
    top: 8px;
    left: 0.5px;
    transform: rotate(-45deg);
}
.contact-thanks-mask,
.alert-mask{
    width: 100%;
    height: 100vh;
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.3);
}
input:required:valid{
    
}
/*<---------hover--------->*/
.button button:hover{
    background-color: #ca483d;
    color: #fff;
}
.contact-right-mail a:hover{
    color: #ca483d;
}



@media only screen and (max-width: 1200px){
    .contact-info-box{
        width: 95%;
    }
}
@media only screen and (max-width: 800px){
    .contact-info-box{
        display: flex;
        flex-direction:column-reverse;
        align-items: flex-start;
    }
    .contact-left-box{
        width: 100%;
        display: block;
        padding-top: 40px;
        padding-right: 0;
    }
    .contact-right-box{
        width: 100%;
        padding-right: 0;
        display: block;
    }
}
@media only screen and (max-width: 550px){
    .contact-info-box{
        padding-top: 40px;
        padding-bottom: 40px;
    }
}
@media only screen and (max-width: 500px){
    .contact-info-form{
        margin-top: 60px;
    }
}
@media only screen and (max-width: 400px){
    .contact-info-box{
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .contact-left-box{
        padding-top: 10px;
    }
    .button{
        text-align: center;
    }
    .button button{
        width: 150px;
        height: 50px;
        line-height: 40px;
    }
    .contact-right-box>span{
        padding-bottom: 15px;
    }
    .contact-right-mail{
        margin-top: 0;
        font-size: 16px;
    }
    .contact-right-mail a{
        font-size: 16px;
    }
}
@media only screen and (min-width: 1001px){
    .contact-form-list,
    .contact-right-box span,
    .contact-right-mail,
    .button,
    .contact-map-box{
        opacity: 0;
    }
    .contact-form-list.active{
        animation: animation_btot 1s ease 0s both;
    }
    .contact-right-box span.active{
        animation: animation_rtol 1s ease 0s both;
    }
    .contact-right-mail.active{
        animation: animation_rtol 1s ease 0s both;
    }
    .button.active{
        animation: animation_fade 1s ease 0.5s both;
    }
    .contact-map-box.active{
        animation: animation_ttob 1s ease 0s both;
    }
}