/* =========================
   CONTACT PAGE
========================= */

.contact-page {
  padding-top: 108px;

  background: #ffffff;
}

.contact-container {
  width: min(1100px, calc(100% - 40px));

  margin: 0 auto;
}


/* =========================
   PAGE TITLE
========================= */

.contact-title-area {
  padding: 90px 0 75px;

  background: #f7f7f7;

  border-bottom: 1px solid #eeeeee;
}

.contact-en {
  margin: 0 0 10px;

  color: var(--solid-red);

  font-size: 13px;
  font-weight: 700;

  letter-spacing: 0.22em;
}

.contact-title-area h1 {
  margin: 0 0 24px;

  font-size: clamp(38px, 5vw, 58px);

  line-height: 1.25;
}

.contact-intro {
  max-width: 720px;

  margin: 0;

  color: #555555;

  font-size: 16px;

  line-height: 1.9;
}


/* =========================
   CONTACT INFORMATION
========================= */

.contact-info-section {
  padding: 80px 0 50px;

  background: #ffffff;
}

.contact-info-grid {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 18px;
}

.contact-info-item {
  min-height: 120px;

  padding: 24px;

  display: flex;
  flex-direction: column;

  justify-content: center;

  background: #f7f7f7;

  border-top: 3px solid var(--solid-red);
}

.contact-info-label {
  margin-bottom: 8px;

  color: var(--solid-red);

  font-size: 12px;
  font-weight: 700;

  letter-spacing: 0.16em;
}

.contact-info-item a,
.contact-info-item > span:last-child {
  font-size: 16px;

  font-weight: 600;
}

.contact-info-item a:hover {
  color: var(--solid-red);
}


/* =========================
   FORM
========================= */

.contact-form-section {
  padding: 50px 0 100px;

  background: #ffffff;
}

.contact-form {
  border-top: 1px solid #dddddd;
}

.form-row {
  display: grid;

  grid-template-columns: 260px 1fr;

  border-bottom: 1px solid #dddddd;
}

.form-label {
  padding: 28px 24px;

  background: #fafafa;

  font-weight: 700;
}

.form-field {
  padding: 24px 28px;
}

.required {
  display: inline-block;

  margin-left: 8px;

  padding: 2px 7px;

  background: var(--solid-red);

  color: #ffffff;

  font-size: 10px;

  font-weight: 700;

  vertical-align: middle;
}


/* =========================
   INPUT
========================= */

.form-field input[type="text"],
.form-field input[type="email"],
.form-field textarea {
  width: 100%;

  padding: 13px 15px;

  border: 1px solid #cccccc;

  background: #ffffff;

  color: #222222;

  font: inherit;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.form-field textarea {
  resize: vertical;

  min-height: 190px;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;

  border-color: var(--solid-red);

  box-shadow:
    0 0 0 2px rgba(228, 20, 32, 0.08);
}


/* =========================
   CHECK BOX
========================= */

.check-item {
  display: flex;

  align-items: center;

  gap: 10px;

  margin-bottom: 13px;

  cursor: pointer;
}

.check-item:last-child {
  margin-bottom: 0;
}

.check-item input {
  width: 18px;
  height: 18px;

  accent-color: var(--solid-red);

  flex-shrink: 0;
}


/* =========================
   PRIVACY
========================= */

.privacy-area {
  margin-top: 45px;

  padding: 28px 32px;

  background: #f7f7f7;

  border-left: 4px solid var(--solid-red);
}

.privacy-area p {
  margin: 0 0 22px;

  color: #555555;

  font-size: 14px;

  line-height: 1.9;
}

.privacy-area a {
  color: var(--solid-red);

  text-decoration: underline;
}

.privacy-check {
  display: flex;

  align-items: center;

  gap: 10px;

  font-weight: 700;

  cursor: pointer;
}

.privacy-check input {
  width: 18px;
  height: 18px;

  accent-color: var(--solid-red);
}


/* =========================
   SUBMIT
========================= */

.form-submit {
  margin-top: 45px;

  text-align: center;
}

.submit-button {
  min-width: 240px;

  padding: 17px 30px;

  border: 1px solid var(--solid-red);

  background: var(--solid-red);

  color: #ffffff;

  font-size: 15px;
  font-weight: 700;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.submit-button:hover {
  background: var(--solid-red-dark);

  transform: translateY(-1px);
}

/* 本地邮件模拟测试结果 */
.form-status {
  margin-top: 20px;
  text-align: center;
  line-height: 1.8;
  color: #555555;
}

.mail-preview {
  margin-top: 24px;
  padding: 22px;
  border: 1px solid #dddddd;
  background: #f7f7f7;
  color: #333333;
  font: inherit;
  font-size: 14px;
  line-height: 1.8;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {

  .contact-page {
    padding-top: 76px;
  }

  .contact-title-area {
    padding: 65px 0 55px;
  }

  .contact-info-section {
    padding: 60px 0 35px;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-section {
    padding: 35px 0 70px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-label {
    padding: 20px 18px 8px;

    background: transparent;
  }

  .form-field {
    padding: 10px 18px 22px;
  }

  .privacy-area {
    padding: 22px 20px;
  }

}

.contact-visual {
  max-width: 520px;
  margin-top: 32px;
}

.contact-visual img {
  width: 100%;
  height: auto;
}

.contact-title-area {
  padding: 72px 0;
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
  gap: 56px;
  align-items: center;
}

.contact-visual {
  max-width: none;
  margin-top: 0;
}

.contact-visual img {
  width: 100%;
  height: auto;
  border: 1px solid #e8e8e8;
}

@media (max-width: 900px) {
  .contact-title-area {
    padding: 56px 0;
  }

  .contact-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-visual {
    max-width: 520px;
  }
}