﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    font-size: 0;
    background-color: #f5f5f5;
}
.contact-info-form{
    width: 735px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 85px 0;
}
.contact-title{
    font-size: 28px;
    font-weight: bold;
    color: #764d36;
    transform: skewX(-10deg);
    letter-spacing: 6px;
    margin-bottom: 40px;
}
.contact-text-box{
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    text-align: justify;
}
.contact-warning-box{
    width: 100%;
    text-align: right;
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    margin-top: 10px;
    margin-bottom: 20px;
}
.contact-warning-box span{
    color: #ec0101;
}
.contact-form-list{
    margin-bottom: 30px;
}
.contact-form-textarea .contact-form-list-title{
    margin-top: 10px;
}
.contact-form-list-title{
    font-size: 14px;
    font-weight: bold;
    color: #555;
    display: inline-block;
    width: 135px;
    vertical-align: middle;
    letter-spacing: 2px;
}
.contact-form-text{
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 135px);
    border: none;
    background-color: #ddd;
    height: 40px;
    line-height: 40px;
    font-family: "微軟正黑體";
    padding: 0 15px;
    letter-spacing: 1px;
    box-sizing: border-box;
    font-size: 14px;
    color: #888;
    font-weight: lighter;
}
.contact-form-list::placeholder { 
    font-size: 14px;
    color: #888;
    font-weight: lighter;
    letter-spacing: 1px;
    font-family: "微軟正黑體";
}
.contact-form-list:-ms-input-placeholder {
    font-size: 14px;
    color: #888;
    font-weight: lighter;
    letter-spacing: 1px;
    font-family: "微軟正黑體";
}
.contact-form-list::-ms-input-placeholder { 
    font-size: 14px;
    color: #888;
    font-weight: lighter;
    letter-spacing: 1px;
    font-family: "微軟正黑體";
}
.contact-form-list-textarea{
    display: inline-block;
    width: calc(100% - 135px);
    border: none;
    background-color: #ddd;
    height: 150px;
    font-family: "微軟正黑體";
    padding: 10px 15px;
    letter-spacing: 1px;
    box-sizing: border-box;
    font-size: 14px;
    color: #888;
    font-weight: lighter;
    resize: none;
    outline: none;
    vertical-align: top;
}
.contact-map-box{
    width: 100%;
    height: 300px;
    display: block;
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}
.contact-map-box iframe{
    width: 100%;
    height: 300px;
    display: block;
}
/*--------contact共用-----------*/
.contact-radio-lable,
.contact-checkbox-lable{
    display: inline-block; 

}
.contact-radio-lable input,
.contact-checkbox-lable input{
    opacity: 0;
    position: absolute;
    pointer-events: none;
}
.contact-radio-lable span,
.contact-checkbox-lable span{
    position: relative;
    display: block;
    vertical-align: middle;
    letter-spacing: 2px;
    padding-left: 30px;
}

.contact-radio-lable span:before,
.contact-checkbox-lable span:before{
    content: 'none';
    font-size: 0;
    width: 20px;
    height: 20px;
    display: block;
    position: absolute;
    left: 0;
    top: 4px;
    vertical-align: middle;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    margin-right: 5px;
}

.contact-form-radio-list{
    margin-top: 10px;
}
.contact-form-list-title span{
    color: #c71313;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.button{
    width: 600px;
    max-width: 100%;
    margin-left: auto;
}
.button button{
    width: 180px;
    display: flex;
    justify-content:space-between;
    border: none;
    background-color: transparent;
    border-bottom: 1px solid #d1d1d1;
    padding: 0;
    line-height: 36px;
    outline: none;
    cursor: pointer;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: bold;
    color: #555;
    transition: all .3s linear; 
}
.button button span{
    transition: all .3s linear; 
}
.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: #64bcc1;
    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.04);
}

/*----------hover----------*/
.button button:hover{
    color: #764d36;
}
.button button:hover span{
    color: #764d36;
    animation: arrow_rtol .8s ease infinite alternate;
}

@keyframes arrow_rtol {
    0%{
        transform: translateX(0);
    }
    to {
        transform: translateX(5px);
    }
}





@media only screen and (max-width: 735px){
    .contact-info-form{
        width: 95%;
    }
    .button button{
        margin: 0 auto;
    }
}
@media only screen and (max-width: 550px){
    .contact-info-form{
        padding: 25px 0;
    }
    .contact-title{
        font-size: 22px;
        margin-bottom: 20px;
    }
    .contact-text-box,
    .contact-warning-box{
        font-size: 12px;
    }
    .contact-form-list-title{
        width: 90px;
    }
    .contact-form-text,
    .contact-form-list-textarea{
        font-size: 12px;
        width: calc(100% - 90px);
    }
    .button button{
        width: 130px;
        margin: 0 auto;
    }
    .contact-map-box,
    .contact-map-box iframe{
        height: 200px;
    }
}
@media only screen and (max-width: 480px){

    .contact-thanks, .alert-info{
        width: 95%;
        box-sizing: border-box;
        margin: 0 auto;
    }
    .contact-thanks-p{
        font-size: 20px;
    }
}




/*animation*/
/*<-------------動畫------------->*/

@media only screen and (min-width: 1001px){
    .contact-title,
    .contact-text-box,
    .contact-warning-box,
    .contact-form-list-title,
    .contact-form-text,
    .contact-form-list-textarea,
    .button button,
    .contact-map-box{
        /* opacity: 0; */
    }
    .contact-title.active{
        animation: animation_ttob_skewX 1s ease both;
    }
    .contact-text-box{
        animation: animation_ttob 1s ease both;
    }
    .contact-warning-box{
        animation: animation_rtol 1s ease both;
    }
    .contact-form-list.active .contact-form-list-title{
        animation: animation_rtol 1s ease both;
    }
    .contact-form-list.active .contact-form-text,
    .contact-form-list.active .contact-form-list-textarea{
        animation: animation_ltor 1s ease both;
    }
    .button button.active{
        animation: animation_ltor 1s ease both;
    }
    .contact-map-box.active{
        animation: animation_ttob 1s ease both;
    }
}