/* ManilaStay v1-3-5: Contact label visibility and select-border correction.
   Scope: Contact page only. This prevents the dark hero-form label and select
   rules from making Contact labels invisible or creating a double-border select. */

.ms-contact-template .ms-contact-form .ms-form-group {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.ms-contact-template .ms-contact-form .ms-form-group > label,
.ms-contact-template .ms-contact-form label.ms-form-group-label {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 0.45rem !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  color: #1f1f1f !important;
  font-size: 0.85rem !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

.ms-contact-template .ms-contact-form .ms-input {
  background-color: #ffffff;
  border: 1px solid rgba(71, 91, 102, 0.28);
  color: #1f1f1f;
}

.ms-contact-template .ms-contact-form .ms-input::placeholder {
  color: rgba(31, 31, 31, 0.42);
}

.ms-contact-template .ms-contact-form .ms-select {
  position: relative;
  width: 100%;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ms-contact-template .ms-contact-form .ms-select-trigger {
  background-color: #475b66 !important;
  border: 1px solid #475b66 !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.ms-contact-template .ms-contact-form .ms-select-trigger:focus,
.ms-contact-template .ms-contact-form .ms-select:focus-within .ms-select-trigger {
  border-color: #475b66 !important;
  box-shadow: 0 0 0 2px rgba(71, 91, 102, 0.22) !important;
}

/* ManilaStay v1-3-6: Contact form vertical-rhythm correction.
   Scope: Contact page only. Keep labels visible while making nested Trip basics
   and conditional service sections follow the same row spacing as the main form. */

.ms-contact-template .ms-contact-form {
  gap: 1rem;
}

.ms-contact-template .ms-contact-form #ms-trip-basics,
.ms-contact-template .ms-contact-form .ms-form-section {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.ms-contact-template .ms-contact-form .ms-form-section[hidden] {
  display: none !important;
}

/* v1-13-11: The Trip basics block has an explicit display:grid rule above,
   so its hidden attribute needs an equally scoped author-level override. */
.ms-contact-template .ms-contact-form #ms-trip-basics[hidden],
.ms-contact-template .ms-contact-form #ms-trip-basics-divider[hidden] {
  display: none !important;
}

.ms-contact-template .ms-contact-form #ms-trip-basics .ms-form-section-title,
.ms-contact-template .ms-contact-form .ms-form-section .ms-form-section-title {
  margin: 0 0 -0.2rem;
}

.ms-contact-template .ms-contact-form #ms-trip-basics .ms-form-row,
.ms-contact-template .ms-contact-form .ms-form-section .ms-form-row {
  margin: 0;
}

.ms-contact-template .ms-contact-form #ms-surcharge-hint[hidden] {
  display: none !important;
}

/* ManilaStay v1-14-5: Contact hero and overlapping enquiry layout.
   The hero follows the main-page pill/H1/tagline system without a hero form.
   The booking form and sidebar begin together and overlap the hero edge. */

.ms-contact-template .ms-hero--contact {
  min-height: 410px;
  display: flex;
  align-items: center;
  padding-block: 0;
}

.ms-contact-template .ms-hero--contact .ms-hero-inner {
  width: 100%;
  padding-block: 5.25rem 6.75rem;
}

.ms-contact-template .ms-contact-hero-copy {
  max-width: 41rem;
}

.ms-contact-template .ms-contact-hero-copy .ms-hero-heading,
.ms-contact-template .ms-contact-hero-copy .ms-hero-tagline {
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.58),
    0 1px 2px rgba(0, 0, 0, 0.48);
}

.ms-contact-template .ms-contact-hero-copy .ms-hero-heading {
  font-weight: 800;
  line-height: 1.22;
}

.ms-contact-template .ms-contact-hero-copy .ms-hero-tagline {
  max-width: 38rem;
  margin-bottom: 0;
  line-height: 1.75;
}

.ms-contact-template .ms-contact-hero-copy .ms-badge--accent {
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.30);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.34);
}

.ms-contact-template .ms-contact-content-section {
  position: relative;
  z-index: 2;
  margin-top: -4.25rem;
  padding-bottom: var(--ms-spacing-xxl);
}

.ms-contact-template .ms-contact-content-section .ms-booking-layout {
  align-items: start;
}

.ms-contact-template .ms-contact-content-section .ms-booking-layout > section,
.ms-contact-template .ms-contact-content-section .ms-contact-sidebar {
  align-self: start;
  margin-top: 0;
}

.ms-contact-template .ms-contact-content-section .ms-booking-layout > section > .ms-card,
.ms-contact-template .ms-contact-content-section .ms-contact-sidebar > .ms-card:first-child {
  margin-top: 0;
}

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

  .ms-contact-template .ms-hero--contact .ms-hero-inner {
    padding-block: 4.5rem 6rem;
  }

  .ms-contact-template .ms-contact-content-section {
    margin-top: -3.25rem;
  }
}

@media (max-width: 680px) {
  .ms-contact-template .ms-hero--contact {
    min-height: 430px;
  }

  .ms-contact-template .ms-hero--contact .ms-hero-inner {
    padding-block: 3.75rem 5.25rem;
  }

  .ms-contact-template .ms-contact-hero-copy {
    max-width: 22rem;
  }

  .ms-contact-template .ms-contact-hero-copy .ms-hero-heading {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .ms-contact-template .ms-contact-hero-copy .ms-hero-tagline {
    font-size: 1rem;
    line-height: 1.65;
  }

  .ms-contact-template .ms-contact-content-section {
    margin-top: -2.25rem;
    padding-bottom: var(--ms-spacing-xl);
  }
}


/* ManilaStay v1-15-3: server-side Contact form result messages. */
.ms-contact-template .ms-contact-form .ms-form-status {
  margin: 0 0 0.25rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(71, 91, 102, 0.24);
  border-radius: var(--ms-radius-sm);
  background: rgba(71, 91, 102, 0.07);
  color: #1f1f1f;
  line-height: 1.5;
}

.ms-contact-template .ms-contact-form .ms-form-status--success {
  border-color: rgba(40, 120, 78, 0.35);
  background: rgba(40, 120, 78, 0.08);
}

.ms-contact-template .ms-contact-form .ms-form-status--error {
  border-color: rgba(176, 66, 52, 0.38);
  background: rgba(176, 66, 52, 0.08);
}

.ms-contact-template .ms-contact-form button[type="submit"]:disabled {
  cursor: wait;
  opacity: 0.72;
}
