﻿
.contact-box{
    width: 100%;
    position: relative;
    box-sizing: border-box;
    margin-top: 90px;
    min-height: calc(100vh - 90px);
    background-color: #f5f5f5;
    padding-bottom: 60px;
}
.contact-box .depth-title-box{
    background-color: #fff;
    box-sizing: border-box;
    padding-top: 60px;
}
.contact-title-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.contact-title-all-box span{
    width: calc((200px - 2px) / 3);
    height: 3px;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: 2px;
    margin-top: 10px;
}
.contact-title-all-box span:nth-child(2){
    background-color: #e95412;
}
.contact-title-all-box span:nth-child(3){
    background-color: #00a0ea;
    margin: 0 1px;
    margin-top: 10px;
}
.contact-title-all-box span:nth-child(4){
    background-color: #8fc320;
}

.contact-all-box{
    width: 100%;
    display: block;
}
.contact-info-form{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    font-size: 0;
}
.contact-info-p{
    font-size: 16px;
    color: #000;
    line-height: 36px;
    letter-spacing: 0.06em;
    box-sizing: border-box;
    padding: 80px 0;
}
.contact-form-list{
    width: 100%;
    display: block;
    margin-top: 60px;
}
.contact-form-list:first-child{
    margin-top: 0;
}
.contact-form-list-title{
    width: 200px;
    font-size: 18px;
    font-weight: 700;
    color: #000;
    line-height: 60px;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: top;
}
.contact-form-list-title span{
    font-size: 14px;
    color: #666;
    margin-left: 10px;
}
.contact-form-text{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: top;
    height: 60px;
    line-height: 60px;
    background-color: #fff;
    border: none;
    box-sizing: border-box;
    padding: 0 20px;
    font-size: 16px;
    color: #666;
    font-family: "微軟正黑體";
    letter-spacing: 0.06em;
    transition: all .3s linear;
}
.contact-form-list-textarea{
    width: calc(100% - 200px);
    display: inline-block;
    vertical-align: top;
    height: 300px;
    line-height: 36px;
    background-color: #fff;
    border: none;
    box-sizing: border-box;
    padding: 10px 20px;
    font-size: 16px;
    color: #666;
    font-family: "微軟正黑體";
    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: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
input[type=number]::-webkit-inner-spin-button {
    display: none;
}



button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.contact-button{
    width: 100%;
    display: block;
    margin-top: 80px;
}
.contact-button button{
    width: 100%;
    color: #fff;
    letter-spacing: 0.06em;
    font-size: 24px;
    line-height: 80px;
    background-color: #313131;
    border: none;
    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-box{
        margin-top: 66px;
        min-height: calc(100vh - 66px);
    }
    .contact-title-all-box,
    .contact-info-form{
        width: 750px;
    }
    .contact-info-p{
        padding: 60px 0;
    }
    .contact-title-all-box span{
        width: calc((150px - 2px) / 3);
    }
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding-bottom: 40px;
    }
    .contact-box .depth-title-box{
        padding-top: 40px;
    }
    .contact-title-all-box,
    .contact-info-form{
        width: 550px;
    }
    .contact-info-p{
        padding: 40px 0;
    }
    .contact-form-list-title {
        width: 150px;
    }
    .contact-form-text,
    .contact-form-list-textarea{
        width: calc(100% - 150px);
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        margin-top: 58px;
        min-height: calc(100vh - 58px);
        padding-bottom: 20px;
    }
    .contact-box .depth-title-box{
        padding-top: 20px;
    }
    .contact-title-all-box,
    .contact-info-form{
        width: 95vw;
    }
    .contact-info-p{
        padding: 20px 0;
        font-size: 14px;
        line-height: 30px;
    }
    .contact-form-list{
        margin-top: 20px;
    }
    .contact-form-list-title {
        width: 100px;
        font-size: 16px;
        line-height: 40px;
    }
    .contact-form-list-title span {
        font-size: 12px;
        margin-left: 5px;
    }
    .contact-form-text,
    .contact-form-list-textarea{
        width: calc(100% - 100px);
    }
    .contact-form-text{
        font-size: 14px;
        line-height: 40px;
        height: 40px;
        padding: 0 10px;
    }
    .contact-form-list-textarea{
        font-size: 14px;
        line-height: 2;
        height: 150px;
        padding: 5px 10px;
    }
    .contact-title{
        font-size: 18px;
        line-height: 30px;
    }
    .contact-title-all-box span{
        margin-top: 5px;
    }
    .contact-title-all-box span:nth-child(3) {
        margin-top: 5px;
    }
    .contact-button{
        margin-top: 30px;
    }
    .contact-button button{
        line-height: 40px;
        font-size: 18px;
    }
}



@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: 400px){
    .contact-form-list-title {
        width: 100%;
        display: block;
    }
    .contact-form-text,
    .contact-form-list-textarea{
        width: 100%;
        display: block;
    }
}



/*animation*/
/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .contact-title-all-box span:nth-child(2){
        animation: line .3s linear .0s 1 both;
        opacity: 1;
        transform-origin: left;
    }
    .contact-title-all-box span:nth-child(3){
        animation: line .3s linear .3s 1 both;
        opacity: 1;
        transform-origin: left;
    }
    .contact-title-all-box span:nth-child(4){
        animation: line .3s linear .6s 1 both;
        opacity: 1;
        transform-origin: left;
    }
    .contact-info-p{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .contact-form-list-title,
    .contact-form-text,
    .contact-form-list-textarea,
    .contact-button{
        opacity: 0;
    }
    .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-list-textarea{
        animation: fade 1s ease 0s 1 both;
    }
    .contact-button.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
    
    .contact-form-text:focus,
    .contact-form-list-textarea:focus,
    .contact-form-text:hover,
    .contact-form-list-textarea:hover{
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.35);
    }
    .contact-button button:hover{
        background-color: #8fc320;
    }
}