﻿.contact-box{
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    background-color: #fff;
}
.contact-all-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding: 11rem 0;
}
.contact-notice-box{
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    margin-top: 2.75rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
.line-line{
    margin-right: 2px;
    display: block;
}
.svg{
    width: 44px;
    height: 44px;
}
.contact-info-form{
    width: 100%;
    display: block;
    margin-top: 7rem;
}
.contact-form-list-title{
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.25rem;
    color: #000;
    letter-spacing: 0.1em;
    line-height: 3.75rem;
    width: 180px;
    display: inline-block;
    vertical-align: top;
}
.contact-form-list-title span{
    margin-left: 5px;
}
.contact-form-text{
    width: calc(100% - 180px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 0 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    height: 3.75rem;
    line-height: 3.75rem;
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.25rem;
    transition: all 0.3s linear;
}
.contact-form-list{
    margin-bottom: 3.75rem;
}
.contact-form-list-textarea{
    width: calc(100% - 180px);
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding: 15px 20px;
    border: 1px solid #ddd;
    background-color: #fff;
    height: 12.5rem;
    line-height: 1.75rem;
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.25rem;
    resize: none;
    transition: all 0.3s linear;
}



button{
    font-family: "Noto Serif TC";
}
.button{
    width: 100%;
    display: block;
    margin-top: 5.625rem;
}
.button button{
    width: calc(100% - 180px);
    display: block;
    margin-left: auto;
    box-sizing: border-box;
    border: none;
    padding: 0 60px;
    background-color: #025785;
    height: 6.25rem;
    line-height: 6.25rem;
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.75rem;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s linear;
}
.button button>span{
    width: calc(100% - 112px);
    display: inline-block;
    vertical-align: top;
    text-align: right;
}
.contact-form-select{
    width: 100%;
    height: 3.75rem;
    box-sizing: border-box;
    border: 1px solid #ddd;
    display: block;
    font-family: "Noto Serif TC";
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.1em;
    padding-left: 20px;
    padding-right: 60px;
    color: #000;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    transition: all 0.3s linear;
}
.contact-form-select-box{
    width: calc(100% - 180px);
    display: inline-block;
    vertical-align: top;
    position: relative;
}
.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 #000;
    border-left: 5px solid transparent;
    display: block;
    position: absolute;
    right: 24px;
    top: 28px;
    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: 1000px){
    .contact-all-box{
        width: 750px;
        padding: 5rem 0;
    }
    .contact-info-form{
        margin-top: 3.5rem;
    }
}
@media only screen and (max-width: 768px){
    .contact-all-box{
        width: 550px;
        padding: 2.5rem 0;
    }
    .contact-info-form{
        margin-top: 1.75rem;
    }
}
@media only screen and (max-width: 550px){
    .contact-all-box{
        width: calc(100vw - 40px);
        padding: 1.25rem 0;
    }
    .contact-notice-box{
        margin-top: 1rem;
        font-size: 0.875rem;
    }
    .svg{
        width: 24px;
        height: 24px;
    }
    .contact-info-form{
        margin-top: 1rem;
    }
    .contact-form-list-title{
        width: 100%;
        display: block;
        font-size: 1rem;
        letter-spacing: 0.06em;
        line-height: 1.25rem;
    }
    .contact-form-text{
        width: 100%;
        padding: 0 10px;
        height: 2.125rem;
        line-height: 2.125rem;
        font-size: 1rem;
        margin-top: 5px;
        letter-spacing: 0.06em;
    }
    .contact-form-list{
        margin-bottom: 15px;
    }
    .contact-form-select-box{
        width: 100%;
        margin-top: 5px;
    }
    .contact-form-select{
        height: 2.125rem;
        line-height: 2.125rem;
        font-size: 1rem;
        letter-spacing: 0.06em;
        padding-left: 10px;
        padding-right: 30px;
    }
    .contact-form-select-box:after{
        right: 10px;
        top: 14px;
    }
    .contact-form-list-textarea{
        width: 100%;
        padding: 10px;
        margin-top: 5px;
        line-height: 1.4;
        font-size: 1rem;
        letter-spacing: 0.06em;
        height: 120px;
    }
    .button{
        margin-top: 2rem;
    }
    .button button{
        width: 100%;
        padding: 0 10px;
        height: 50px;
        line-height: 50px;
        font-size: 1rem;
    }
    .button button>span {
        width: calc(100% - 64px);
    }
}
@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: 769px){
    .contact-form-text:focus,
    .contact-form-list-textarea:focus{
        background-color: rgba(0, 0, 0, 0.05);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }
    .contact-form-text:hover,
    .contact-form-select:hover,
    .contact-form-list-textarea:hover{
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }

    .button button:hover{
        background-color: #07903a;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.35);
    }


    .contact-notice-box,
    .contact-form-list,
    .button button{
        opacity: 0;
    }
    .contact-notice-box.anima{
        animation: fadeInUp 1.4s ease .6s 1 both;
    }
    .contact-form-list.anima{
        animation: fadeInDown 1.4s ease 0s 1 both;
    }
    .button button.anima{
        animation: fadeInLeft 1.4s ease 0s 1 both;
    }
}