﻿
.contact-info-box{
    width:1000px;
    max-width: 100%;
    display: block;
    margin: 50px auto;
    position: relative;
    margin-bottom: 130px;
}
.contact-info{
    width: 520px;
    max-width: 100%;
    display: block;
    position: relative;
    border: 1px solid #000;
    box-sizing: border-box;
    padding: 20px 30px;
    height: 680px;
}
.contact-title-en{
    font-family: 'Courgette';
    font-size: 30px;
    letter-spacing: 4px;
}
.contact-title-ch{
    font-size: 14px;
    letter-spacing: 2px;
    line-height:2;
    margin-bottom: 20px;
}
.contact-info-form li{
    width: 400px;
    max-width: 100%;
    display: block;
    letter-spacing: 1px;
    position: relative;
    margin-bottom: 30px;
}
.contact-info-form li input{
    border: 0;
    border-bottom: 1px solid #dddddd;
    width: 100%;
    font-size: 16px;
    height: 30px;
    line-height: 30px;
    letter-spacing: 1px;
    outline: none;
}
.contact-info-form li label{
    position: absolute;
    top: 5px ;
    right: 0;
    font-size: 16px;
    color:#cccccc;
}
.contact-info-form li.contact-button input{
    font-size: 0;
    background-color: transparent;
    border: 1px solid #555555;
    height: 50px;
    cursor: pointer;
}
.contact-info-form li.contact-button label{
    font-size: 16px;
    color: #000;
    right: inherit;
    left: 10px;
    top: calc(50% - 12.5px);
    letter-spacing: 3px;
    transition: all .3s linear;
    pointer-events: none;
}
.contact-input-text::-webkit-input-placeholder { color: #000; font-family: "微軟正黑體", "Microsoft JhengHei";}
.contact-input-text:-moz-placeholder { color: #000; font-family: "微軟正黑體", "Microsoft JhengHei";}
.contact-input-text::-moz-placeholder { color: #000; font-family: "微軟正黑體", "Microsoft JhengHei";}
.contact-input-text:-ms-input-placeholder { color: #000; font-family: "微軟正黑體", "Microsoft JhengHei";}

.contact-textarea .contact-input-text{
    width: 100%;
    height: 150px;
    border: 0;
    outline: none;
    border-bottom: 1px solid #dddddd;
    resize: none;
    font-size: 16px;
    letter-spacing: 1px;
}

.contact-info-form li.contact-button{
    margin-top: 30px;
    margin-bottom: 50px;
}
.contact-map-box{
    width: 520px;
    height: 680px;
    display: block;
    position: absolute;
    right: 0;
    border: 1px solid #000;
    top: 40px;
    z-index: 2;
    background-color: #FFF;
}
#contact-name:focus + label i,
#contact-phone:focus + label i,
#contact-email:focus + label i,
#contact-textarea:focus + label i{
  color: #eea3a8;
}
.contact-info-form li label i{
  transition: all .3s linear;
}

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

