.contact-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #faf5ef;
  color: #282d32;
  font-family: PingFangSC-Regular, serif;
}

.contact-main {
  position: relative;
  flex: 1;
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
  padding: 76px 0 108px;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
  font-family: PingFangSC-Regular, serif;
}

.contact-art {
  position: absolute;
  z-index: -1;
  top: 120px;
  left: 50%;
  width: min(1200px, 112vw);
  max-width: none;
  height: auto;
  transform: translateX(-50%);
  opacity: .72;
  pointer-events: none
}

.contact-heading {
  position: relative;
  z-index: 1
}

.contact-main h1 {
  margin: 0;
  color: #282d32;
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  font-family: PingFangSC-SemiBold, serif;
}

.contact-lead {
  margin: 24px 0 68px;
  color: #92999f;
  font-size: 32px;
  line-height: 1.35
}

.contact-state {
  width: min(100%, 950px);
  margin: 0 auto;
  box-sizing: border-box
}

.contact-form-state {
  display: block
}

.contact-form-state[hidden] {
  display: none
}

.contact-loading-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 20;
  display: grid;
  width: 120px;
  height: 120px;
  place-items: center;
  box-sizing: border-box;
  border-radius: 16px;
  background: #000;
  opacity: .75;
  transform: translate(-50%, -50%);
}

.contact-loading-toast[hidden] {
  display: none
}

.contact-loading-spinner {
  display: block;
  width: 60px;
  height: 60px;
  box-sizing: border-box;
  border: 10px solid #00B900;
  border-right-color: transparent;
  border-radius: 50%;
  animation: contact-loading-spin .8s linear infinite;
}

@keyframes contact-loading-spin {
  to {
    transform: rotate(360deg)
  }
}

.contact-form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 34px;
  padding: 42px 48px 48px;
  border-radius: 22px;
  background: rgba(232, 228, 222, .87);
  text-align: left;
  box-shadow: 0 14px 40px rgba(67, 71, 75, .06)
}

.contact-form::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: url('/assets/img/home/q_star@2x.png') center / cover no-repeat;
  opacity: .32;
  content: ''
}

.contact-field {
  grid-column: 1;
}

.contact-field label {
  padding-left: 20px;
  color: #2c7577;
  font-size: 18px;
  font-weight: 400;
}

.contact-field input,
.contact-field textarea {
  font-family: PingFangSC-Semibold;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  padding: 14px 17px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: #fff;
  color: #282d32;
  font: inherit;
  font-size: 20px;
  font-weight: 600;
  margin-top: 10px;
}

.contact-field textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.5
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #DCE1E6;
  opacity: 1
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.contact-submit:focus-visible,
.contact-success-home:focus-visible,
.contact-error-close:focus-visible {
  border: 1px solid #286464;
  outline: none;
}

.contact-field input[aria-invalid="true"],
.contact-field textarea[aria-invalid="true"] {
  border-color: #c74b2b
}

.contact-message-field {
  grid-column: 2;
  grid-row: 1 / span 3
}

.contact-field-error,
.contact-status {
  margin: 0;
  color: #a53921;
  font-size: .92rem
}

.contact-status:empty {
  display: none
}

.contact-submit {
  grid-column: 1 / -1;
  justify-self: center;
  min-width: 208px;
  min-height: 56px;
  margin-top: 6px;
  padding: 12px 28px;
  border: 0;
  border-radius: 15px;
  background: #ff5a00;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-family: inherit;
  font-weight: 700;
}

.contact-submit:hover {
  background: #FF7300
}

.contact-submit:disabled {
  opacity: .65;
  cursor: wait
}

.contact-submit[aria-busy="true"] {
  padding-left: 46px;
  background-image: url('/assets/img/home/Load@2x.png');
  background-position: 18px center;
  background-repeat: no-repeat;
  background-size: 20px 20px
}

.contact-alt {
  margin: 26px 0 0;
  color: #777f85;
  font-size: .95rem;
  text-align: center
}

.contact-alt a {
  color: #286464;
  text-decoration: underline;
  text-underline-offset: 2px
}

.contact-success,
.contact-error-dialog {
  display: none;
  position: relative;
  inset: auto;
  min-height: 450px;
  padding: 0;
  border: 0;
  border-radius: 22px;
  color: inherit;
  text-align: center;
  background: transparent;
}

.contact-success[open],
.contact-error-dialog[open] {
  display: block;
}

.contact-state-card {
  display: flex;
  min-height: 450px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  box-sizing: border-box;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(67, 71, 75, .06)
}

.contact-state-icon {
  display: block;
  flex: none;
  width: 120px;
  height: 80px;
  margin: 0 0 34px
}

.contact-success-icon {
  object-fit: contain
}

.contact-error-icon {
  object-fit: contain
}

.contact-state-card h2 {
  margin: 0;
  color: #282d32;
  font-size: clamp(1.65rem, 3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.25
}

.contact-state-card p {
  margin: 10px 0 0;
  color: #282d32;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.35
}

.contact-success-home,
.contact-error-close {
  display: block;
  min-width: 294px;
  min-height: 56px;
  margin: 42px auto 0;
  padding: 12px 28px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 20px;
  font-family: PingFangSC-SemiBold, serif;
}

.contact-success-home {
  background: #286464
}

.contact-success-home:hover {
  background: #3C7878
}

.contact-error-close {
  background: #ff5a00
}

.contact-error-close:hover {
  background: #FF7300
}

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden
}

.contact-foot {
  flex-shrink: 0
}

@media (max-width: 720px) {
  .contact-main {
    width: min(100% - 32px, 620px);
    padding-top: 48px;
    padding-bottom: 72px
  }

  .contact-main h1 {
    font-size: clamp(3rem, 13vw, 4.5rem)
  }

  .contact-lead {
    margin: 18px 0 38px;
    font-size: 1.1rem
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 26px 20px 28px
  }

  .contact-message-field {
    grid-column: auto;
    grid-row: auto
  }

  .contact-field textarea {
    min-height: 180px
  }

  .contact-submit {
    width: 100%
  }

  .contact-success,
  .contact-error-dialog,
  .contact-state-card {
    min-height: 390px
  }

  .contact-success-home,
  .contact-error-close {
    width: min(100%, 294px)
  }
}

@media (prefers-reduced-transparency: reduce) {

  .contact-page .top,
  .contact-form,
  .contact-state-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background-color: #fff
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-loading-spinner {
    animation: none
  }
}

@media (prefers-contrast: more) {

  .contact-form,
  .contact-state-card {
    border: 2px solid #282d32
  }

  .contact-field input,
  .contact-field textarea {
    border-color: #282d32
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-page * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .contact-page .top {
    background: #fff
  }
}
