﻿.warranty-box{
    width: 100%;
    display: block;
    position: relative;
    margin-top: 100px;
    min-height: calc(100vh - 100px);
    background-color: #f5f5f5;
}
.warranty-all-box{
    width: 1280px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    position: relative;
    box-sizing: border-box;
    padding: 80px 0;
}
.warranty-title-box{
    text-align: center;
    margin-bottom: 100px;
}
.warranty-title-en{
    font-size: 26px;
    font-family: "Oswald";
    font-weight: 700;
    letter-spacing: 2px;
}
.warranty-title-ch{
    display: inline-block;
    width: 210px;
    font-size: 24px;
    color: #25262d;
    font-weight: bold;
    letter-spacing: 2px;
    margin-top: 15px;
    position: relative;
}
.warranty-title-ch:after{
    content: '';
    width: 1px;
    height: 11px;
    display: block;
    background-color: #25262d;
    position: absolute;
    bottom: calc(50% - 6px);
    left: 0;
}
.warranty-title-ch:before{
    content: '';
    width: 1px;
    height: 11px;
    display: block;
    background-color: #25262d;
    position: absolute;
    bottom: calc(50% - 6px);
    right: 0;
}
.warranty-l-box{
    width: 50%;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    padding-right: 80px;
}
.contact-form-list{
    margin-bottom: 25px;
}
.contact-form-list-data{
    position: relative;
}
.contact-form-list-data>span{
    position: absolute;
    left: 125px;
    top: 14px;
    font-size: 14px;
    color: #888;
}
.contact-form-list-title{
    font-size: 16px;
    color: #25262d;
    letter-spacing: 1px;
    font-family: "微軟正黑體";
    margin-bottom: 10px;
}
.contact-form-text{
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 14px;
    color: #888;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    line-height: 46px;
    letter-spacing: 1px;
    padding: 0 15px;
    font-weight: lighter;
}
.contact-form-list-textarea{
    width: 100%;
    display: block;
    box-sizing: border-box;
    font-size: 14px;
    color: #888;
    border: 1px solid #d1d1d1;
    border-radius: 5px;
    letter-spacing: 1px;
    padding: 0 15px;
    padding-top: 10px;
    font-weight: lighter;
    outline: none;
    resize: none;
    height: 200px;
}
.contact-form-text::-webkit-input-placeholder,
.contact-form-list-textarea::-webkit-input-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
    letter-spacing: 1px;
}
.contact-form-text:-moz-placeholder,
.contact-form-list-textarea:-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}
.contact-form-text::-moz-placeholder,
.contact-form-list-textarea::-moz-placeholder{
    font-family: "微軟正黑體";
    color: #888;
    font-weight: lighter;
}

/*--------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: #f26348;
    margin-left: 5px;
}

button{
    font-family: "微軟正黑體","Microsoft JhengHei";
}
.button button{
    font-size: 16px;
    font-weight: bold;
    color: #fff;
    background-color: #25262d;
    border-radius: 5px;
    width: 100%;
    display: block;
    border: none;
    line-height: 46px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all .3s linear;
}
.button button span{
    color: #f26348;
    margin-left: 5px;
    transition: all .3s linear;
}
.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%;
}

/*右邊*/
.warranty-r-box{
    width: 50%;
    display: inline-block;
    vertical-align: top;
}
.warranty-r-top-text-box{
    width: calc(100% - 275px);
    display: inline-block;
    vertical-align: top;
}
.warranty-r-img{
    width: 275px;
    display: inline-block;
    vertical-align: top;
}
.warranty-r-title{
    font-size: 24px;
    font-weight: bold;
    color: #25262d;
    letter-spacing: 1px;
    margin-bottom: 35px;
}
.warranty-r-name{
    font-size: 18px;
    font-weight: bold;
    color: #f26348;
    letter-spacing: 1px;
    transform: skewX(-10deg);
}
.warranty-r-text{
    font-size: 14px;
    color: #555;
    letter-spacing: 1px;
    line-height: 2.6;
    box-sizing: border-box;
    padding-left: 10px;
    position: relative;
    margin-bottom: 5px;
}
.warranty-r-text>span{
    color: #888;
}
.warranty-r-text:before{
    content: '◆';
    font-size: 14px;
    color: #555;
    position: absolute;
    left: 0;
}
.warranty-r-caveat{
    font-size: 16px;
    color: #25262d;
    letter-spacing: 1px;
    margin-top: 40px;
}
.warranty-r-caveat span{
    color: #f26348;
}



