﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    /* padding-top: 80px; */
    min-height: 100vh;
}
.contact-box .service-box{
    /* padding-top:0; */
}
.contact-all-box{
    width: 600px;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding: 120px 0;
    padding-top: 0;
    font-size: 0;
}
.contact-title-box{
    margin-bottom: 40px;
}
.contact-title-box p{
    font-size: 36px;
    color: #d3202f;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.2em;
    line-height: 40px;
    margin-bottom: 5px;
}
.contact-title-box h2{
    font-size: 18px;
    color: #000;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    letter-spacing: 0.6em;
    line-height: 40px;
}
.contact-form-list{
    margin-top: 25px;
}
.contact-form-list-title{
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 18px;
    color: #000;
    line-height: 20px;
    letter-spacing: 0.06em;
}
.contact-form-text{
    width: 100%;
    display: block;
    position: relative;
    border: none;
    background-color: #e5e5e5;
    margin-top: 10px;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    color: #000;
    transition: all .3s linear;
}

.contact-form-list-twzipcode select{
    width: calc(40% - 20px);
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: none;
    background-color: #e5e5e5;
    margin-top: 10px;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    color: #000;
    margin-right: 20px;
    transition: all .3s linear;
}
.contact-form-list-twzipcode input{
    width: 20%;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    border: none;
    background-color: #e5e5e5;
    margin-top: 10px;
    line-height: 50px;
    height: 50px;
    padding: 0 10px;
    box-sizing: border-box;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    color: #000;
    transition: all .3s linear;
}
.contact-form-list-textarea{
    width: 100%;
    display: block;
    position: relative;
    border: none;
    background-color: #e5e5e5;
    margin-top: 10px;
    line-height: 20px;
    height: 200px;
    padding: 15px 10px;
    box-sizing: border-box;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    color: #000;
    resize: none;
    transition: all .3s linear;
}

.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder,
.contact-form-list-twzipcode input::-webkit-input-placeholder{
    font-family: 'Noto Sans TC';
    color: #000;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder,
.contact-form-list-twzipcode input:-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #000;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder,
.contact-form-list-twzipcode input::-moz-placeholder{
    font-family: 'Noto Sans TC';
    color: #000;
}

/*--------contact共用-----------*/
button{
    font-family: 'Noto Sans TC',"微軟正黑體","Microsoft JhengHei";
}
.button{
    margin: 0;
    padding: 0;
    outline: 0;
    vertical-align: baseline;
    background: transparent;
    font-weight: normal;
    width: 100%;
    display: block;
    margin-top: 40px;
}
.button button{
    width: 160px;
    display: block;
    margin: 0 auto;
    border: none;
    background-color: #d3202f;
    text-align: center;
    font-family: 'Noto Sans TC';
    font-weight: 300;
    font-size: 16px;
    color: #fff;
    line-height: 60px;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    padding: 0;
    padding-left: 0.06em;
    cursor: pointer;
    transition: all .3s linear;
}

/*表單送出*/
.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: 1000px){
    .contact-all-box{
        padding: 60px 0;
    }
    .contact-title-box h2{
        line-height: 20px;
    }
    .contact-title-box p{
        font-size: 28px;
        line-height: 30px;
    }
}
@media only screen and (max-width: 768px){
    .contact-all-box{
        width: 550px;
        padding: 40px 0;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        padding-top: 60px;
    }
    .contact-all-box{
        width: calc(100vw - 20px);
        padding: 20px 0;
    }
    .contact-title-box {
        margin-bottom: 10px;
    }
    .contact-title-box h2{
        font-size: 14px;
        letter-spacing: 0.06em;
    }
    .contact-title-box p{
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 0px;
    }
    .contact-form-list {
        margin-top: 10px;
    }
    .contact-form-list-title{
        line-height: 1;
        font-size: 16px;
    }
    .contact-form-text{
        line-height: 40px;
        height: 40px;
        padding: 0 5px;
        margin-top: 5px;
    }
    .contact-form-list-twzipcode select {
        width: calc(35% - 10px);
        line-height: 40px;
        height: 40px;
        padding: 0 5px;
        margin-top: 5px;
        margin-right: 10px;
    }
    .contact-form-list-twzipcode input {
        width: 30%;
        line-height: 40px;
        height: 40px;
        padding: 0 5px;
        margin-top: 5px;
    }
    .contact-form-list-textarea{
        line-height: 20px;
        height: 150px;
        padding: 10px 5px;
        margin-top: 5px;
    }
    .button{
        margin-top: 20px;
    }
    .button button{
        width: 120px;
        line-height: 40px;
    }
}
@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 (min-width: 769px){
    .contact-form-text:hover,
    .contact-form-list-twzipcode select:hover,
    .contact-form-list-twzipcode input:hover,
    .contact-form-list-textarea:hover{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    .contact-form-text:focus,
    .contact-form-list-twzipcode input:focus,
    .contact-form-list-textarea:focus{
        background-color: #d1d1d1;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
    
    .button button:hover{
        background-color:#960915;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }


    .contact-title-box p,
    .contact-title-box h2,
    .contact-form-list,
    .button{
        /* opacity: 0; */
    }
    .contact-title-box.anima p{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .contact-title-box.anima h2{
        animation: fade 1s ease 0.3s 1 both;
    }
    .contact-form-list.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    .button.anima{
        animation: fade 1s ease 0.3s 1 both;
    }
}