.contact-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 315px;
  overflow: hidden;
  background: #f8fcff;
}

.contact-hero-photo {
  position: absolute;
  inset: 0;
  background: url('../assets/images/contact-singapore-hero.webp?v=20261019.6') center 50% / cover no-repeat;
}

.contact-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-fade-desktop);
}

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

.contact-hero .section-label {
  margin-bottom: 19px;
  color: #09158d;
}

.contact-hero h1 {
  max-width: 570px;
  margin: 0 0 16px;
  color: #081e61;
  font-size: clamp(44px, 5.2vw, 65px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.contact-hero h1 em,
.contact-office h2 em,
.contact-enquiry h2 em {
  color: #0888f0;
  font-style: normal;
}

.contact-hero p {
  max-width: 390px;
  margin: 0;
  color: #112b81;
  line-height: 1.45;
}

.contact-office {
  background: #fff;
}

.contact-office .container {
  position: relative;
}

.office-switch {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid #b9e6fa;
  border-radius: 5px;
  background: #f6fcff;
}

.office-switch a {
  padding: 5px 10px;
  border-radius: 3px;
  color: #0a4ca8;
  font-size: 12px;
  font-weight: 600;
}

.office-switch a:hover,
.office-switch a.active {
  color: #fff;
  background: #087fdf;
}

.contact-office .section-label,
.contact-enquiry .section-label {
  margin-bottom: 16px;
}

.contact-office h2,
.contact-enquiry h2 {
  margin: 0 0 12px;
  color: #081e62;
  line-height: 1.12;
  letter-spacing: -.02em;
}

.contact-office h3 {
  margin: 0 0 30px;
  color: #081e62;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.02em;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  text-align: center;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
}

.contact-detail + .contact-detail {
  border-left: 1px solid #77cfff;
}

.contact-detail-icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 12px;
  border-radius: 50%;
  color: #061e83;
  background: #e8f8ff;
}

.contact-detail-icon svg,.contact-detail-icon img {
  width: 34px;
  height: 34px;
}

.contact-detail-label {
  margin-bottom: 11px;
  color: #0757d2;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .32em;
  text-transform: uppercase;
}

.contact-detail address,
.contact-detail a {
  color: #0a2780;
  font-size: 20px;
  font-style: normal;
  line-height: 1.4;
}

.contact-detail a:hover {
  color: #087af0;
  text-decoration: underline;
}

.contact-enquiry {
  scroll-margin-top: 74px;
  background: linear-gradient(120deg, #e6f7ff, #f3fbff 65%, #e2f6ff);
}

.contact-enquiry h2 {
  margin-bottom: 22px;
}

.enquiry-form {
  position: relative;
  padding: 30px 33px;
  border-radius: 7px;
  background: #fff;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px 27px;
  margin-bottom: 28px;
}

.form-field {
  min-width: 0;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 6px;
  color: #071e7a;
  font-size: 14px;
  line-height: 1.35;
}

.form-field label span {
  color: #f43a30;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  border: 1px solid #c8d9ee;
  border-radius: 4px;
  color: #08265d;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.45;
}

.form-field textarea {
  min-height: 132px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid #078ff0;
  outline-offset: 2px;
}

.enquiry-submit {
  min-width: 215px;
  min-height: 48px;
  border: 0;
}

.enquiry-submit:disabled {
  opacity: .65;
  cursor: wait;
  transform: none;
}

.enquiry-status {
  margin: 15px 0 0;
  color: #0a3888;
  line-height: 1.5;
}

.enquiry-status[data-state="success"] {
  color: #176d39;
}

.enquiry-status[data-state="error"] {
  color: #b02525;
}

.enquiry-status:empty {
  display: none;
}

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

  .contact-hero h1 {
    font-size: clamp(43px, 5.8vw, 57px);
  }

  .contact-office h3 {
    font-size: 22px;
  }

  .contact-detail {
    padding-inline: 15px;
  }

  .contact-detail address,
  .contact-detail a {
    font-size: 16px;
  }
}

@media (max-width: 650px) {
  .contact-hero {
    align-items: flex-start;
    min-height: clamp(500px, 120vw, 770px);
  }

  .contact-hero-photo {
    inset: 0;
    background-image: url('../assets/images/contact-singapore-hero-mobile.webp?v=20261019.6');
    background-size: cover;
    background-position: center bottom;
  }

  .contact-hero-photo::after {
    background: var(--hero-fade-mobile);
  }

  .contact-hero h1 {
    font-size: clamp(39px, 9vw, 52px);
  }

  .contact-hero h1 br {
    display: none;
  }

  .contact-office h3 {
    margin-bottom: 20px;
    font-size: 19px;
  }

  .office-switch {
    position: static;
    width: max-content;
    max-width: 100%;
    margin-bottom: 20px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .contact-detail,
  .contact-detail + .contact-detail {
    padding: 20px 0;
    border-left: 0;
  }

  .contact-detail + .contact-detail {
    border-top: 1px solid #77cfff;
  }

  .contact-detail address,
  .contact-detail a {
    font-size: 16px;
  }

  .enquiry-form {
    padding: 22px 18px;
  }

  .enquiry-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .enquiry-submit {
    width: 100%;
  }

}