/*表單送出*/
.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: 1280px){
    .warranty-all-box{
        width: 1000px;
    }
    .warranty-r-top-text-box{
        vertical-align: middle;
    }
    .warranty-r-img{
        vertical-align: middle;
    }
}
@media only screen and (max-width: 1000px){
    .warranty-box{
        margin-top: 80px;
        min-height: calc(100vh - 80px);
    }
    .warranty-all-box{
        width: 95%;
        padding: 40px 0;
    }
    .warranty-title-box{
        margin-bottom: 50px;
    }
    .warranty-l-box{
        width: 100%;
        padding-right: 0;
    }
    .warranty-r-box{
        width: 100%;
        margin-top: 30px;
    }
}
@media only screen and (max-width: 750px){
    .warranty-title-en{
        font-size: 22px;
    }
    .warranty-title-ch{
        font-size: 20px;
        width: 160px;
        margin-top: 10px;
    }
    .warranty-r-title{
        font-size: 20px;
    }
    .warranty-r-name{
        font-size: 16px;
    }
    .warranty-r-caveat{
        font-size: 14px;
    }
}
@media only screen and (max-width: 550px){
    .warranty-box{
        margin-top: 54px;
        min-height: calc(100vh - 54px);
    }
    .warranty-all-box{
        padding: 20px 0;
    }
    .warranty-title-box{
        margin-bottom: 30px;
    }
    .warranty-title-en{
        font-size: 18px;
    }
    .warranty-title-ch{
        font-size: 16px;
        width: 130px;
        margin-top: 0;
    }
    .warranty-r-title{
        font-size: 16px;
    }
    .warranty-r-name{
        font-size: 14px;
    }
    .warranty-r-text{
        font-size: 12px;
        line-height: 2;
    }
    .contact-form-list-title{
        font-size: 14px;
        margin-bottom: 5px;
    }
    .contact-form-text,
    .contact-form-list-textarea{
        font-size: 12px;
        line-height: 36px;
        padding: 0 10px;
    }
    .contact-form-list-textarea{
        height: 150px;
    }
    .contact-form-list{
        margin-bottom: 15px;
    }
    .button button{
        font-size: 14px;
        line-height: 36px;
    }
    .warranty-r-top-text-box{
        display: block;
        width: 100%;
    }
    .warranty-r-img{
        display: block;
        width: 200px;
        margin-bottom: 10px;
    }
}
@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;
    }
}


/*hover*/
.contact-form-text:focus{
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.contact-form-list-textarea:focus{
    box-shadow: 0 0 3px rgba(0,0,0,0.3);
}
.button button:hover{
    background-color: #f26348;
}
.button button:hover span{
    color: #25262d;
}



/*animation*/

@media only screen and (min-width: 1001px){
    .warranty-title-en,
    .warranty-title-ch,
    .warranty-title-ch:before,
    .warranty-title-ch:after,
    .contact-form-list,
    .button{
        opacity: 0;
    }
    .warranty-title-en.anima{
        animation: fadeInDown 1s ease 0s 1 both;
    }
    .warranty-title-ch.anima{
        animation: fade 1s ease .4s 1 both;
    }
    .warranty-title-ch.anima:before{
        animation: title_b_fadeInLeft 1s ease .5s 1 both;
    }
    .warranty-title-ch.anima:after{
        animation: title_b_fadeInRight 1s ease .5s 1 both;
    }
    .contact-form-list.anima{
        animation: fadeInLeft 1s ease 0s 1 both;
    }
    .warranty-r-box{
        animation: fade 1s ease 0s 1 both;
    }
    .button.anima{
        animation: fadeInUp 1s ease 0s 1 both;
    }
}