﻿.contact-box{
    width: 800px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    font-size: 0;
    box-sizing: border-box;
    padding-bottom: 80px;
  }
  .contact-info-form{
    width: 380px;
    max-width: 100%;
    display: block;
  }
  .contact-info-form:nth-child(1){
    float: left;
  }
  .contact-info-form:nth-child(2){
    float: right;
  }
  .contact-form-list-title{
    font-size: 16px;
    color: #000;
    font-weight: bold;
  }
  .contact-form-list-title span{
    font-size: 12px;
    color: #ff4c4c;
    letter-spacing: 1px;
    padding-left: 5px;
  }
  .contact-form-list-title{
    margin-bottom: 20px;
  }
  .contact-form-list{
    box-sizing: border-box;
    margin-bottom: 40px;
  }
  .contact-form-list:last-child{
    margin-bottom: 0;
  }
  .contact-form-text{
    width: 100%;
    display: block;
    border: 0;
    border-bottom: 1px solid #888888;
    color: #888888;
    letter-spacing: 1px;
    padding-bottom: 5px;
  }
  
  .contact-form-text::-webkit-input-placeholder { color: #888888;font-family: "微軟正黑體"; }
  .contact-form-text:-moz-placeholder { color: #888888;font-family: "微軟正黑體"; }
  .contact-form-text::-moz-placeholder { color: #888888; font-family: "微軟正黑體";}
  .contact-form-text:-ms-input-placeholder { color: #888888; font-family: "微軟正黑體";}
  
  .contact-form-list-textarea::-webkit-input-placeholder { color: #888888;font-family: "微軟正黑體"; }
  .contact-form-list-textarea:-moz-placeholder { color: #888888;font-family: "微軟正黑體"; }
  .contact-form-list-textarea::-moz-placeholder { color: #888888; font-family: "微軟正黑體";}
  .contact-form-list-textarea:-ms-input-placeholder { color: #888888; font-family: "微軟正黑體";}
  
  .contact-form-list-textarea{
    width: 100%;
    height: 128px;
    border: 0;
    box-sizing: border-box;
    resize: none;
    border-bottom: 1px solid #888888;
    outline: none;
  }
  .button{
    padding-top: 27px;
  }
  .button button{
    width: 100%;
    height: 40px;
    border: 1px solid #7e99bd;
    box-sizing: border-box;
    font-size: 18px;
    background-color: transparent;
    outline: none;
    cursor: pointer;
    transition: all .5s ease;
    position: relative;
    overflow: hidden;
  } 
  .button button:after{
    content: 'none';
    font-size: 0;
    width: 100%;
    height: 100%;
    display: block;
    position: absolute;
    top: 0;
    right: -100%;
    transition: all .5s ease;
    background-color: #64c6d4;
  }
  .button button span{
    display: block;
    transform: skewX(-10deg);
    color: #7e99bd;
    font-weight: bold;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
    transition: all .5s ease;
  }
  .map-box{
    width: 100%;
    height: 300px;
    display: block;
    margin-top: 100px;
  }
  
  
  /*--------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;
  }
  
  
  button{
    font-family: "微軟正黑體","Microsoft JhengHei";
  }
  .contact-form-select{
    width: 100%;
    box-sizing: border-box;
    padding-bottom: 5px;
    display: block;
    letter-spacing: 2px;
    color: #888;
    border: 0;
    border-bottom: 1px solid #888;
    position: relative;
    -webkit-appearance: none; /*Chrome*/
    -moz-appearance: none; /*FF*/
    appearance: none;/*CSS3*/
    outline: none;
    cursor: pointer;
    background-color: transparent;
  }
  .contact-form-select-box{
    position: relative;
  }
  .contact-form-select-box:after{
    content: 'none';
    font-size: 0;
    width: 0px;
    height: 0px;
    margin: 0 auto;
    border-right: 4px solid transparent;
    border-top: 8px solid #555;
    border-left: 4px solid transparent;
    display: block;
    position: absolute;
    right: 10px;
    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-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;
    }
}