.top-img {
  -moz-transform: scale(1.08);
  -ms-transform: scale(1.08);
  -webkit-transform: scale(1.08);
  transform: scale(1.08);
  -moz-transition: -moz-transform 8s;
  -o-transition: -o-transform 8s;
  -webkit-transition: -webkit-transform 8s;
  transition: transform 8s;
}
.top-img.show-img {
  -moz-transform: scale(1);
  -ms-transform: scale(1);
  -webkit-transform: scale(1);
  transform: scale(1);
}
.top-title {
  opacity: 0;
  -moz-transition: opacity 0.6s;
  -o-transition: opacity 0.6s;
  -webkit-transition: opacity 0.6s;
  transition: opacity 0.6s;
}
.top-title.show-text {
  opacity: 1;
}

.contact-inner {
  padding: 0 50px;
  max-width: 1100px;
  margin: 0 auto;
}
.contact-wrap {
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  padding-bottom: 50px;
}
.contact-title {
  width: 20%;
}
.contact-title .en {
  font-family: "Forum", Arial, Helvetica;
  color: #111;
}
.contact-title .tw {
  font-size: 0.75rem;
  margin-top: 5px;
}
.contact-content {
  width: 65%;
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
}
.contact-content-inner {
  width: 48%;
}
.contact-item {
  padding: 0 0 10px 25px;
  font-size: 0.875rem;
  position: relative;
}
.contact-item i {
  color: #cac7a7;
  position: absolute;
  left: 0;
  top: 4px;
}
.contact-item a {
  -moz-transition: color 0.3s;
  -o-transition: color 0.3s;
  -webkit-transition: color 0.3s;
  transition: color 0.3s;
}
.contact-item a:hover {
  color: #015472;
}
.contact-map {
  width: 100%;
  height: 40vw;
  max-height: 500px;
  background: #eee;
}

.bg-inner {
  padding: 80px 0;
}
.bg-wrap {
  position: relative;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 50px;
}
.bg-img {
  background-image: url(../images/contact/bg.jpg);
  background-size: cover;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 380px;
}
.bg-color1 {
  width: 200px;
  height: 80%;
  background: #28687f;
  position: absolute;
  top: -80px;
  left: 0;
  z-index: -1;
}
.bg-color2 {
  width: 200px;
  height: 80%;
  background: #e7e5d7;
  position: absolute;
  bottom: -80px;
  right: 0;
  z-index: -1;
}

.consult-inner {
  padding: 0 50px;
  max-width: 1000px;
  margin: 0 auto;
}
.consult-title {
  text-align: right;
}
.consult-title .en {
  font-family: "Forum", Arial, Helvetica;
  color: #111;
}
.consult-title .tw {
  font-size: 0.75rem;
  margin-top: 5px;
}
.consult-content {
  padding-top: 50px;
}
.consult-subtitle {
  color: #015472;
  font-size: 0.875rem;
}
.consult-list {
  padding: 0 50px 35px;
  position: relative;
}
.consult-list:before {
  content: "";
  width: 8px;
  height: 8px;
  background: #cac7a7;
  position: absolute;
  top: 8px;
  left: 3px;
}
.consult-list:after {
  content: "";
  width: 1px;
  height: calc(100% - 9px);
  background: #cac7a7;
  position: absolute;
  top: 10px;
  left: 6px;
}
.consult-item {
  font-size: 0.875rem;
  margin-top: 15px;
}
.consult-label .en {
  font-size: 0.75rem;
}
.consult input, .consult select, .consult textarea {
  background: transparent;
  width: 100%;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  color: #444;
  background: #f9f9f9;
  padding: 5px 0px;
  margin-top: 5px;
  font-size: 0.875rem;
}
.consult input::placeholder, .consult select::placeholder, .consult textarea::placeholder {
  color: #666;
}
.consult input::-webkit-input-placeholder, .consult select::-webkit-input-placeholder, .consult textarea::-webkit-input-placeholder {
  color: #666;
}
.consult input:-moz-placeholder, .consult select:-moz-placeholder, .consult textarea:-moz-placeholder {
  color: #666;
}
.consult input:-ms-input-placeholder, .consult select:-ms-input-placeholder, .consult textarea:-ms-input-placeholder {
  color: #666;
}
.consult input.error, .consult select.error, .consult textarea.error {
  color: #f95151;
}
.consult input.error::placeholder, .consult select.error::placeholder, .consult textarea.error::placeholder {
  color: #f95151;
}
.consult input.error::-webkit-input-placeholder, .consult select.error::-webkit-input-placeholder, .consult textarea.error::-webkit-input-placeholder {
  color: #f95151;
}
.consult input.error:-moz-placeholder, .consult select.error:-moz-placeholder, .consult textarea.error:-moz-placeholder {
  color: #f95151;
}
.consult input.error:-ms-input-placeholder, .consult select.error:-ms-input-placeholder, .consult textarea.error:-ms-input-placeholder {
  color: #f95151;
}
.consult input {
  padding: 5px;
  width: calc(100% - 10px);
}
.consult textarea {
  height: 200px;
  padding: 5px;
  width: calc(100% - 10px);
}
.consult label {
  color: #999;
}
.consult-line {
  width: calc(100% - 12px);
  height: 1px;
  background: #cac7a7;
  margin: 0 auto;
  position: relative;
}
.consult-line .square {
  width: 8px;
  height: 8px;
  background: #cac7a7;
  position: absolute;
  top: -40px;
  right: -3px;
}
.consult-line .square:after {
  content: "";
  width: 1px;
  height: 40px;
  background: #cac7a7;
  position: absolute;
  top: 1px;
  right: 3px;
}
.consult-code {
  display: -ms-flexbox;
  display: flex;
  padding-top: 5px;
}
.consult-code input {
  width: -webkit-fill-available;
}
.consult-change {
  display: -ms-flexbox;
  display: flex;
  -webkit-align-items: flex-end;
  align-items: flex-end;
}
.consult-change img {
  height: 25px;
  margin: 0 10px;
}
.consult-change span {
  border: 1px solid #e7e5d7;
  text-align: center;
  font-size: 0.75rem;
}
.consult-change a {
  display: block;
  padding: 3px 5px;
  -moz-transition: background 0.3s, color 0.3s;
  -o-transition: background 0.3s, color 0.3s;
  -webkit-transition: background 0.3s, color 0.3s;
  transition: background 0.3s, color 0.3s;
}
.consult-change a:hover {
  background: #e7e5d7;
  color: #015472;
}
.consult-button {
  display: -ms-flexbox;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  padding-top: 70px;
}
.consult-btn {
  font-size: 0.75rem;
}
.consult-btn:last-child {
  margin-left: 80px;
}
.consult-btn a {
  display: block;
  width: 55px;
  text-align: center;
  padding: 3px 0px;
  border: 1px solid #e7e5d7;
  -moz-transition: color 0.3s, background 0.3s;
  -o-transition: color 0.3s, background 0.3s;
  -webkit-transition: color 0.3s, background 0.3s;
  transition: color 0.3s, background 0.3s;
}
.consult-btn a:hover {
  color: #015472;
  background: #e7e5d7;
}

