@import url("./style.css");

.contact-page {
  background: #f4f4f6;
}

.contact-hero {
  --banner-image: url("../image/concact_banner.jpg");
  --banner-overlay: linear-gradient(90deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0) 48%, rgba(0, 0, 0, 0.1));
}

.contact-page [id] {
  scroll-margin-top: 104px;
}

.contact-page .page-main {
  padding-top: 78px;
}

.contact-board {
  position: relative;
  z-index: 1;
  padding: 132px 0 82px;
}

.contact-shell {
  background: #ffffff;
  padding: 22px 22px 0;
  box-shadow: 0 18px 48px rgba(17, 17, 17, 0.05);
  border: 1px solid #ececf1;
}

.contact-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  align-items: stretch;
  border-bottom: 1px solid #f0f1f4;
}

.contact-info-card {
  min-height: 132px;
  padding: 24px 18px 42px;
  background: #ffffff;
  display: grid;
  place-items: center;
  text-align: center;
  border-right: 1px solid #f0f1f4;
}

.contact-info-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon img,
.contact-info-icon svg {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.contact-info-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.contact-info-card p {
  font-size: 16px;
  color: #1f2430;
}

.contact-wechat-card {
  place-items: start start;
  text-align: left;
  padding-top: 22px;
  border-right: 0;
}

.wechat-pair {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.wechat-image {
  width: 84px;
  height: 84px;
  object-fit: cover;
  display: block;
}

.contact-map {
  position: relative;
  margin-top: 0;
  height: 395px;
  overflow: hidden;
}

.contact-map-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-bottom {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 0;
  border-top: 1px solid #eeeeef;
}

.contact-column,
.form-column {
  padding: 28px 24px 28px;
}

.form-column {
  border-left: 1px solid #eeeeef;
}

.contact-column h2,
.form-column h2 {
  font-size: 20px;
  margin-bottom: 18px;
  color: #1d212b;
}

.section-lead,
.form-intro {
  color: #9aa3b2;
  line-height: 1.8;
  font-size: 13px;
  margin-bottom: 18px;
}

.route-list {
  display: grid;
  gap: 24px;
}

.route-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
}

.route-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.route-icon img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.route-content {
  min-width: 0;
}

.route-item h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.route-item p {
  color: #6b7280;
  line-height: 1.9;
  font-size: 14px;
}

.consult-form {
  width: 100%;
}

.choice-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}

.choice-label {
  padding-top: 8px;
  color: #737b8c;
  font-size: 13px;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-group button {
  border: 1px solid #d8dde5;
  background: #ffffff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  cursor: pointer;
}

.choice-group button.active {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.appointment-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin-top: 10px;
}

.appointment-form input,
.appointment-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e4e8ef;
  background: transparent;
  padding: 12px 0;
  outline: none;
}

.appointment-form textarea {
  min-height: 120px;
  resize: vertical;
  grid-column: span 2;
}

.appointment-form button {
  width: 112px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #111111;
  color: #ffffff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .contact-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-info-card:nth-child(2) {
    border-right: 0;
  }

  .contact-info-card:nth-child(1),
  .contact-info-card:nth-child(2) {
    border-bottom: 1px solid #f0f1f4;
  }
}

@media (max-width: 900px) {
  .contact-board {
    padding-top: 70px;
  }

  .contact-bottom {
    grid-template-columns: 1fr;
  }

  .form-column {
    border-left: 0;
    border-top: 1px solid #eeeeef;
  }
}

@media (max-width: 640px) {
  .contact-page .page-main {
    padding-top: 72px;
  }

  .contact-board {
    padding-top: 68px;
  }

  .contact-top {
    grid-template-columns: 1fr;
  }

  .contact-info-card,
  .contact-info-card:nth-child(1),
  .contact-info-card:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid #f0f1f4;
  }

  .contact-wechat-card {
    place-items: start start;
  }

  .contact-shell {
    padding: 16px 16px 0;
  }

  .contact-map {
    height: 260px;
  }

  .wechat-image {
    width: 76px;
    height: 76px;
  }

  .contact-column,
  .form-column {
    padding: 22px 10px 12px;
  }

  .contact-column h2,
  .form-column h2 {
    font-size: 24px;
  }

  .choice-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .route-item {
    grid-template-columns: 24px 1fr;
    gap: 10px;
  }

  .appointment-form {
    grid-template-columns: 1fr;
  }

  .appointment-form textarea {
    grid-column: span 1;
  }
}

