/* Contact page only — Figma 126:4799 */

.contact-form-section {
  background: #f5f3ed;
}

.contact-form-section .container {
  max-width: 1440px;
}

.contact-form__title {
  margin: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  display: inline-block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: #1b1c19;
}

.contact-form__desc {
  margin: 20px 0 0;
  font-size: 12px;
  font-weight: 400;
  color: #4e4639;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 64px;
  max-width: 1447px;
}

.contact-form__row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 50px;
}

.contact-form__field,
.contact-form__field--full {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.contact-form__field label {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 33.6px;
  color: #775a19;
  white-space: nowrap;
}

.contact-form__field label .req {
  color: #e70819;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  min-width: 0;
  height: 62px;
  border: 1px solid #cdcdcd;
  border-radius: 6px;
  padding: 0 24px;
  background: #fff;
  color: #1b1c19;
  font-size: 16px;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: #a0a1af;
}

.contact-form__field select {
  color: #1d2088;
  font-weight: 500;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%231b1c19' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 24px;
  padding-right: 52px;
  cursor: pointer;
}

.contact-form__field select:invalid,
.contact-form__field select.is-placeholder {
  color: #a0a1af;
  font-weight: 400;
}

.contact-form__field textarea {
  height: 130px;
  padding: 14px 24px;
  resize: vertical;
  line-height: 1.6;
}

.contact-form__field--upload {
  align-items: start;
}

.contact-form__field--upload > label {
  padding-top: 18px;
}

.contact-upload {
  position: relative;
  width: 100%;
  max-width: 280px;
}

.contact-upload__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 160px;
  padding: 24px 16px;
  border: 1px dashed #c8b89a;
  border-radius: 8px;
  background: #fff;
  color: #775a19;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-upload__btn:hover {
  border-color: #775a19;
  background: #fbf9f4;
}

.contact-upload__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(119, 90, 25, 0.35);
  font-size: 28px;
  line-height: 1;
  font-weight: 300;
}

.contact-upload__text {
  font-size: 15px;
  font-weight: 500;
}

.contact-upload__hint {
  font-size: 12px;
  color: #8a8072;
}

.contact-upload__preview {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cdcdcd;
  background: #eee;
}

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

.contact-upload__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 28, 25, 0.72);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.contact-upload__remove:hover {
  background: rgba(27, 28, 25, 0.9);
}

.contact-form__submit {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 24px;
}

.contact-form__submit .btn {
  width: 560px;
  max-width: 100%;
  height: 56px;
  border-radius: 8px;
  background: #775a19;
  border-color: #775a19;
  color: #eaecf0;
  font-size: 16px;
  font-weight: 700;
}

.contact-form__submit .btn:hover {
  background: #4e3700;
  border-color: #4e3700;
}

.contact-form__note {
  margin: 19px 0 0;
  max-width: 470px;
  font-size: 12px;
  line-height: 1.5;
  color: #555f69;
  text-align: center;
}

.contact-form__submit .btn:disabled,
.contact-form__submit .btn.is-loading {
  opacity: 0.72;
  cursor: wait;
}

/* 提交结果 Toast */
.site-toast {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 24px 24px;
  background: rgba(27, 28, 25, 0.18);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
  pointer-events: none;
}

.site-toast.is-show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.site-toast__card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  padding: 18px 18px 18px 16px;
  border-radius: 12px;
  background: #fffdf8;
  border: 1px solid rgba(119, 90, 25, 0.16);
  box-shadow: 0 18px 40px rgba(27, 28, 25, 0.18);
  transform: translateY(-12px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-toast.is-show .site-toast__card {
  transform: translateY(0) scale(1);
}

.site-toast__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  position: relative;
  margin-top: 1px;
}

.site-toast__icon::before,
.site-toast__icon::after {
  content: "";
  position: absolute;
}

.site-toast.is-ok .site-toast__icon {
  background: linear-gradient(145deg, #d8e7c8, #b7d19a);
  box-shadow: inset 0 0 0 1px rgba(61, 99, 40, 0.12);
}

.site-toast.is-ok .site-toast__icon::before {
  left: 11px;
  top: 9px;
  width: 8px;
  height: 14px;
  border-right: 2.5px solid #3d6328;
  border-bottom: 2.5px solid #3d6328;
  transform: rotate(45deg);
}

.site-toast.is-err .site-toast__icon {
  background: linear-gradient(145deg, #f3d4c8, #e8b4a4);
  box-shadow: inset 0 0 0 1px rgba(148, 58, 36, 0.12);
}

.site-toast.is-err .site-toast__icon::before,
.site-toast.is-err .site-toast__icon::after {
  left: 17px;
  top: 10px;
  width: 2.5px;
  height: 16px;
  border-radius: 2px;
  background: #943a24;
}

.site-toast.is-err .site-toast__icon::before {
  transform: rotate(45deg);
}

.site-toast.is-err .site-toast__icon::after {
  transform: rotate(-45deg);
}

.site-toast__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-top: 2px;
}

.site-toast__title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: #1b1c19;
}

.site-toast.is-ok .site-toast__title {
  color: #3d6328;
}

.site-toast.is-err .site-toast__title {
  color: #943a24;
}

.site-toast__text {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #4e4639;
}

.site-toast__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  margin: -4px -4px 0 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #8a8072;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.site-toast__close:hover {
  background: rgba(119, 90, 25, 0.08);
  color: #4e3700;
}

@media (max-width: 640px) {
  .site-toast {
    padding-top: 18vh;
  }

  .site-toast__card {
    max-width: 100%;
  }
}

.contact-map-section .about-sec-head,
.contact-map-section .contact-sec-head {
  margin-bottom: 48px;
}

.contact-sec-head__title {
  margin: 0;
  font-family: var(--font-headline);
  font-style: normal;
  font-synthesis: none;
  transform: skewX(var(--headline-skew));
  display: inline-block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.2;
  color: #1b1c19;
}

.contact-sec-head__en {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: #4e4639;
}

body[data-page="contact"] .map-wrap {
  min-height: 800px;
  border-radius: 12px;
}

body[data-page="contact"] .map-wrap > img {
  min-height: 800px;
}

body[data-page="contact"] .map-wrap .contact-card {
  left: 85px;
  background: #4e3700;
  border-radius: 12px;
  padding: 48px 40px;
  width: 480px;
  max-width: calc(100% - 48px);
}

@media (max-width: 1100px) {
  .contact-form__row {
    grid-template-columns: 1fr;
    gap: 30px;
  }

}

@media (max-width: 768px) {
  .contact-form__title,
  .contact-sec-head__title {
    font-size: 32px;
  }

  .contact-form__field,
  .contact-form__field--full {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: stretch;
  }

  .contact-form__field label {
    white-space: normal;
  }

  .contact-form__submit .btn {
    width: 100%;
  }
}
