﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    box-sizing: border-box;
    margin-top: 180px;
    min-height: calc(100vh - 180px);
    padding: 60px 0;
}
.contact-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
}
.contact-banner-box{
    width: 100%;
    height: 500px;
    display: block;
    overflow: hidden;
    margin-top: 60px;
}
.contact-info-box{
    width: 900px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    position: relative;
    box-sizing: border-box;
    padding: 130px 0;
}
.contact-form-list{
    margin-top: 45px;
}
.contact-form-list-title{
    width: 100px;
    display: inline-block;
    vertical-align: top;
    line-height: 50px;
    font-size: 18px;
    font-family: 'Noto Serif TC';
    font-weight: 700;
    color: #000;
    letter-spacing: 0.2em;
}
.contact-form-text{
    width: calc(100% - 100px);
    display: inline-block;
    vertical-align: top;
    background-color: rgba(123, 37, 50, 0.05);
    height: 50px;
    line-height: 50px;
    box-sizing: border-box;
    border: none;
    padding: 0 15px;
    font-size: 14px;
    font-family: "Noto Sans TC";
    color: #666;
    letter-spacing: 0.2em;
    transition: all .3s linear;
}
.contact-form-list-textarea{
    width: calc(100% - 100px);
    height: 200px;
    display: inline-block;
    vertical-align: top;
    background-color: rgba(123, 37, 50, 0.05);
    line-height: 36px;
    box-sizing: border-box;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    font-family: "Noto Sans TC";
    color: #666;
    letter-spacing: 0.2em;
    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: #666;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "Noto Sans TC";
    color: #666;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "Noto Sans TC";
    color: #666;
}

/*--------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{
    font-family: "Noto Sans TC","微軟正黑體","Microsoft JhengHei";
}
.button{
    margin: 0;
    padding: 0;
    outline: 0;
    background: transparent;
    font-weight: normal;
    width: 100%;
    display: block;
    text-align: center;
    margin-top: 60px;
}
.button button{
    width: 300px;
    line-height: 80px;
    display: inline-block;
    font-size: 18px;
    color: #fff;
    background-color: #7b2532;
    box-sizing: border-box;
    border: none;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 0;
    padding-left: 0.2em;
    cursor: pointer;
    transition: all .3s linear;
}
.contact-form-select{
    width: 100%;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    display: block;
    background-color: rgba(123, 37, 50, 0.05);
    height: 50px;
    line-height: 50px;
    box-sizing: border-box;
    border: none;
    padding: 0 15px;
    padding-right: 40px;
    font-size: 14px;
    font-family: "Noto Sans TC";
    color: #666;
    letter-spacing: 0.2em;
    transition: all .3s linear;
}
.contact-form-select-box{
    width: calc(100% - 100px);
    position: relative;
    display: inline-block;
    vertical-align: top;
}
.contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 5px solid transparent;
    border-top: 8px solid #666;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    right: 15px;
    top: calc(50% - 4px);
    pointer-events: none;
}

.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-bg-box{
    position: absolute;
    bottom: 80px;
    left: -380px
}


/*表單送出*/
.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: 1700px){
    .contact-bg-box{
        left: -22vw;
    }
}
@media only screen and (max-width: 1400px){
    .contact-info-box{
        width: 700px;
    }
}
@media only screen and (max-width: 1300px){
    .contact-all-box{
        width: 1180px;
    }
    .contact-banner-box{
        height: calc((500 / 1280) * 1180px);
    }
    .contact-bg-box{
        width: 240px;
        left: -18vw;
    }
}
@media only screen and (max-width: 1200px){
    .contact-all-box{
        width: 980px;
    }
    .contact-banner-box{
        height: calc((500 / 1280) * 980px);
    }
}
@media only screen and (max-width: 1000px){
    .contact-box{
        margin-top: 93px;
        min-height: calc(100vh - 93px);
    }
    .contact-all-box{
        width: 740px;
    }
    .contact-banner-box{
        height: calc((500 / 1280) * 740px);
        margin-top: 40px;
    }
    .contact-info-form{
        position: relative;
        z-index: 1;
    }
    .contact-info-box{
        padding: 0;
    }
    .contact-bg-box{
        width: 150px;
        left: -20px;
        bottom: 0;
        opacity: 0.3;
        z-index: 0;
    }
    
}
@media only screen and (max-width: 768px){
    .contact-box{
        padding: 40px 0;
    }
    .contact-all-box{
        width: 540px;
    }
    .contact-banner-box{
        height: calc((500 / 1280) * 540px);
        margin-top: 20px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        margin-top: 65px;
        min-height: calc(100vh - 65px);
        padding: 20px 0;
    }
    .contact-all-box{
        width: calc(95vw - 10px);
    }
    .contact-banner-box{
        height: calc((500 / 1280) * calc(95vw - 10px));
        margin-top: 10px;
    }

    .button button{
        min-width: 150px;
        width: 60vw;
        line-height: 40px;
        font-size: 14px;
    }
    .contact-form-list-title{
        font-size: 16px;
        width: 60px;
        line-height: 40px;
    }
    .contact-form-select-box{
        width: calc(100% - 60px);
    }
    .contact-form-select{
        height: 40px;
        line-height: 40px;
        padding: 0 10px ;
        padding-right: 30px;
    }
    .contact-form-select-box:after{
        right: 10px;    
    }
    .contact-form-text{
        width: calc(100% - 60px);
        height: 40px;
        line-height: 40px;
        padding: 0 10px ;
    }
    .contact-form-list-textarea{
        width: calc(100% - 60px);
        height: 100px;
        line-height: 30px;
        padding: 5px 10px ;
    }
    .contact-bg-box{
        display: none;
    }
    .contact-form-list{
        margin-top: 20px;
    }
    .button{
        margin-top: 30px;
    }
}

@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: 1001px){
    .contact-form-text:focus,
    .contact-form-list-textarea:focus,
    .contact-form-select:focus{
        background-color: rgba(123, 37, 50, 0.15);
    }
    .button button:hover{
        background-color: #511820;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }

    .contact-banner-box,
    .contact-form-list,
    .button,
    .contact-bg-box{
        opacity: 0;
    }
    .contact-banner-box.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .button.anima,
    .contact-form-list.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .contact-bg-box.anima{
        animation: fadeInRight 1s ease 0s 1 both;
    }
}