﻿.contact-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    background-color: #f5f5f5;
    margin-top: var(--mainMargin_Top);
}
.contact-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 80px 0;
}
.contact-form-list{
    margin-top: 40px;
}
.contact-form-list:first-child{
    margin-top: 0;
}
.contact-form-list-title{
    font-size: 16px;
    color: #000;
    letter-spacing: 0.06em;
    display: inline-block;
    vertical-align: top;
    line-height: 50px;
    width: calc(100% - 600px);
}
.contact-form-list-title span{
    font-size: 14px;
    color: var(--mainColor);
    vertical-align: bottom;
    margin-left: 5px;
}
.contact-form-text{
    width: 600px;
    max-width: 100%;
    height: 50px;
    display: inline-block;
    vertical-align: top;
    letter-spacing: 0.06em;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #fff;
    padding: 0 10px;
    color: #888;
    border: 1px solid #d1d1d1;
    font-family: "微軟正黑體";
}
div.contact-form-text{
    line-height: 50px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.contact-form-list-textarea{
    width: 600px;
    max-width: 100%;
    height: 200px;
    display: inline-block;
    vertical-align: top;
    letter-spacing: 0.06em;
    font-size: 16px;
    box-sizing: border-box;
    border-radius: 5px;
    background-color: #fff;
    padding: 5px 10px;
    color: #888;
    border: 1px solid #d1d1d1;
    resize: none;
    outline: none;
    font-family: "微軟正黑體";
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
}
.contact-form-select-block{
    width: 600px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.button{
    margin-top: 50px;
}
.button button{
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 50px;
    text-align: center;
    background-color: var(--mainColor);
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: all .3s linear;
}
.contact-form-select{
    width: 100%;
    height: 48px;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    padding: 0 10px;
    padding-right: 50px;
    color: #888;
    border: none;
    display: block;
    position: relative;
    font-family: "微軟正黑體";
    letter-spacing: 0.06em;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
}
.contact-form-select-box{
    width: 600px;
    display: inline-block;
    vertical-align: top;
    position: relative;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}
.contact-form-select-block .contact-form-select-box{
    width: 100%;
}
.contact-form-select-box:last-child{
    margin-bottom: 0;
}
.contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 5px solid transparent;
    border-top: 9px solid #888;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    pointer-events: none;
    z-index: 2;
}
.contact-form-select-box:before{
    content: 'none';
    font-size: 0;
    width: 50px;
    height: 100%;
    display: block;
    border-left: 1px solid #d1d1d1;
    background-color: #eee;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 1;
    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-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;
    }
}


@media only screen and (max-width: 1000px){
    .contact-box{
        margin-top: var(--rwd1000Margin_Top);
    }
}
@media only screen and (max-width: 800px){
    .contact-box{
        margin-top: var(--rwd550Margin_Top);
    }
    .contact-all-box{
        width: 550px;
        padding: 40px 0;
    }
    .contact-form-list-title{
        width: 100%;
    }
    .contact-form-text,
    .contact-form-select-box{
        width: 100%;
    }
    .contact-form-list{
        margin-top: 20px;
    }
}
@media only screen and (max-width: 550px){
    .contact-box{
        margin-top: var(--rwd550Margin_Top);
    }
    .contact-all-box{
        width: 95%;
        padding: 20px 0;
    }
    .contact-form-list{
        margin-top: 10px;
    }
    .contact-form-list-title{
        line-height: 36px;
        font-size: 14px;
    }
    .contact-form-text{
        height: 36px;
        font-size: 14px;
    }
    .contact-form-select{
        height: 34px;
        font-size: 14px;
        padding-right: 36px;
    }
    .contact-form-select-box:before{
        width: 36px;
    }
    .contact-form-select-box:after{
        right: 13px;
        top: 14px;
    }
    .button{
        margin-top: 20px;
    }
    .button button{
        font-size: 14px;
        line-height: 36px;
    }
    .contact-form-list-textarea{
        height: 150px;
    }
    div.contact-form-text {
        line-height: 36px;
    }
}
textarea:focus{
    border-color: var(--mainColor);
}
.button button:hover{
    background-color: var(--deputyColor);
}

/*<-------------動畫------------->*/
@media only screen and (min-width: 1001px){
    .contact-form-list,
    .button{
        opacity: 0;
    }
    .contact-form-list.anima{
        animation: fadeInUp 1s ease 0s 1 both; 
    }
    .button.anima{
        animation: fade 1s ease 0s 1 both; 
    }
}