﻿.contact-box{
    width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    background-color: #f5f5f5;
    padding-top: 71px;
    min-height: 100vh;
    box-sizing: border-box;
}
.contact-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 0;
}
.contact-form-list{
    margin-top: 40px;
}
/* .contact-form-list:nth-child(3){
    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: #1da539;
    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;
}

.contact-form-address-box{
    width: 600px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
    font-size: 0;
}
.contact-form-address-box>input,
.contact-form-address-box>select{
    display: none;
}
.contact-form-address-select{
    width: calc(50% - 20px);
    display: inline-block;
    vertical-align: top;
    position: relative;
    box-sizing: border-box;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    overflow: hidden;
    margin-left: 40px;
}
.contact-form-address-select:first-child{
    margin-left: 0;
}
.contact-form-address-select: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-address-select: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-form-address-select>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-checkbox-box{
    width: 600px;
    max-width: 100%;
    display: inline-block;
    vertical-align: top;
}
.contact-form-checkbox{
    width: 25%;
    font-size: 16px;
    box-sizing: border-box;
    background-color: #fff;
    padding-right: 10px;
    border: none;
    display: inline-block;
    vertical-align: top;
    position: relative;
    margin-bottom: 10px;
}
.contact-form-checkbox input[type="checkbox"]{
    display: inline-block;
    vertical-align: top;
    margin: 0;
    margin-right: 5px;
    margin-top: 6px;

}
.contact-form-checkbox span{
    width: calc(100% - 22px);
    display: inline-block;
    vertical-align: top;
    color: #888;
    font-family: "微軟正黑體";
    letter-spacing: 0.06em;
    /* line-height: 50px; */
    font-size: 16px;

}

.contact-text-box{
    font-size: 14px;
    color: #ff0000;
    letter-spacing: 0.06em;
    display: block;
    text-align: center;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.button{
    margin-top: 20px;
}
.button button{
    width: 100%;
    font-size: 16px;
    letter-spacing: 0.06em;
    color: #fff;
    line-height: 50px;
    text-align: center;
    background-color: #1da539;
    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-form-list-title{
        width: calc(100% - 400px);
    }
    .contact-form-text{
        width: 400px;
    }
}
@media only screen and (max-width: 768px){
    .contact-all-box{
        width: 100%;
        padding: 40px 0;
        padding-top: 0;
    }
    .contact-form-list-title{
        width: 100%;
    }
    .contact-form-text,
    .contact-form-select-box{
        width: 100%;
    }
    .contact-form-list{
        margin-top: 20px;
    }
    .contact-form-checkbox{
        width: 33%;
    }
}
@media only screen and (max-width: 550px){
    .contact-all-box{
        padding: 20px 0;
        padding-top: 0;
    }
    .contact-form-list{
        margin-top: 10px;
    }
    .contact-form-list:first-child{
        margin-top: 0;
    }
    .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;
        font-size: 14px;
    }
    div.contact-form-text {
        line-height: 36px;
    }


    .contact-form-address-select>select{
        line-height: 36px;
        height: 36px;
        padding-right: 36px;
        font-size: 14px;
    }
    .contact-form-address-select:before{
        width: 36px;
    }
    .contact-form-address-select:after{
        right: 14px;
        top: 14px;
    }
    .contact-form-address-select{
        width: calc(100%);
        margin-left: 0;
        margin-top: 10px;
    }
    .contact-form-address-select:first-child{
        margin-top: 0;
    }
    .contact-form-checkbox{
        width: 50%;
    }
    .contact-form-checkbox input[type="checkbox"]{
        margin-right: 3px;
        margin-top: 3px;
    }
    .contact-form-checkbox span{
        font-size: 12px;
    }
    .contact-text-box{
        font-size: 12px;
    }
}
textarea:focus{
    border-color: #1da539;
}

/*<-------------動畫------------->*/
/* @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; 
    }
    .button button:hover{
        background-color: var(--deputyColor);
    }
} */