﻿.contact-box{
  width: 100%;
  display: block;
  background-size: 100%;
  background-position: center;
  background-position: center;
  background-image: url('../img/contact-bg.jpg');

}
.contact-box .main-title{
  height: 40px;
}
.contact-info-box{
  width: 800px;
  max-width: 100%;
  margin: 0 auto;
  display: block;
  border: 1px solid #018943;
  padding: 40px 100px;
  box-sizing: border-box;
  background-color: #FFF;

}
.contact-info-form{
  width: 100%;
  display: block;

}
.contact-info-form li{
  width: 100%;
  display: block;
  position: relative;
  margin-bottom: 30px;
}
.contact-info-list input{
  width: 100%;
  height: 46px;
  line-height: 46px;
  border: 1px solid #018943;
  box-sizing: border-box;
  padding-left: 50px;
  font-size: 16px;
  outline: none;
}
.contact-lable {
  display: block;
  position: absolute;
  top: 0 ;
  left: 0;
  pointer-events: none;
}
.contact-icon{
  width: 46px;
  line-height: 46px;
  display: block;
  display: inline-block;
  border-right: 1px solid #018943;
  font-size: 22px;
  text-align: center;
  color: #333333;
  vertical-align: top;
  transition: all .3s linear;
}
.contact-title{
  display: inline-block;
  font-size: 16px;
  height: 46px;
  line-height: 46px;
  vertical-align:top;
  color: #333333;

}
.contact-title span{
  color: #ff0000;
}
.contact-info-need{
  width: 100%;
  display: block;
  position: relative;
}
.contact-info-need select{
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    -ms-expand: none;
    width: 100%;
    display: block;
    height: 46px;
    box-sizing: border-box;
    border:  1px solid #018943;
    padding-left: 50px;
    box-sizing: border-box;
    color: #333333;
    font-size: 16px;
    font-family: "微軟正黑體";
    outline: none;
    background-color: #FFF;
}
.contact-info-need:before{
    content: 'normal';
    font-size: 0;
    height: 46px;
    width: 46px;
    border-right: 1px solid #018943;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
}
.contact-info-need:after {
    content: 'normal';
    font-size: 0;
    width: 0px;
    display: block;
    position: absolute;
    top: 21px;
    left: 15px;
    border-right: 8px solid transparent;
    border-top: 8px solid #333333;
    border-left: 8px solid transparent;
    pointer-events: none;
}
.contact-textarea textarea{
    width: 100%;
    display: block;
    height: 200px;
    border:  1px solid #018943;
    resize: none;
    outline: none;
    font-size: 16px;
    color: #333333;
    box-sizing: border-box;
    padding-top: 57px;
    padding-left: 10px;

}
.contact-textarea .contact-icon{
  width: 100%;
  display: block;
  text-align: center;
  border-right: 0;
  border-bottom: 1px solid #018943;
}
.contact-textarea .contact-lable{
  width: 100%;
}

.contact-textarea .contact-title{
  width: 100%;
  display: block;
  padding-left: 10px;
  box-sizing: border-box;
  line-height: 40px;
}
.button{
  width: 100%;
  display: block;
  
  position: relative;
}
.button input{
  width: 100%;
  height: 46px;
  line-height: 46px;
  background-color: #018943;
  font-size: 0;
  border: 0;
  cursor: pointer;
  transition: all .3s linear;
}
.button .contact-lable{
  font-size: 20px;
  color: #FFF;
  width: 100%;
  text-align: center;

}
.button .contact-title{
  color: #FFF;
  font-size: 20px;
  font-family: "微軟正黑體";
  vertical-align: middle;
  letter-spacing: 2px;
  transition: all .3s linear;
}
.map-box{
  width: 100%;
  margin-top: 40px;
  height: 300px;
}

#company:focus + label .contact-icon,
#name:focus + label .contact-icon,
#mail:focus + label .contact-icon,
#phone:focus + label .contact-icon,
#textarea:focus + label .contact-icon{
  color:  #018943;
}

#company:focus + label .contact-title,
#name:focus + label .contact-title,
#mail:focus + label .contact-title,
#phone:focus + label .contact-title,
#textarea:focus + label .contact-title{
  display: none;
}




/*表單送出*/
.contact-thanks-box{
  width: 100%;
  height: 100vh;
  display: none;
  position: fixed;
  z-index: 9;
  top: 0;
  left: 0;
}
.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{
  background-color: #ECAECA;
  position: relative;
  padding: 80px;
  border-radius: 20px;
  z-index: 6;
}
.contact-thanks-p{
  font-size: 26px;
  line-height: 1.6;
  letter-spacing: 2px;
  font-weight: bold;
  color: #FFF;
  display: block;
}
.contact-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{
  width: 15px;
  height: 1px;
  background-color: #FFF;
  display: block;
  margin: 0 auto;
  position: relative;
}
.contact-out span:nth-child(1){
  top: 9px;
    left: 0.5px;
    transform: rotate(45deg);
}
.contact-out span:nth-child(2){
    top: 8px;
    left: 0.5px;
    transform: rotate(-45deg);
}
.contact-thanks-mask{
  width: 100%;
  height: 100vh;
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1;
  background-color: rgba(0, 0, 0, 0.3);
}

