﻿/*--------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: #c71313;
}

button{
  font-family: "微軟正黑體","Microsoft JhengHei";
}
.contact-form-select{
  width: 100%;
  height: 40px;
  box-sizing: border-box;
  border: 1px solid #555;
  display: block;
  margin-top: 10px;
  letter-spacing: 2px;
  padding-left: 10px;
  color: #555;
  position: relative;
  -webkit-appearance: none; /*Chrome*/
  -moz-appearance: none; /*FF*/
  appearance: none;/*CSS3*/
}
.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: 10px solid transparent;
  border-top: 12px solid #555;
  border-left: 10px solid transparent;
  display: block;
  position: absolute;
  right: 10px;
  top: 15px;
  pointer-events: none;
}
.contact-form-select-box:before{
  content: 'none';
  font-size: 0;
  width: 40px;
  height: 100%;
  display: block;
  border-left: 1px solid #555;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
}

.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,
.alert-box{
  width: 100%;
  height: 100vh;
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
}
.confirm-block{
  width: 100%;
  height: 100vh;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  -webkit-align-items: center;
          align-items: center;
    -webkit-justify-content: center;
          justify-content: center;
    display: -webkit-flex;
    display:         flex;
}
.contact-thanks-box.active,
.alert-box.active{
  -webkit-align-items: center;
          align-items: center;
    -webkit-justify-content: center;
          justify-content: center;
    display: -webkit-flex;
    display:         flex;
}
.contact-thanks,
.confirm-info{
  background-color: #d0011b;
  position: relative;
  padding: 80px;
  border-radius: 5px;
  z-index: 6;
}
.confirm-info{
  padding: 30px;
}
.confirm-info-box{
  position: relative;
  background-color: #d0011b;
}
.contact-thanks-p{
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: bold;
  color: #FFF;
  display: block;
}
.confirm-info-title{
  color: #FFF;
  font-size: 26px;
}
.confirm-info-p{
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: bold;
  color: #FFF;
}
.contact-out,
.alert-out{
  width: 20px;
  height: 20px;
  max-width: 100%;
  display: block;
  position: absolute;
  border-radius: 50%;
  border: 1px solid #FFF;
  top: 4%;
  right: 4%;
  cursor: pointer;
}
.contact-out span,
.alert-out span{
  width: 15px;
  height: 1px;
  background-color: #FFF;
  display: block;
  margin: 0 auto;
  position: relative;
}
.alert-out{
  z-index: 6;
}
.contact-out span:nth-child(1),
.alert-out span:nth-child(1){
  top: 9px;
    left: 0.5px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2),
.alert-out span:nth-child(2){
    top: 8px;
    left: 0.5px;
    transform: rotate(-45deg);
}
.contact-thanks-mask,
.alert-mask{
  width: 100%;
  height: 100vh;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
}
.confirm-status{
  text-align: center;
  padding-bottom: 20px;
}
.confirm-status-no{
    box-sizing: border-box;
    outline: none;
    background-color: #ffffff;
    border-radius: 10px;
    margin: 0 auto;
    margin-bottom: 10px;
    font-size: 14px;
    color: #fff;
    text-align: center;
    letter-spacing: 1px;
    background: none;
    cursor: pointer;
    transition: all .2s linear;
    border: 1px solid #fff;
    padding: 5px 15px;
}
.confirm-status-no:hover{
  background-color: #7b0010;
}
.confirm-box{
  background-color: #ff4a34;
  border-radius: 5px;
  box-shadow: rgba(0,0,0,1) 0px 0px 3px;
}
.contact-info-form{
    width: 100%;
    background-color: #f5f5f5;
    position: relative;
    padding-top: 60px;
    padding-bottom: 100px;
}
.contact-info-box{
    width: 1000px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    margin-top: 100px;
    font-size: 0;
    position: relative;
}
.contact-info-text{
    text-align: center;
    font-size: 16px;
    color: #555;
    margin-top: 40px;
    margin-bottom: 60px;
}
.contact-form-list{
    text-align: center;
    width: 100%;
    display: block;
    padding-bottom: 35px;
    position: relative;
}
.contact-form-text{
    width: 600px;
    max-width: 100%;
    height: 46px;
    border: none;
    font-size: 14px;
    color: #555;
    padding: 0 15px;
    box-sizing: border-box;
    font-weight: lighter;
    letter-spacing: 2px;
}
.contact-form-list-textarea{
    width: 600px;
    max-width: 100%;
    height: 200px;
    resize: none;
    border: none;
    font-size: 14px;
    color: #555;
    padding: 10px 15px;
    box-sizing: border-box;
    font-weight: lighter;
    letter-spacing: 2px;
    outline: none;
}
.button{
    width: 100%;
    text-align: center;
    margin-top: 5px;
}
.button button{
    width: 160px;
    height: 46px;
    border: none;
    background-color: #d0011b;
    border-radius: 5px;
    cursor: pointer;
    transition: all .2s linear;
}
.button-text{
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    transform: skewX(-10deg);
}
.contact-map{
    width: 100%;
    height: 300px;
    box-shadow: 0 0 2px 2px #aaa;
    margin-top: 5px;
}
.contact-form-text:hover{
    border: 1px solid #d0011b;
    padding: 0 14px;
}
.contact-form-list-textarea:hover{
    border: 1px solid #d0011b;
    padding: 9px 14px;
 }
 .button button:hover{
    background-color: #6f000e;
 }
@media only screen and (max-width: 1000px){
    .contact-info-box{
        margin-top: 30px;
    }
}
@media only screen and (max-width: 800px){
    .contact-info-box{
        width: 600px;
    }
}
@media only screen and (max-width: 640px){
    .contact-info-box{
        padding: 0 20px;
        box-sizing: border-box;
    }
    .contact-form-text{
        width: 100%;
    }
    .contact-info-text{
        font-size: 12px;
        margin-top: 20px;
        margin-bottom: 40px;
        text-align: left;
    }
    .contact-form-list{
        padding-bottom: 20px;
    }
    .confirm-box{
      width: 95%;
    }
}

/*<---------------------動畫------------------------>*/
@keyframes leftenter{
  0% {
    opacity: 0;
    transform:  translateX(-80px);
  }
  100% {
    opacity: 1;
  }
}
@keyframes upfedenter{
  0% {
    transform:  translateY(40px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes rightfedenter{
  0% {
    transform:  translateX(140px);
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes topenter{
  0% {
    transform:  translateY(-80px);
  }
  100% {
    opacity: 1;
  }
}
@media only screen and (min-width: 1001px){
    .contact-info-text{
        opacity: 0;
        animation: rightfedenter 1s linear  both;
    }
    .contact-form-list{
        opacity: 0;
        animation: leftenter 1s linear  both;
    }
    .contact-form-list:nth-child(2){
        opacity: 0;
        animation: leftenter 1s linear .2s both;
    }
    .contact-form-list:nth-child(3){
        opacity: 0;
        animation: leftenter 1s linear .4s both;
    }
    .contact-form-list:nth-child(4){
        opacity: 0;
        animation: leftenter 1s linear .6s both;
    }
    .button{
        opacity: 0;
        animation: upfedenter 1s linear .8s both;
    }
    .contact-map{
        opacity: 0;
    }
    .contact-map.active{
        animation: topenter 1s linear  both;
    }
}