@media screen and (max-width: 1100px) {
  .bg-color1 {
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
    -moz-transition: clip-path 0.6s;
    -o-transition: clip-path 0.6s;
    -webkit-transition: clip-path 0.6s;
    transition: clip-path 0.6s;
  }
  .bg-color1.show {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
  .bg-color2 {
    clip-path: polygon(0% 100%, 100% 100%, 100% 100%, 0% 100%);
    -moz-transition: clip-path 0.6s;
    -o-transition: clip-path 0.6s;
    -webkit-transition: clip-path 0.6s;
    transition: clip-path 0.6s;
  }
  .bg-color2.show {
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  }
}
@media screen and (max-width: 900px) {
  .contact-title {
    margin-left: 10%;
  }
  .contact-content {
    display: block;
    width: 55%;
  }
  .contact-content-inner {
    width: 100%;
  }
  .contact-map {
    height: 50vw;
  }

  .bg-inner {
    padding: 40px 0;
  }
  .bg-color1 {
    width: 70%;
    height: 25%;
    top: -40px;
    clip-path: polygon(0% 0%, 0% 0%, 0% 100%, 0% 100%);
  }
  .bg-color2 {
    width: 70%;
    height: 25%;
    bottom: -40px;
    clip-path: polygon(100% 0%, 100% 0%, 100% 100%, 100% 100%);
  }
}
@media screen and (max-width: 800px) {
  .contact-title {
    margin-left: unset;
  }
  .contact-content {
    width: 65%;
  }
}
@media screen and (max-width: 640px) {
  .contact-inner {
    padding: 0 30px;
  }
  .contact-wrap {
    display: block;
    padding-bottom: 35px;
  }
  .contact-title {
    margin-bottom: 30px;
    width: 100%;
  }
  .contact-content {
    width: 100%;
  }
  .contact-map {
    height: 350px;
  }

  .bg-inner {
    padding: 0 0 40px 0;
  }
  .bg-wrap {
    padding: 0 30px;
  }
  .bg-img {
    height: 320px;
    opacity: 0;
    -moz-transform: translateY(-30px);
    -ms-transform: translateY(-30px);
    -webkit-transform: translateY(-30px);
    transform: translateY(-30px);
    -moz-transition: opacity 0.6s, -moz-transform 0.6s;
    -o-transition: opacity 0.6s, -o-transform 0.6s;
    -webkit-transition: opacity 0.6s, -webkit-transform 0.6s;
    transition: opacity 0.6s, transform 0.6s;
  }
  .bg-img.show {
    opacity: 1;
    -moz-transform: translateY(0);
    -ms-transform: translateY(0);
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
  .bg-color1 {
    width: 100%;
    height: 50%;
    top: unset;
    bottom: -40px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 0%, 0% 0%);
  }
  .bg-color2 {
    display: none;
  }

  .consult-inner {
    padding: 0 30px;
  }
  .consult-content {
    padding-top: 35px;
  }
  .consult-list {
    padding: 0 30px 20px;
  }
  .consult-btn:last-child {
    margin-left: 50px;
  }
}
@media screen and (max-width: 460px) {
  .consult-code {
    display: block;
  }
  .consult-change {
    margin-top: 10px;
  }
  .consult-change img {
    margin: 0 10px 0 0;
  }
}
