.contact_form {
  padding: 14rem 0px;
  background-color: #fff;
}
.contact_form .content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 5.9rem;
}
.contact_form .form_box {
  flex: 1;
  min-width: 0px;
  max-width: 65.67rem;
}
.contact_form .tcon p {
  margin-top: 2.56rem;
  color: rgba(71, 71, 71, 0.74);
}
.contact_form .form {
  margin-top: 4.9rem;
}
.contact_form .fields {
  display: grid;
  grid-template-columns: minmax(0px, 1fr) minmax(0px, 1fr);
  gap: 2.45rem 2.51rem;
}
.contact_form .field {
  display: block;
  position: relative;
}
.contact_form .field.full {
  grid-column: 1 / -1;
}
.contact_form .field span {
  display: block;
  margin-bottom: 1.5rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.9rem;
}
.contact_form .field span em {
  color: #5657b8;
}
.contact_form .form_field {
  border-color: #ddd;
}
.contact_form .form_field:focus {
  border-color: var(--primary);
}
.contact_form .form_field.invalid {
  border-color: #e04848;
}
.contact_form textarea.form_field {
  height: 15.46rem;
}
.contact_form .error {
  display: none;
  position: absolute;
  left: 0px;
  top: 100%;
  margin-top: 0.4rem;
  color: #e04848;
  font-size: max(12px, 1.3rem);
  line-height: 1.45;
}
.contact_form .field.has_error .error {
  display: block;
}
.contact_form .form label.submit {
  margin-top: 3.07rem;
}
.contact_form .form label.submit .btn {
  margin-top: 0;
}
.contact_form .form .btn {
  padding: 0px 4.6rem;
}
.contact_form .note {
  margin-top: 3.55rem;
  color: #5a6778;
  font-size: 1.4rem;
  line-height: 1.8rem;
}
.contact_form .note a {
  color: #5657b8;
  transition: color 0.3s;
}
.contact_form .note a:hover {
  color: var(--primary_dark);
  text-decoration: underline;
}
.contact_form .form.sent .fields,
.contact_form .form.sent > .btn,
.contact_form .form.sent > .note {
  display: none;
}
.contact_form .sent_msg {
  display: none;
  position: relative;
  padding: 2.8rem 3rem 2.8rem 9rem;
  border-radius: 1.2rem;
  border: 1px solid #dfe0f5;
  background-color: #f1f1fb;
}
.contact_form .form.sent .sent_msg {
  display: block;
}
.contact_form .sent_msg::before {
  content: '';
  position: absolute;
  left: 3rem;
  top: 2.8rem;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 8' fill='none' stroke='%23fff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 4.2 3.8 7 9 1'/%3E%3C/svg%3E") no-repeat center / 1.6rem;
}
.contact_form .sent_msg strong {
  display: block;
  color: var(--title);
  font-weight: 600;
  font-size: 2rem;
  line-height: 2.8rem;
}
.contact_form .sent_msg p {
  margin-top: 0.6rem;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 2.5rem;
}
.contact_form .map_card {
  flex-shrink: 0;
  width: 66.4rem;
  margin-top: 0.15rem;
  overflow: hidden;
  border-radius: 1.2rem;
  scroll-margin-top: 12rem;
  background-color: #f1f1fb;
}
.contact_form .map {
  position: relative;
  height: 64.66rem;
  background-color: #e9eef2;
}
.contact_form .map img,
.contact_form .map iframe {
  display: block;
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  border: 0px;
}
.contact_form .map img {
  height: 63.46rem;
  object-fit: cover;
  object-position: center top;
}
.contact_form .info {
  display: flex;
  align-items: center;
  gap: 2.42rem;
  position: relative;
  z-index: 1;
  height: 14.4rem;
  margin-top: -1.2rem;
  padding: 0px 3.76rem;
  border-radius: 1.2rem;
  background-color: #f1f1fb;
}
.contact_form .info i {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 7.4rem;
  height: 7.4rem;
  border-radius: 50%;
  background-color: var(--primary);
}
.contact_form .info i img {
  display: block;
  width: 2.9rem;
  height: 3.5rem;
}
.contact_form .info h3 {
  color: var(--title);
  font-weight: 600;
  font-size: 2rem;
  line-height: 2.4rem;
}
.contact_form .info p {
  max-width: 38rem;
  margin-top: 0.7rem;
  color: var(--text);
  font-size: 1.6rem;
  line-height: 2.2rem;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .contact_form {
    padding: 10rem 0px;
  }
  .contact_form .content {
    flex-direction: column;
    align-items: stretch;
    gap: 6rem;
  }
  .contact_form .form_box {
    max-width: none;
  }
  .contact_form .field span {
    font-size: 1.8rem;
    line-height: 2.2rem;
  }
  .contact_form .note {
    font-size: 1.6rem;
    line-height: 1.5;
  }
  .contact_form .note br {
    display: none;
  }
  .contact_form .map_card {
    width: 100%;
    margin-top: 0px;
  }
  .contact_form .map {
    height: 51.2rem;
  }
  .contact_form .map img {
    height: 50rem;
  }
  .contact_form .info h3 {
    font-size: 2.2rem;
    line-height: 1.3;
  }
  .contact_form .info p {
    max-width: none;
    font-size: 1.8rem;
    line-height: 1.5;
  }
}
@media screen and (max-width: 768px) {
  .contact_form {
    padding: 60px 0px;
  }
  .contact_form .tcon p {
    margin-top: 12px;
  }
  .contact_form .content {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
  }
  .contact_form .form_box {
    max-width: none;
  }
  .contact_form .form {
    margin-top: 28px;
  }
  .contact_form .fields {
    grid-template-columns: minmax(0px, 1fr);
    gap: 18px;
  }
  .contact_form .field.full {
    grid-column: auto;
  }
  .contact_form .field span {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 18px;
  }
  .contact_form textarea.form_field {
    height: 130px;
  }
  .contact_form .error {
    position: static;
    font-size: 12px;
    line-height: 16px;
  }
  .contact_form .form label.submit {
    display: grid;
    width: 100%;
    margin-top: 22px;
  }
  .contact_form .form label.submit .btn {
    width: 100%;
    margin-top: 0;
  }
  .contact_form .form .btn {
    width: 100%;
  }
  .contact_form .note {
    margin-top: 16px;
    font-size: 13px;
    line-height: 19px;
  }
  .contact_form .note br {
    display: none;
  }
  .contact_form .sent_msg {
    padding: 20px 18px 20px 66px;
    border-radius: 10px;
  }
  .contact_form .sent_msg::before {
    left: 18px;
    top: 20px;
    width: 34px;
    height: 34px;
    background-size: 13px;
  }
  .contact_form .sent_msg strong {
    font-size: 16px;
    line-height: 22px;
  }
  .contact_form .sent_msg p {
    font-size: 14px;
    line-height: 21px;
  }
  .contact_form .map_card {
    width: 100%;
    margin-top: 0px;
    border-radius: 12px;
    scroll-margin-top: 80px;
  }
  .contact_form .map {
    height: 332px;
  }
  .contact_form .map img {
    height: 320px;
  }
  .contact_form .info {
    gap: 16px;
    height: auto;
    margin-top: -12px;
    padding: 20px;
    border-radius: 12px;
  }
  .contact_form .info i {
    width: 52px;
    height: 52px;
  }
  .contact_form .info i img {
    width: 21px;
    height: 25px;
  }
  .contact_form .info h3 {
    font-size: 17px;
    line-height: 22px;
  }
  .contact_form .info p {
    max-width: none;
    margin-top: 4px;
    font-size: 14px;
    line-height: 20px;
  }
}
