﻿.contact-title {
  text-align: center;
  font-size: 2.8125rem;
  font-weight: 500;
  border-bottom: .25rem solid #28a138;
  padding-bottom: .375rem;
  width: 100%;
  display: inline !important;
}
.contact-img {
  width: 100%;
  padding-top: 5.25rem;
  position: relative;
}

.contact-img > img {
  width: 100%;
  height: auto;
}

.contact-form {
  padding: 2rem 0 7.5rem;
  text-align: center;
}

input {
  width: 100%;
  height: 3.9375rem;
  border-radius: .5rem;
  background-color: #f7f5f2;
  border: none;
  padding: .625rem 1.875rem;
  margin: 0 0 1.875rem;
}

.code-input-wrap {
  position: relative;
  padding-right: 7.5rem;
  border-radius: .5rem;
  background-color: #f7f5f2;
}

.code-input-wrap > input {
  margin-bottom: 0;
}

.code-input-wrap > .codeimg {
  width: 5.5rem;
  height: 2.0625rem;
  position: absolute;
  right: .625rem;
  top: 50%;
  transform: translateY(-50%);
}

.form-bottom textarea {
  width: 100%;
  height: 6.9375rem;
  border-radius: .5rem;
  background-color: #f7f5f2;
  border: #28a138;
  padding: .625rem 1.875rem;
  resize: none;
}

.form-btn {
  margin-top: 3.125rem;
}

.mt96 {
  margin-top: 6rem;
}

.form-btn button {
  font-size: 1rem;
  letter-spacing: .0625rem;
  line-height: 1.75rem;
  color: #ffffff;
  font-weight: 400;
  border: none;
  background: #28a138;
  display: inline-block;
  border-radius: .3125rem;
  padding: .5rem 1.875rem;
  transition: .5s;
  text-transform: uppercase;
}

.form-btn button:active {
  border: none;
}

.map-wrap {
  margin-top: 3.5rem;
  width: 100%;
  position: relative;
  box-shadow: 0 .125rem .3125rem .125rem rgba(0, 0, 0, 0.1);
  background-color: #f2f2f2;
  padding-left: 50%;
  margin-bottom: 10.25rem;
}

.map-wrap > .map-img {
  width: 100%;
  display: block;
}

.map-wrap > .map-img img {
  width: 100%;
  display: block;
}

.company-address-con {
  width: 50%;
  padding: 0 1.75rem;
  text-align: left;
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.company-address-con .name,
.sub-company-item .name {
  width: 100%;
  color: #333;
  font-size: 1.5rem;
  font-weight: 500;
  padding-bottom: .75rem;
  border-bottom: .0625rem solid #999;
  margin-bottom: 2rem;
}

.company-address-con .addr,
.sub-company-item .addr {
  font-size: 1rem;
  color: #666;
  padding-bottom: .75rem;
  text-decoration: none;
  display: flex;
  align-items: flex-start;
}

.company-address-con .addr:hover,
.company-address-con .addr:active {
  color: #666;
}

.sub-company-wrap {
  padding: 1.5rem 0;
  margin: 0 !important;
}

.sub-company-item {
  display: block;
  text-decoration: none;
  padding: 1.25rem !important;
}

.sub-company-item-top {
  padding: 1.875rem 1.875rem 1.25rem;
  background-color: #f2f2f2;
  box-shadow: 0 .125rem .3125rem .125rem rgba(0, 0, 0, 0.1);
}

.sub-company-item:hover .name {
  color: #333;
}

.sub-company-item:hover .addr {
  color: #666;
}

.sub-company-item .name {
  font-size: 1.25rem;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sub-company-item .addr {
  text-align: left;
}

.contact-icon {
  width: 1.25rem;
  margin-right: .25rem;
}
.mt4 .contact-icon {
  margin-top: .25rem;
}

.sub-company-item-img {
  display: block;
  width: 100%;
}

@media only screen and (max-width: 870px) {
  .contact-form {
    padding-top: 2rem;
  }
  .contact-title {
    font-size: 1.5rem;
    padding-bottom: .25rem;
    text-align: left;
    width: 100%;
    display: inline-block !important;
  }
  .map-wrap {
    padding-left: 0;
    height: auto;
    margin-top: 1.5rem;
    margin-bottom: 1.25rem !important;
  }
  .map-wrap > .map-img {
    position: relative;
    width: 100%;
    height: 100%;
    background-size: cover;
  }
  .company-address-con {
    position: relative;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 1.25rem;
  }
  .form-bottom {
    margin-top: 2rem;
  }
  .sub-company-item {
    margin-bottom: 1.25rem;
    padding:  0 !important;
    box-shadow: 0 .125rem .3125rem .125rem rgba(0, 0, 0, 0.1);
  }
  .sub-company-item-top {
    box-shadow: none;
  }
  .contact-img {
    display: flex;
    justify-content: center;
    overflow: hidden;
  }
  .contact-img > img {
    width: auto;
    height: 12.375rem;
  }
}