/* Ain Muslimah V5 | Elegant compact rhythm.
 * Keeps every form control and booking action visible, while reducing excess
 * padding, giant headings and long one-column mobile forms. */
html.ams-curated :is(#promo,#services,#homestay,#gallery,#spa,#events,#booking,#stay-request,#contact) {
  scroll-margin-top:82px;
}
html.ams-curated :is(#spa,#homestay,#gallery,#about,.choice-section) {
  padding-top:clamp(43px,5vw,70px)!important;
  padding-bottom:clamp(43px,5vw,70px)!important;
}
html.ams-curated :is(.section-heading,.booking-heading) {
  margin-bottom:clamp(15px,2.2vw,26px);
}
html.ams-curated :is(.section-heading,.booking-heading) h2 {
  font-size:clamp(27px,3.1vw,42px);
  line-height:1.13;
}
html.ams-curated :is(#booking-spa,#booking-stay).booking-panel {
  width:min(100%,680px);
  max-width:680px!important;
  padding:clamp(16px,2.3vw,25px)!important;
  border-radius:22px;
}
html.ams-curated .ams-stay-request .booking-panel {max-width:700px!important}
html.ams-curated :is(#spa-booking-form,#stay-booking-form).booking-grid {
  gap:12px 15px!important;
}
html.ams-curated :is(#spa-booking-form,#stay-booking-form) .booking-field {
  gap:5px!important;
  font-size:13px!important;
}
html.ams-curated :is(#spa-booking-form,#stay-booking-form) :is(input,select,textarea),
html.ams-curated #event-booking-form :is(input,select,textarea) {
  min-height:44px!important;
  padding:9px 11px!important;
  border-radius:11px!important;
  font-size:16px!important; /* no iOS automatic focus zoom */
}
html.ams-curated :is(#spa-booking-form,#stay-booking-form) textarea,
html.ams-curated #event-booking-form textarea {min-height:65px!important}
html.ams-curated :is(#spa-booking-form,#stay-booking-form) .booking-submit,
html.ams-curated #event-booking-form .ams-event-submit {
  min-height:47px!important;
  padding:11px 15px!important;
  font-size:13px!important;
}
html.ams-curated :is(#booking-spa,#booking-stay) .booking-note {
  font-size:12px!important;
  margin:9px 0 0!important;
  line-height:1.52!important;
}
html.ams-curated :is(#spa-booking-form,#stay-booking-form) .booking-total,
html.ams-curated #events .ams-event-form-total {
  margin:8px 0!important;
  padding:12px 14px!important;
}
html.ams-curated #booking .booking-heading,
html.ams-curated #stay-request .booking-heading {max-width:590px}
html.ams-curated #events .ams-event-enquiry {
  max-width:950px;
  gap:23px;
  padding:clamp(16px,2.4vw,25px);
}
html.ams-curated #events .ams-event-form {
  padding:clamp(15px,2.3vw,22px);
}
html.ams-curated #events .ams-event-form-title {
  font-size:21px;
  margin-bottom:12px;
}
html.ams-curated #events .ams-event-form-grid {
  gap:11px 13px!important;
}
html.ams-curated #events .ams-event-form-grid label {
  font-size:13px!important;
  line-height:1.35;
}
html.ams-curated #events .ams-event-form-grid :is(input,select,textarea) {margin-top:5px!important}
html.ams-curated #homestay .stay-copy p {line-height:1.6}
html.ams-curated #homestay .amenity-grid {gap:10px!important}
html.ams-curated #homestay .amenity-grid span {padding:10px 12px!important}

