﻿.contact-box{
  width: 100%;
  display: block;;
  background-color: #1b1b1b;
  height: 100vh;
  position: relative;
  overflow: hidden;
}
.contact-bg-mask{
  width: 100%;
  height: 100%;
  display: block;
  transform: rotate(35deg);
  position: absolute;
  z-index: 1;
}

.contact-bg-mask span{
  width: 120%;
  height: 200%;
  display: block;
  position: absolute;
  background-color: #FFF;

   left: -12%;
  top: 230px;
  z-index: 1;
}

#contact .main-right-box{
  
  font-size: 0;
}
#contact header{
  z-index: 2;
}
.contact-info-box,
.contact-map-box{
  width: 50%;
  height: 100%;
  display: inline-block;
  position: relative;
  vertical-align: top;
  z-index: 9;
}

.contact-table-box{
  width: 100%;
  height: 100%;
  display: table;
}
.contact-table-middle{
  display: table-cell;
  vertical-align: middle;
}
.contact-info-form{
  width: 460px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.contact-title{
  display: block;
  font-size: 18px;
  color: #835225;
  letter-spacing: 2px;
  position: relative;
  height: 50px;
  padding-left: 20px;
  box-sizing: border-box;
  line-height: 50px;
  margin-bottom: 20px;
}
.contact-title span{
  color: #555555;
  padding: 0 10px;
}
.contact-title b{
  color: #555555;
}
.contact-title:after{
  width: 3px;
  height: 50px;
  display: block;
  position: absolute;
  content: 'none';
  font-size: 0;
  background-color: #53b147;
  top: 0;
  left: 0;
}
.contact-info-form li{ 
    width: 100%;
    display: block;
    margin-bottom: 20px;
}
.contact-info-form li input,
.contact-info-form li textarea{
    width: 100%;
    height: 40px;
    padding-left: 10px;
    line-height: 40px;
    box-sizing: border-box;
    border: 1px solid #8a8a8a;
}



.contact-info-form li ::-webkit-input-placeholder { color: #464647;font-family: "微軟正黑體"; }
.contact-info-form li :-moz-placeholder { color: #464647;font-family: "微軟正黑體"; }
.contact-info-form li ::-moz-placeholder { color: #464647;font-family: "微軟正黑體"; }

.contact-info-form li textarea{
  height: 150px;
}

.contact-info-form li.button input{
  border: 0;
  background-color: #835225;
  font-size: 0;
  cursor: pointer;
  transition: all .3s linear;
}
.contact-info-form li.button:hover input{
  background-color: #53b147;
}
.contact-info-form li.button{
  position: relative;

}
.contact-info-form li.button span{
  width: 100%;
  height: 40px;
  line-height: 40px;
  display: block;
  position: absolute;
  text-align: center;
  font-size: 18px;
  color: #FFF;
  top: 0;
  left: 0;
  pointer-events: none;
  letter-spacing: 1px;
}
.contact-bg-img{
  width: 666px;
  height: 394px;
  display: block;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('../img/contact-bg.jpg');
  position: absolute;
  top: 0;
  right: calc(50% - 250px);
}

.contact-map-box span{
  width: 100%;
  height: 100%;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-image: url('../img/map.jpg');
}

.contact-map-box iframe{
  position: relative;
  z-index: 1;
}

/*表單送出*/
.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: #835225;
  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);
}

