﻿.contact-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-top: 100px;
    min-height: calc(100vh - 100px);
}
.contact-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    background: linear-gradient( rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 90%);
}
.contact-info-box{
    box-sizing: border-box;
    padding: 80px 50px;
}
.contact-title{
    font-size: 24px;
    letter-spacing: 0.06em;
    /* font-family: 'Noto Serif TC'; */
    font-weight: 500;
    color: #000;
}
.contact-title-text{
    font-size: 16px;
    letter-spacing: 0.01em;
    color: #000;
    margin-top: 10px;
}
.contact-text-p-box{
    width: 100%;
    text-align: right;
    margin-top: 70px;
}
.contact-text-p-box p{
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    display: inline-block;
}

.contact-form-list{
    margin-top: 30px;
}
.contact-form-list-title{
    width: 230px;
    font-size: 18px;
    display: inline-block;
    vertical-align: top;
    line-height: 70px;
    color: #000;
    font-weight: bold;
    letter-spacing: 0.01em;
}
.contact-form-list-title span{
    font-weight: lighter;
}
.contact-form-text{
    width: calc(100% - 230px);
    border: 1px solid #234a35;
    background-color: rgba(35, 74, 53, 0.8);
    box-sizing: border-box;
    line-height: 70px;
    height: 70px;
    padding: 0 30px;
    color: #333;
    font-size: 16px;
    letter-spacing: 0.01em;
    font-family: "微軟正黑體";
    transition: all .3s linear;
}
.contact-form-list-textarea{
    width: calc(100% - 230px);
    border: 1px solid #234a35;
    background-color: rgba(35, 74, 53, 0.3);
    box-sizing: border-box;
    height: 270px;
    padding: 20px 30px;
    color: #000;
    font-size: 16px;
    letter-spacing: 0.01em;
    font-family: "微軟正黑體";
    resize: none;
    transition: all .3s linear;
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #fff;
    transition: all .3s linear;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #fff;
    transition: all .3s linear;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #fff;
    transition: all .3s linear;
}

/*--------contact共用-----------*/

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.contact-form-select{
    width: 100%;
    border: 1px solid #234a35;
    background-color: rgba(35, 74, 53, 0.8);
    box-sizing: border-box;
    line-height: 70px;
    height: 70px;
    padding: 0 30px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    font-family: "微軟正黑體";
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    transition: all .3s linear;
}
.contact-form-select-box{
    width: calc(100% - 230px);
    display: inline-block;
    vertical-align: top;
    position: relative;
}
.contact-form-select-box:after{
    content: '\f078';
    font-weight: bold;
    font-family: "Font Awesome 5 Free";
    font-size: 16px;
    color: #ea6d35;
    display: block;
    position: absolute;
    right: 10px;
    top: calc(50% - 11px);
    pointer-events: none;
}
.button{
    margin-top: 50px;
}
.button button{
    width: calc(100% - 230px);
    display: inline-block;
    vertical-align: top;
    line-height: 70px;
    border: none;
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.01em;
    background: #ea6d35;
    cursor: pointer;
    transition: all .3s linear;
}
.button button i{
    margin-left: 5px;
}

/*表單送出*/
.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;
    }
}

.contact-form-text:focus:-moz-placeholder,
.contact-form-list-textarea:focus:-moz-placeholder,
.contact-form-text:hover:-moz-placeholder,
.contact-form-list-textarea:hover:-moz-placeholder{
    color: #fff;
}
.contact-form-text:focus::-moz-placeholder,
.contact-form-list-textarea:focus::-moz-placeholder,
.contact-form-text:hover::-moz-placeholder,
.contact-form-list-textarea:hover::-moz-placeholder{
    color: #fff;
}
.contact-form-text:focus::-webkit-input-placeholder,
.contact-form-list-textarea:focus::-webkit-input-placeholder,
.contact-form-text:hover::-webkit-input-placeholder,
.contact-form-list-textarea:hover::-webkit-input-placeholder{
    color: #fff;
}
.contact-form-select:focus,
.contact-form-select:hover,
.contact-form-text:focus,
.contact-form-text:hover,
.contact-form-list-textarea:focus,
.contact-form-list-textarea:hover{
    background-color: rgba(35, 74, 53, 1);
    color: #fff;
    border: 1px solid rgba(35, 74, 53, 1);
}
.button button:hover{
    letter-spacing: 0.1em;
    color: #fff;
    background: #bd5628;
}















@media only screen and (max-width: 1280px){
    .contact-all-box{
        width: 1000px;
    }
}
@media only screen and (max-width: 1000px){
    .contact-all-box{
        width: 95%;
    }
    .contact-form-list-title{
        width: 160px;
    }
    .contact-form-text,
    .contact-form-select-box,
    .contact-form-list-textarea,
    .button button{
        width: calc(100% - 160px);
    }
}
@media only screen and (max-width: 550px){
    .contact-info-box{
        padding: 30px 10px;
    }
    .contact-form-list-title{
        width: 100%;
        line-height: 2;
        font-size: 14px;
    }
    .contact-form-text,
    .contact-form-select-box,
    .contact-form-list-textarea,
    .button button{
        width: 100%;
    }
    .contact-form-text,
    .contact-form-select,
    .button button{
        height: 40px;
        line-height: 40px;
    }
    .button button{
        font-size: 16px;
    }
    .contact-title{
        font-size: 18px;
    }
    .contact-title-text{
        font-size: 12px;
        margin-top: 5px;
    }
    .contact-text-p-box{
        margin-top: 30px;
    }
    .contact-text-p-box p{
        font-size: 12px;
    }
    .contact-form-list{
        margin-top: 10px;
    }
    .contact-form-text,
    .contact-form-select{
        font-size: 12px;
        padding: 0 15px ;
    }
    .contact-form-list-textarea{
        height: 120px;
        font-size: 12px;
        padding: 10px 15px;
    }
    .button{
        margin-top: 20px;
    }
}




/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .contact-title,
    .contact-title-text,
    .contact-text-p-box p,
    .contact-form-list-title,
    .contact-form-text,
    .contact-form-select-box,
    .contact-form-list-textarea,
    .button button{
        opacity: 0;
    }
    .contact-title{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-title-text{
        animation: fadeInRight 1s ease 0.2s 1 both;
    }
    .contact-text-p-box p{
        animation: fadeInDown 1s ease 0.4s 1 both;
    }
    .contact-form-list.anima .contact-form-list-title{
        animation: fadeInRight 1s ease 0s 1 both;
    }
    .contact-form-list.anima .contact-form-text,
    .contact-form-list.anima .contact-form-select-box,
    .contact-form-list.anima .contact-form-list-textarea{
        animation: fade 1s ease 0s 1 both;
    }
    .button button.anima{
        animation: fade 1s ease 0s 1 both;
    }
}