@media(max-width:760px) {
  html.ams-curated body {font-size:14px}
  html.ams-curated .header {height:69px!important;padding:6px 4%!important}
  html.ams-curated .brand {font-size:19px!important;gap:9px!important}
  html.ams-curated .brand img {width:46px!important;height:46px!important}
  html.ams-curated .brand small {font-size:9px!important;letter-spacing:1.3px!important}
  html.ams-curated .hero-copy {padding:35px 5% 5px!important}
  html.ams-curated .hero-copy h1 {
    font-size:clamp(32px,8.2vw,42px)!important;
    line-height:1.11!important;
    margin:13px 0!important;
  }
  html.ams-curated .hero-copy>p:not(.eyebrow) {font-size:13px!important;line-height:1.55!important}
  html.ams-curated .hero .actions {gap:7px!important;margin-top:17px!important}
  html.ams-curated .hero .actions .btn {padding:10px 12px!important;font-size:12px!important}
  html.ams-curated .ams-hero-brand-stage {min-height:175px;padding:22px 7% 34px!important}
  html.ams-curated .ams-brand-frame {max-width:360px!important}
  html.ams-curated .ams-brand-caption {margin-top:18px!important;font-size:9px!important}
  html.ams-curated :is(#spa,#homestay,#gallery,#about,.choice-section) {
    padding:38px 5% 43px!important;
  }
  html.ams-curated :is(#promo,#services) {padding-top:34px!important;padding-bottom:38px!important}
  html.ams-curated :is(#booking,#stay-request) {
    padding:37px 14px 44px!important;
  }
  html.ams-curated :is(.section-heading,.booking-heading) h2 {font-size:clamp(26px,7vw,35px)!important}
  html.ams-curated .section-heading>p:not(.eyebrow),
  html.ams-curated .booking-heading>p:not(.eyebrow) {
    font-size:13px!important;
    line-height:1.5!important;
  }
  html.ams-curated #homestay {gap:16px!important}
  html.ams-curated #homestay .stay-visual {
    height:clamp(176px,44vw,258px)!important;
    min-height:0!important;
    padding:0!important;
    border-width:4px!important;
    border-radius:19px!important;
  }
  html.ams-curated #homestay .stay-copy h2 {
    font-size:clamp(27px,6.8vw,35px)!important;
    margin:8px 0 12px!important;
  }
  html.ams-curated #homestay .stay-copy p {
    font-size:13.5px!important;
    line-height:1.5!important;
    margin:10px 0!important;
  }
  html.ams-curated #homestay .stay-copy .price {
    font-size:clamp(32px,9vw,46px)!important;
    margin:9px 0!important;
  }
  html.ams-curated #homestay .stay-copy .price small {font-size:12px!important}
  html.ams-curated #homestay .amenity-grid {gap:7px!important;margin:13px 0!important}
  html.ams-curated #homestay .amenity-grid span {
    padding:8px 9px!important;
    font-size:11px!important;
    min-height:38px;
    display:flex;align-items:center;
  }
  html.ams-curated #homestay .stay-copy .btn {
    padding:11px 12px!important;
    font-size:12px!important;
    min-height:46px;
  }
  html.ams-curated :is(#booking-spa,#booking-stay).booking-panel {
    max-width:590px!important;
    width:100%;
    padding:16px 14px!important;
    border-radius:17px!important;
  }
  html.ams-curated .ams-stay-request .booking-panel {max-width:590px!important}
  html.ams-curated :is(#spa-booking-form,#stay-booking-form).booking-grid,
  html.ams-curated #events .ams-event-form-grid {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
  }
  html.ams-curated #spa-booking-form > label:has(#spa-email),
  html.ams-curated #spa-booking-form > label:has(#spa-branch),
  html.ams-curated #spa-booking-form > label:has(#spa-service),
  html.ams-curated #stay-booking-form > label:has(#stay-email),
  html.ams-curated :is(#spa-booking-form,#stay-booking-form) > .booking-field.wide,
  html.ams-curated :is(#spa-booking-form,#stay-booking-form) > .booking-total.wide,
  html.ams-curated #events .ams-event-form-grid .ams-wide {
    grid-column:1/-1!important;
  }
  html.ams-curated :is(#spa-booking-form,#stay-booking-form) .booking-field {
    font-size:12px!important;
    line-height:1.35!important;
  }
  html.ams-curated :is(#spa-booking-form,#stay-booking-form) :is(input,select,textarea),
  html.ams-curated #event-booking-form :is(input,select,textarea) {
    min-width:0!important;
    padding:9px 10px!important;
  }
  html.ams-curated #events .ams-event-enquiry {padding:13px!important;gap:14px!important}
  html.ams-curated #events .ams-event-form {padding:13px!important}
  html.ams-curated #events .ams-event-form-title {font-size:19px!important;margin-bottom:10px!important}
  html.ams-curated #events .ams-event-form-grid label {font-size:12px!important}
  html.ams-curated #events .ams-event-gallery button {height:145px!important}
  html.ams-curated #events .ams-event-gallery button:first-child {height:206px!important}
  html.ams-curated #gallery .gallery-grid {gap:7px!important;margin-top:14px!important}
  html.ams-curated #contact {padding:43px 15px 47px!important}
}

@media(max-width:370px) {
  /* Tiny devices need one field per row to avoid cropped native date inputs. */
  html.ams-curated :is(#spa-booking-form,#stay-booking-form).booking-grid,
  html.ams-curated #events .ams-event-form-grid {grid-template-columns:1fr!important}
  html.ams-curated :is(#spa-booking-form,#stay-booking-form) > .booking-field,
  html.ams-curated #events .ams-event-form-grid label {grid-column:1!important}
  html.ams-curated .header .brand {font-size:16px!important}
}
