﻿.contact-box{
    width: 100%;
    font-size: 0;
    margin: 0 auto;
    margin-top: 79px;
    background-color: #93a7b0;
}

.contact-title-box{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: calc((500 / 1920) * 100vw);
    position: relative;
    text-align: center;
    display:         flex;
    display: -webkit-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
}
.contact-title-box span{
    width: 100%;
    height: 100%;
    background-color: #000;
    opacity: 0.5;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
}
.contact-title-box .page-title-en,
.contact-title-box .page-title-ch{
    position: relative;
    z-index: 1;
}

.contact-form-box{
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
    padding: 90px 0;
    overflow: hidden;
}
.contact-info-form{
    padding: 20px 0;
    position: relative;
    margin-bottom: 0;
}
.contact-form-list-title{
    font-size: 18px;
    letter-spacing: 0.2em;
    color: var(--white);
    line-height: 50px;
    font-family: 'Noto Serif TC';
    display: inline-block;
    vertical-align: middle;
    width: 100px;
    margin-bottom: 0;
}
.contact-form-list{
    margin-bottom: 70px;
}
.contact-form-text,
.contact-form-list-textarea{
    width: calc(100% - 100px);
    display: inline-block;
    vertical-align: top;
    height: 50px;
    padding: 0 10px;
    outline: none;
    border-radius: 5px;
    border: none;
    font-size: 14px;
    color: #555;
    font-family: "微軟正黑體";
    background-color: #eee;
}
.contact-form-list-textarea{
    height: 200px;
    padding: 5px 10px;
    outline: none;
    resize: none;
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #ddd;
    font-weight: lighter;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #ddd;
    font-weight: lighter;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #ddd;
    font-weight: lighter;
}
.contact-info-line-box{
    position: absolute;
    top: -20px;
    left: 65px;
    width: 1px;
    height: calc(100% - 55px);
    background-color: #eee;
}
.contact-info-line-box:before{
    content: '';
    position: absolute;
    top: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    background-color: #eee;
}
.contact-info-line-box:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: -4px;
    width: 9px;
    height: 9px;
    background-color: #eee;
}

.contact-info-box{
    background-color: #1b1b1b;
}
.contact-info-img{
    width: 50%;
    display: inline-block;
    vertical-align: middle;
    overflow: hidden;
    height: calc((600 / 960) * 50vw);
}
.contact-info-img span{
    width: 100%;
    height: 100%;
    display: block;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.contact-info-right-box{
    width: 50%;
    display: inline-flex;
    display: -webkit-inline-flex;
    align-items: center;
    -webkit-align-items: center;
    justify-content: center;
    -webkit-justify-content: center;
    flex-direction: column;
    vertical-align: middle;
    overflow: hidden;
    height: calc((600 / 960) * 50vw);
}
.contact-logo-box{
    margin-bottom: 30px;
}
.contact-info p{
    font-size: 22px;
    letter-spacing: 0.2em;
    line-height: 40px;
    margin-bottom: 0;
    color: var(--white);
}
.contact-info>span{
    width: 50px;
    height: 1px;
    display: block;
    background-color: #555;
    margin: 20px 0;
}
.contact-url a{
    font-size: 14px;
    letter-spacing: 0.06em;
    line-height: 30px;
    color: #93a7b0;
    transition: all .3s linear;
}
.contact-url a>i {
    margin-right: 5px;
}
/*--------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{
    position: relative;
    left: 25px;
}
.button button{
    width: 80px;
    background-color: #282d30;
    border-radius: 5px;
    font-size: 22px;
    letter-spacing: 0.2em;
    color: var(--white);
    line-height: 42px;
    font-family: 'Noto Serif TC';
    border: none;
    text-align: center;
    padding: 0;
    outline: none;
    padding-left: 0.2em;
    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{
    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: 1200px){
    .contact-info p{
        font-size: 20px;
        line-height: 34px;
    }
    .contact-logo-box{
        margin-bottom: 20px;
    }
    .contact-info>span{
        margin: 10px 0;
    }
}
@media only screen and (max-width: 1000px){
    .contact-info-right-box{
        width: 100%;
        height: calc((600 / 960) * 100vw);
    }
    .contact-info-box{
        display:         flex;
        display: -webkit-flex;
        flex-direction: column-reverse;
    }
    .contact-info-img {
        width: 100%;
        display: inline-block;
        vertical-align: middle;
        overflow: hidden;
        height: calc((600 / 960) * 100vw);
    }
}
@media only screen and (max-width: 768px){
    .contact-info-line-box{
        display: none;
    }
    .contact-form-box{
        width: 95%;
        padding: 20px 0;
    }
    .contact-form-list-title{
        line-height: 2;
        display: block;
    }
    .contact-form-text, 
    .contact-form-list-textarea{
        width: 100%;
    }
    .contact-form-list{
        margin-bottom: 20px;
    }
    .button{
        left: 0;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        margin-top: 70px;
    }
    .contact-form-list-title{
        font-size: 16px;
    }
    .contact-info-form{
        padding: 0;
    }
    .contact-form-text, 
    .contact-form-list-textarea{
        font-size: 12px;
        height: 36px;
    }
    .contact-info-right-box{
        height: 300px;
    }
    .button button{
        font-size: 18px;
        width: 60px;
        line-height: 32px;
    }
    .contact-logo-box img{
        width: 80px;
    }
    .contact-info p{
        font-size: 16px;
        line-height: 24px;
    }
    .contact-url a{
        font-size: 12px;
        line-height: 20px;
    }
    .contact-title-box{
        height: 114px;
    }
}


@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-info p{
        font-size: 14px;
    }
}





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

@media only screen and (min-width: 1001px){
    .contact-form-list,
    .contact-info-line-box,
    .button,
    .contact-info-img,
    .contact-info-right-box{
        opacity: 0;
    }
    .contact-form-box.anima .contact-form-list{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .contact-form-box.anima .contact-info-line-box{
        transform-origin: 50% 0;
        opacity: 1;
        animation: line2 1s ease 0s 1 both;
    }
    .contact-form-box.anima .button{
        animation: fade 1s ease 1s 1 both;
    }
    .contact-info-box.anima .contact-info-img{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .contact-info-box.anima .contact-info-right-box{
        animation: fade 1s ease 0.5s 1 both;
    }
}


.contact-form-text:focus, 
.contact-form-list-textarea:focus{
    background-color: #e1e1e1;
}
.button button:hover{
    background-color: #0f4058;
}
.contact-url a:hover{
    color: var(--white);
}