﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
}
.contact-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding: 150px 0;
}
.contact-top-text{
    box-sizing: border-box;
    border-top: 1px solid #eee;
    text-align: right;
    padding-top: 15px;
    margin-top: 50px;
}
.contact-top-text p{
    font-family: "Noto Sans TC";
    font-weight: 300;
    color: #666;
    font-size: 16px;
    letter-spacing: 0.06em;
    line-height: 1;
}
.contact-top-text sup{
    font-weight: 300;
    color: #ff0000;
    font-size: 18px;
}
.contact-form-list{
    margin-bottom: 70px;
}
.contact-form-list-title{
    font-family: "Noto Sans TC";
    font-weight: 300;
    color: #000;
    font-size: 18px;
    letter-spacing: 0.06em;
    line-height: 1;
    margin-bottom: 25px;
}
.contact-form-text{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: 1px solid #ddd;
    height: 60px;
    line-height: 58px;
    background-color: #fafafa;
    padding: 0 20px;
    font-family: "Noto Sans TC";
    color: #000;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.06em;
    transition: all .3s linear;
}
.contact-form-text2{
    width: calc((100% - 40px) / 2);
    display: inline-block;
    vertical-align: middle;
}
.contact-form-text2:nth-child(2){
    margin-right: 40px;
}
.contact-form-list-textarea{
    width: 100%;
    display: block;
    box-sizing: border-box;
    border: 1px solid #ddd;
    height: 200px;
    line-height: 1.4;
    background-color: #fafafa;
    padding: 15px 20px;
    font-family: "Noto Sans TC";
    color: #000;
    font-weight: 300;
    font-size: 16px;
    letter-spacing: 0.06em;
    resize: none;
    transition: all .3s linear;
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "Noto Sans TC";
    color: #888;
    font-weight: 300;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "Noto Sans TC";
    color: #888;
    font-weight: 300;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "Noto Sans TC";
    color: #888;
    font-weight: 300;
}

.contact-form-list-title span{
    color: #ff0000;
    margin-left: 5px;
    font-size: 16px;
    vertical-align: top;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.button button {
    width: 300px;
    display: block;
    box-sizing: border-box;
    text-align: center;
    font-family: "Noto Sans TC";
    font-size: 18px;
    color: #fff;
    line-height: 60px;
    letter-spacing: 0.2em;
    padding-left: 0.2em;
    background-color: #e48e00;
    transition: all .3s linear;
    position: relative;
    border: none;
    cursor: pointer;
}
.button button span{
    position: absolute;
    top: 0;
    right: 20px;
    font-size: 30px;
}

/*表單送出*/
.contact-thanks-box{
    width: 100%;
    height: 100vh;
    position: fixed;
    z-index: 999;
    top: 0;
    left: 0;
    display: none;
}
.contact-thanks-box.active{
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    display: -webkit-flex;
    display: flex;
}
.contact-thanks{
    max-width: 500px;
    min-width: 200px;
    width: 400px;
    padding: 40px 30px;
    box-sizing: border-box;
    background-color: #fff;
    position: relative;
    z-index: 1;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
}
.contact-thanks-p{
    font-size: 16px;
    color: #555;
    transform: scaleY(1.05);
    letter-spacing:  1px;
    line-height: 2;   
}
.contact-out{
    width: 21px;
    height: 21px;
    max-width: 100%;
    display: block;
    position: absolute;
    border-radius: 50%;
    top: 5px;
    right: 5px;
    cursor: pointer;
}
.contact-out span{
    width: 15px;
    height: 1px;
    background-color: #888;
    display: block;
    margin: 0 auto;
    position: relative;
}
.contact-out span:nth-child(1){
    top: 10px;
    left: 0px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2){
    top: 9px;
    left: 0px;
    transform: rotate(-45deg);
}

@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;
    }
}



@media only screen and (max-width: 1000px){
    .contact-all-box{
        width: 750px;
        padding: 100px 0;
    }
}
@media only screen and (max-width: 768px){
    .contact-all-box{
        width: 550px;
        padding: 60px 0;
    }
    .contact-form-list{
        margin-bottom: 40px;
    }
    .contact-form-list-title{
        margin-bottom: 15px;
    }
}
@media only screen and (max-width: 550px){
    .contact-all-box{
        width: calc(100vw - 40px);
        padding: 40px 0;
    }
    .contact-top-text{
        padding-top: 5px;
        margin-top: 20px;
    }
    .contact-top-text p{
        font-size: 12px;
    }
    .contact-top-text sup{
        font-size: 14px;
    }
    .contact-form-list-title{
        font-size: 16px;
        margin-bottom: 10px;
    }
    .contact-form-list-title span{
        font-size: 14px;
        margin-left: 0;
    }
    .contact-form-text{
        height: 40px;
        line-height: 38px;
        font-size: 14px;
        padding: 0 10px;
    }
    .contact-form-list{
        margin-bottom: 20px;
    }
    .contact-form-text2 {
        width: calc((100% - 10px) / 2);
    }
    .contact-form-text2:nth-child(2) {
        margin-right: 10px;
    }
    .contact-form-list-textarea{
        padding: 10px 10px;
        font-size: 14px;
        height: 100px;
    }
    .button button{
        width: 180px;
        font-size: 16px;
        line-height: 40px;
        letter-spacing: 0.06em;
        padding-left: 0.06em;
        margin: 0 auto;
    }
    .button button span{
        font-size: 20px;
        right: 10px;
    }
}


@media only screen and (min-width: 769px){
    .contact-form-text:hover,
    .contact-form-list-textarea:hover{
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
    }
    .contact-form-text:focus,
    .contact-form-list-textarea:focus{
        background-color: rgba(0, 59, 131, 0.15);
    }
    .button button:hover{
        background-color: #003b83;
        color: #fff;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }

    .contact-form-list,
    .contact-top-text,
    .button button{
        opacity: 0;
    }
    .contact-top-text.anima{
        animation: fadeInUp 1.4s ease 1 0s both;
    }
    .contact-form-list.anima,
    .button.anima button{
        animation: fade 1.4s ease 1 0s both;
    }
}