.contact_main {
  position: relative;
  z-index: 2;
  margin: -10rem 0 -26rem;
  padding-bottom: 31.2rem;
  overflow: hidden;
}
.contact_main .inner {
  max-width: 256rem;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.contact_main .bg1 {
  width: 26.5625%;
  position: absolute;
  left: 2.5%;
  top: 7%;
  z-index: -1;
}
.contact_main .bg2 {
  width: 31.5625%;
  position: absolute;
  right: -13%;
  bottom: -26rem;
  z-index: -1;
}
.contact_main .con {
  position: relative;
  z-index: 2;
  overflow: hidden;
  padding: 9rem 17.916667% 12.2rem;
  border-radius: 3.6rem;
  border: 2px solid #fff;
  box-shadow: 0 1rem 1rem rgba(218, 225, 229, 0.45);
}
.contact_main .con::before {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: -1;
  height: 10rem;
  background-image: linear-gradient(to top, #fff 0%, #fff 30%, rgba(255, 255, 255, 0.7) 100%);
}
.contact_main .con::after {
  content: '';
  position: absolute;
  left: 0;
  top: 10rem;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.8);
}
.contact_main .head {
  width: 100%;
  margin-bottom: 4.7rem;
}
.contact_main .head p {
  color: var(--text);
  line-height: 3.2rem;
  margin-top: 1.7rem;
}
.contact_main form {
  gap: 2rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.contact_main form span {
  width: 100%;
}
.contact_main form .col2 {
  width: 48.913043%;
}
.contact_main form .label {
  cursor: pointer;
  max-width: max-content;
  color: #86868B;
  font-size: 1.7rem;
  margin-bottom: 1rem;
}
.contact_main form .label i {
  color: var(--primary);
}
.contact_main form input,
.contact_main form select,
.contact_main form textarea {
  width: 100%;
  height: 5rem;
  display: block;
  font-size: 1.7rem;
  padding: 0 2.2rem;
  border-radius: 0.6rem;
  transition: all 0.3s;
  border: 1px solid #C5D5DD;
}
.contact_main form input:focus,
.contact_main form select:focus,
.contact_main form textarea:focus {
  border-color: var(--primary);
}
.contact_main form select {
  padding-right: 5.6rem;
  background: url(../img/icon-select.svg) no-repeat right 2.2rem center / 1.2rem;
}
.contact_main form textarea {
  height: 23.5rem;
  padding: 1.8rem 2.2rem;
}
.contact_main form input[type="checkbox"] {
  padding: 0;
  width: 2.6rem;
  height: 2.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: top;
}
.contact_main form input[type="checkbox"]:checked {
  border-color: var(--primary);
}
.contact_main form input[type="checkbox"]:checked::after {
  opacity: 1;
}
.contact_main form input[type="checkbox"]::after {
  content: '';
  display: block;
  width: 80%;
  height: 80%;
  opacity: 0;
  transition: all 0.3s;
  background: url(../img/icon-gou.svg) no-repeat center / contain;
}
.contact_main form input[type="checkbox"] ~ span {
  padding-left: 1.2rem;
  width: calc(100% - 3rem);
  cursor: pointer;
  line-height: 2.8rem;
  display: inline-block;
  vertical-align: top;
}
.contact_main form input[type="checkbox"] ~ span a {
  color: var(--primary);
  text-decoration: underline;
  transition: all 0.3s;
}
.contact_main form input[type="checkbox"] ~ span a:hover {
  text-decoration-color: transparent;
}
.contact_main form span:has(.btn) {
  margin-top: 4.4rem;
  position: relative;
}
.contact_main form .btn {
  display: flex;
  margin: 0 auto;
  max-width: max-content;
  padding: 0 9.8rem;
}
.contact_main form .btn input {
  display: none;
}
@media screen and (max-width: 768px) {
  .contact_main {
    margin: -30px 0 0;
    padding-bottom: 30px;
  }
  .contact_main .con {
    padding: 50px;
    border-radius: 15px;
  }
  .contact_main .head {
    margin-bottom: 10px;
  }
  .contact_main .head p {
    line-height: 1.5;
    margin-top: 12px;
  }
  .contact_main form .label {
    font-size: 14px;
    margin-bottom: 8px;
  }
  .contact_main form input,
  .contact_main form select,
  .contact_main form textarea {
    height: 46px;
    font-size: 15px;
    padding: 0 20px;
  }
  .contact_main form select {
    padding-right: 56px;
  }
  .contact_main form textarea {
    height: 150px;
    padding: 15px 20px;
  }
  .contact_main form input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
  .contact_main form input[type="checkbox"] ~ span {
    line-height: 20px;
  }
  .contact_main form span:has(.btn) {
    margin-top: 15px;
  }
}
@media screen and (max-width: 576px) {
  .contact_main .con {
    padding: 50px 20px;
  }
  .contact_main form .col2 {
    width: 100%;
  }
}
