/* V1.0.40 — Kontakt. Loaded only for the contact page and its builder preview. */
.magu-cms .magu-contact-intro {
  padding-block: clamp(34px, 5vw, 74px) clamp(26px, 4vw, 54px);
  background: radial-gradient(ellipse at 80% 0%, #e6d9d733, transparent 62%), var(--paper, #f7f5f2);
}
.magu-contact-intro .crumb { margin: 0 0 12px; }
.magu-contact-intro h1 {
  font-size: clamp(36px, 5.6vw, 73px);
  max-width: 19ch; margin: 0 0 14px; line-height: 1.04; overflow-wrap: anywhere;
}
.magu-contact-intro .lead { max-width: 60ch; font-size: clamp(16px, 1.7vw, 20px); margin-block: 0; }
.magu-cms .magu-appointment {
  --appointment-accent: var(--btn-bg, var(--clay, #783b50));
  --appointment-border: #d6cac5;
  padding-top: var(--pb31-top_d, 0px);
  padding-bottom: var(--pb31-bottom_d, clamp(36px, 5vw, 70px));
  background: var(--pb31-section_bg, var(--paper, #f7f5f2));
  scroll-margin-top: max(94px, calc(min(var(--magu-logo-height, 52px), 42vh) + 28px));
}
.magu-cms.magu-preview .magu-appointment { scroll-margin-top: 15px; }
.magu-cms .magu-appointment > .contact-grid {
  display: grid; align-items: start;
  width: min(var(--pb31-width, 1160px), calc(100% - 34px)); padding-inline: 0;
  max-width: none;
  gap: var(--pb31-col_gap, clamp(16px, 2.8vw, 34px));
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
}
.magu-cms .magu-appointment.pb31-ratio-50-50 > .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.magu-cms .magu-appointment.pb31-ratio-60-40 > .contact-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.magu-cms .magu-appointment.pb31-ratio-70-30 > .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 3fr); }
.magu-cms .magu-appointment > .contact-grid:not(:has(.contact-side)) { grid-template-columns: minmax(0, 1fr); }
.magu-cms .magu-appointment-form {
  min-width: 0; width: 100%; max-width: var(--pb31-form_width, 100%);
  padding: var(--pb31-form_pad, clamp(20px, 3.8vw, 46px));
  border: 1px solid #e8dfda;
  border-radius: var(--pb31-form_radius, 20px);
  background: var(--pb31-form_bg, #fffdfa);
  box-shadow: 0 15px 38px #321c2110;
}
.magu-appointment .section-head { display: block; margin: 0 0 20px; }
.magu-appointment .section-head .eyebrow { margin: 0 0 7px; color: var(--appointment-accent); }
.magu-cms .magu-appointment .section-head h2 {
  font-size: var(--pb31-title_size_d, clamp(32px, 4vw, 52px));
  color: var(--pb31-title_color, var(--ink)); line-height: 1.04; margin: 0;
}
.magu-cms .magu-appointment .section-head .lede {
  font-size: var(--pb31-body_size_d, 16px); line-height: 1.5;
  color: var(--pb31-text_color, #625752); margin: 10px 0 0;
}
.magu-cms .magu-appointment .form { gap: var(--pb31-field_gap, 16px 18px); }
.magu-appointment.pb31-form_columns-one .form-grid { grid-template-columns: minmax(0, 1fr); }
.magu-appointment-required { margin: 0; font-size: 12px; color: #625752; }
.magu-cms .magu-appointment .form :is(label:not(.choice), legend) {
  font-size: var(--pb31-label_size, 14px); color: var(--pb31-label_color, #332826);
  letter-spacing: 0; text-transform: none; font-weight: 650; line-height: 1.4;
}
.magu-appointment .form .req { color: var(--appointment-accent); }
.magu-cms .magu-appointment .form :is(input:not([type=hidden], [type=radio], [type=checkbox]), select, textarea) {
  min-width: 0; min-height: 47px; padding: var(--pb31-input_pad, 11px 13px);
  border: 1px solid var(--pb31-input_border, var(--appointment-border));
  border-radius: var(--pb31-input_radius, 8px);
  font-size: var(--pb31-input_size, 16px); line-height: 1.35;
  color: var(--pb31-input_color, #332826); background: var(--pb31-input_bg, #fff);
}
.magu-cms .magu-appointment .form textarea { min-height: 108px; resize: vertical; }
.magu-appointment .form ::placeholder { color: #6d605c; opacity: 1; }
.magu-cms .magu-appointment .form :is(input, select, textarea):focus-visible {
  border-color: var(--pb31-focus_color, var(--appointment-accent));
  outline: 2px solid var(--pb31-focus_color, var(--appointment-accent)); outline-offset: 2px;
}
.magu-cms .magu-appointment .form :is(input, select, textarea)[aria-invalid="true"] { border-color: #ad302c; }
.magu-appointment .form .form-help, .magu-appointment .form .form-note { color: #625752; font-size: 13px; }
.magu-appointment .form .form-submit { gap: 9px; }
.magu-appointment .magu-appointment-response { font-size: 14px; color: #524541; margin: 0; }
.magu-cms .magu-appointment .form .btn[type=submit] {
  min-height: 46px; border-radius: var(--pb31-button_radius, 7px); padding: 12px 20px;
  letter-spacing: .015em; text-transform: none; font-size: 15px;
}
.magu-cms .magu-appointment .contact-side {
  min-width: 0; padding: var(--pb31-info_pad, clamp(20px, 3.4vw, 36px));
  border: 1px solid #e4d7d5; border-radius: var(--pb31-info_radius, 20px);
  background: var(--pb31-info_bg, #efe5e4); overflow-wrap: anywhere;
}
.magu-contact-side-heading .eyebrow { margin: 0 0 8px; color: var(--appointment-accent); }
.magu-contact-side-heading h2 { font-size: clamp(30px, 3.4vw, 43px); line-height: 1.06; margin: 0 0 10px; }
.magu-contact-side-heading p:last-child { font-size: 15px; line-height: 1.5; margin: 0; }
.magu-appointment .contact-side .info-list > div { border-color: var(--pb31-info_border, #d9cac7); }
.magu-cms .magu-appointment .contact-side .info-list dd {
  font-size: var(--pb31-info_value_size, 18px); color: var(--ink); overflow-wrap: anywhere;
}
.magu-appointment .contact-side .info-list dt { color: #5e504d; }
.magu-appointment .contact-side .info-list dd a:not(.link-arrow) { text-decoration: underline; text-underline-offset: .17em; }
.magu-cms .magu-contact-directions { background: #fffdfa; padding-block: clamp(28px, 4vw, 56px); }
.magu-cms .magu-contact-directions .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: stretch; }
.magu-cms .magu-contact-directions.mh-custom-gap .contact-grid { gap: var(--mh-gap); }
.magu-contact-directions .contact-card, .magu-contact-directions .map { min-width: 0; border-radius: 16px; }
.magu-contact-directions .contact-card { padding: clamp(20px, 3vw, 36px); }
.magu-contact-directions .contact-card h2 { font-size: clamp(29px, 3.8vw, 51px); margin: 7px 0 10px; overflow-wrap: anywhere; }
.magu-contact-directions .magu-directions-contact { margin-block: 12px; }
.magu-contact-directions .map, .magu-contact-directions .magu-map-gate, .magu-contact-directions .map iframe { min-height: 295px; }
.magu-contact-directions .map { box-shadow: none; }
.magu-cms .magu-contact-notes { padding-block: clamp(24px, 3.8vw, 52px); }
.magu-cms .magu-contact-notes .story-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.magu-cms .magu-contact-notes.mh-custom-gap .story-grid { gap: var(--mh-gap); }
.magu-contact-note-link { display: inline-block; margin-top: 8px; color: var(--clay); font-weight: 700; text-decoration: underline; text-underline-offset: .15em; }
@media (max-width: 1060px) {
  .magu-cms .magu-appointment {
    scroll-margin-top: max(94px, calc(min(var(--magu-logo-height-mobile, 44px), 42vh) + 28px));
    padding-top: var(--pb31-top_t, var(--pb31-top_d, 0px));
    padding-bottom: var(--pb31-bottom_t, var(--pb31-bottom_d, 42px));
  }
  .magu-cms .magu-appointment > .contact-grid { gap: var(--pb31-col_gap_t, var(--pb31-col_gap, 20px)); }
  .magu-cms .magu-appointment .section-head h2 { font-size: var(--pb31-title_size_t, var(--pb31-title_size_d, clamp(32px, 5vw, 49px))); }
}
@media (max-width: 820px) {
  .magu-cms .magu-appointment {
    padding-top: var(--pb31-top_m, var(--pb31-top_t, var(--pb31-top_d, 0px)));
    padding-bottom: var(--pb31-bottom_m, var(--pb31-bottom_t, var(--pb31-bottom_d, 36px)));
  }
  .magu-cms .magu-appointment.section > .contact-grid, .magu-cms .magu-contact-directions .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .magu-cms .magu-appointment > .contact-grid { gap: var(--pb31-col_gap_m, var(--pb31-col_gap_t, var(--pb31-col_gap, 16px))); }
  .magu-cms .magu-appointment .section-head h2 { font-size: var(--pb31-title_size_m, var(--pb31-title_size_t, var(--pb31-title_size_d, clamp(32px, 7vw, 43px)))); }
  .magu-cms .magu-appointment .section-head .lede { font-size: var(--pb31-body_size_m, var(--pb31-body_size_d, 16px)); }
}
@media (max-width: 620px) {
  .magu-cms .magu-appointment > .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .magu-cms .magu-appointment .form .btn[type=submit] { width: 100%; }
  .magu-contact-directions .map, .magu-contact-directions .magu-map-gate, .magu-contact-directions .map iframe { min-height: 255px; }
}
@media (max-width: 560px) {
  .magu-cms .magu-appointment > .contact-grid { width: calc(100% - 24px); }
}

/* V1.0.40.2 — The two sides of the contact section are optional and independent. */
.magu-cms .magu-appointment.magu-appointment-solo > .contact-grid {
  grid-template-columns: minmax(0, 1fr);
}
.magu-contact-left-block {
  min-width: 0;
  container-type: inline-size;
}
.magu-cms .magu-contact-left-block > :is(.section, .magu-native) {
  max-width: 100%;
  margin-inline: 0;
}
.magu-cms .magu-contact-left-block > .section {
  padding-block: min(4vw, 30px);
}
.magu-cms .magu-contact-left-block :is(.shell, .wrap) {
  width: 100%;
  padding-inline: 0;
}
.magu-cms .magu-contact-left-block > .ss-layout-full {
  width: 100%;
  margin-inline: 0;
}
@container (max-width: 690px) {
  .magu-contact-left-block :is(.section-head, .text-image, .editorial, .hero-grid, .cta-body, .contact-grid, .about-address, .price-hero-grid) {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* V1.0.40.5: Align the embedded photo and the adjacent salon card.
   Keep the usual padding if the photo is a standalone module or the only column. */
.magu-cms .magu-appointment > .contact-grid:has(> .contact-side)
  > .magu-contact-left-block > .section:has(> .wrap > .image-full) {
  padding-top: 0;
}

/* V1.0.40.6: Match the side card to the portrait without resizing the photo.
   Below the existing stacking breakpoint, both columns retain natural height. */
@media (min-width: 821px) {
  .magu-cms .magu-appointment > .contact-grid:has(> .magu-contact-left-block > .section > .wrap > .image-full) > .contact-side {
    align-self: stretch;
  }
  .magu-cms .magu-appointment > .contact-grid:has(> .contact-side)
    > .magu-contact-left-block > .section:has(> .wrap > .image-full) {
    padding-bottom: 0;
  }
}
