/* Contact page layout, following the warm lavender and gold site palette. */
.contact-hero {
  position: relative;
  display: grid;
  min-height: clamp(390px, 41vw, 560px);
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background: #f7f4f1;
}

.contact-hero > img {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 58%;
}

.contact-hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: rgb(255 255 255 / 14%);
  content: "";
}

.contact-hero-card {
  width: min(780px, calc(100% - 48px));
  padding: clamp(32px, 5vw, 58px);
  border: 1px solid rgb(255 255 255 / 85%);
  border-radius: 26px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 22px 64px rgb(36 25 48 / 12%);
  backdrop-filter: blur(14px);
}

.contact-hero-card .eyebrow {
  margin-bottom: 14px;
}

.contact-hero-card h1 {
  margin: 0;
  color: var(--ink, #2e2051);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: 1.05;
  text-wrap: balance;
}

.contact-hero-card > p:last-child {
  max-width: 620px;
  margin: 18px 0 0;
  color: #5d6473;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
}

.contact-gold-rule {
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold, #e6af15), #f4d991);
}

.contact-location.section-wrap {
  display: grid;
  width: min(1080px, calc(100% - 64px));
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 3vw, 42px);
  padding-block: clamp(64px, 8vw, 96px);
}

.contact-map-card {
  min-height: 430px;
  overflow: hidden;
  border: 1px solid #eee8f1;
  border-radius: 22px;
  background: #f3f0f4;
  box-shadow: 0 16px 42px rgb(39 24 52 / 9%);
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 430px;
  border: 0;
}

.external-map-notice {
  display: grid;
  min-height: 430px;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 28px;
  text-align: center;
}

.external-map-notice p { max-width: 420px; color: #5d5365; line-height: 1.7; }

.contact-info-card {
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid #eee8f1;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(39 24 52 / 7%);
}

.contact-info-card .eyebrow {
  margin-bottom: 12px;
}

.contact-info-card h2 {
  margin: 0;
  color: var(--ink, #2e2051);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.2;
}

.contact-info-card .contact-gold-rule {
  margin-block: 18px 24px;
}

.contact-info-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin-top: 19px;
}

.contact-info-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #f1e7d6;
  border-radius: 14px;
  background: #fbf7ef;
  color: #bd8a37;
  font-size: 1.2rem;
  font-weight: 700;
}

.contact-info-row h3,
.contact-hours h3 {
  margin: 0 0 5px;
  color: #31293e;
  font-size: .96rem;
  font-weight: 750;
}

.contact-info-row address,
.contact-info-row a {
  color: var(--muted, #667085);
  font-size: .96rem;
  font-style: normal;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.contact-info-row a {
  text-decoration: underline;
  text-decoration-color: #d8d1df;
  text-underline-offset: 3px;
}

.contact-info-row a:hover {
  color: var(--plum, #4b2169);
  text-decoration-color: currentColor;
}

.contact-hours {
  margin: 24px 0 20px;
  padding-top: 20px;
  border-top: 1px solid #eee8f1;
}

.contact-hours ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 16px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.contact-hours li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted, #667085);
  font-size: .82rem;
  line-height: 1.5;
}

.contact-hours time {
  white-space: nowrap;
}

.contact-info-card .directions-link {
  margin: 4px 0 0;
}

.contact-form-section.section-wrap {
  width: min(900px, calc(100% - 64px));
  padding-bottom: clamp(72px, 9vw, 112px);
}

.contact-form-heading {
  max-width: 680px;
  margin: 0 auto 30px;
  text-align: center;
}

.contact-form-heading .eyebrow {
  margin-bottom: 12px;
}

.contact-form-heading h2 {
  margin: 0;
  color: var(--ink, #2e2051);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.16;
  text-wrap: balance;
}

.contact-form-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted, #667085);
  line-height: 1.7;
}

.contact-form-section > .form-section {
  padding: clamp(24px, 5vw, 54px);
}

.contact-form-section .form-helper {
  margin-bottom: 4px;
}

.contact-form-section .request-form {
  gap: 20px;
}

.contact-form-section .request-form textarea {
  min-height: 150px;
}

.contact-form-section .request-form .button {
  min-width: 160px;
}

.contact-hero:lang(th),
.contact-location:lang(th),
.contact-form-section:lang(th) {
  font-family: Prompt, Inter, system-ui, sans-serif;
}

@media (max-width: 760px) {
  .contact-hero {
    min-height: 390px;
  }

  .contact-hero > img {
    object-position: 57% center;
  }

  .contact-hero-card {
    width: calc(100% - 40px);
    padding: 32px 28px;
    border-radius: 22px;
    background: rgb(255 255 255 / 88%);
  }

  .contact-location.section-wrap,
  .contact-form-section.section-wrap {
    width: calc(100% - 40px);
  }

  .contact-location.section-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 44px 62px;
  }

  .contact-map-card,
  .contact-map-card iframe {
    min-height: 340px;
  }
  .external-map-notice { min-height: 340px; padding: 20px; }

  .contact-info-card {
    padding: 26px;
  }

  .contact-form-section.section-wrap {
    padding-bottom: 72px;
  }

  .contact-form-heading {
    margin-bottom: 22px;
  }

  .contact-form-section > .form-section {
    padding: 24px 20px;
  }

  .contact-form-section .request-form .button {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .contact-hero-card {
    width: calc(100% - 32px);
    padding: 28px 22px;
  }

  .contact-location.section-wrap,
  .contact-form-section.section-wrap {
    width: calc(100% - 32px);
  }

  .contact-map-card,
  .contact-map-card iframe {
    min-height: 290px;
  }
  .external-map-notice { min-height: 290px; padding: 16px; }

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