/* The booking block after the DentaCare reference: a mint card, the clinic's photo filling its right side and melting into
   the mint, the contacts on the left and the form on a raised card over the photo. The photo is a token set from the
   clinic settings (clinic.php); without it the card stays mint. */
.brxe-section.st-contact {
  position: relative; isolation: isolate; overflow: hidden;
  display: block; width: auto; margin: var(--space-sm); padding: var(--space-3xl) 0;
  border-radius: var(--radius-lg); background: var(--color-mint); color: var(--color-ink);
  font-family: var(--font-body); font-weight: 400;
}
.brxe-section.st-contact::before {
  content: ""; position: absolute; inset: 0 0 0 auto; z-index: -1; width: 52%;
  background-image: var(--st-contact-photo, none); background-size: cover; background-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%); mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
.brxe-section.st-contact .brxe-block.st-contact__form { background: var(--color-card); box-shadow: 0 24px 48px -28px color-mix(in oklab, var(--color-deep) 45%, transparent); }
.brxe-container.st-contact__inner {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-2xl); align-items: start;
  width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: calc(var(--gutter) + var(--space-sm));
}
.brxe-block.st-contact__copy { display: flex; flex-direction: column; gap: var(--space-lg); min-width: 0; }
.brxe-heading.st-contact__title {
  max-width: 16ch; margin: 0;
  font-family: var(--font-display); font-size: var(--text-section); font-weight: var(--display-weight); font-synthesis: none;
  letter-spacing: var(--tracking-display); line-height: 1.08; text-wrap: balance; overflow-wrap: break-word; min-width: 0; color: var(--color-ink);
}
.brxe-text-basic.st-contact__lede { max-width: 36ch; margin: 0; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); }
.st-contact .brxe-shortcode { min-width: 0; }

.st-contacts { display: grid; gap: var(--space-lg); margin: var(--space-md) 0 0; padding: 0; list-style: none; }
.st-contacts__row { display: flex; align-items: flex-start; gap: var(--space-md); margin: 0; }
.st-contacts__icon { display: inline-flex; flex: 0 0 auto; padding-top: var(--space-3xs); color: var(--color-accent); }
.st-contacts__svg { display: block; width: 24px; height: 24px; }
.st-contacts__body { display: flex; flex-direction: column; gap: var(--space-3xs); min-width: 0; font-size: var(--text-md); line-height: 1.5; }
.st-contacts__line { display: block; overflow-wrap: break-word; }
.st-contacts__link { color: var(--color-ink); text-decoration: underline; text-decoration-color: color-mix(in oklab, var(--color-ink) 40%, transparent); text-underline-offset: 0.2em; }
.st-contacts__route { margin-left: var(--space-xs); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) {
  .st-contacts__link:hover { text-decoration-color: var(--color-ink); }
}
.st-contacts__link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; border-radius: var(--space-3xs); }

/* The form card. Fluent Forms prints its own styles; these rules sit above them. */
.brxe-block.st-contact__form { min-width: 0; padding: var(--space-xl); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); }
.st-contact__form .fluentform .ff-el-group { margin-bottom: var(--space-md); }
.st-contact__form .fluentform .ff-el-input--label label { margin-bottom: var(--space-xs); font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-strong); color: var(--color-ink); }
.st-contact__form .fluentform .ff-el-form-control {
  min-height: 52px; padding: 0 var(--space-md); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-md);
  background: var(--color-paper); box-shadow: none; font-family: var(--font-body); font-size: var(--text-md); color: var(--color-ink);
}
.st-contact__form .fluentform textarea.ff-el-form-control { min-height: 120px; padding-block: var(--space-sm); }
.st-contact__form .fluentform .ff-el-form-control:focus { border-color: var(--color-focus); outline: 2px solid var(--color-focus); outline-offset: 1px; box-shadow: none; }
.st-contact__form .fluentform .ff-btn.ff-btn-submit {
  min-height: 52px; padding: 0 var(--space-lg); border: var(--rule-hair) solid var(--color-deep); border-radius: var(--radius-pill);
  background: var(--color-deep); box-shadow: none; font-family: var(--font-body); font-size: var(--text-md); font-weight: var(--weight-strong); color: var(--color-on-deep);
  transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.st-contact__form .fluentform .ff-btn.ff-btn-submit:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .st-contact__form .fluentform .ff-btn.ff-btn-submit:hover { background: var(--color-deep-2); border-color: var(--color-deep-2); }
}
.st-contact__form .fluentform .ff-btn.ff-btn-submit:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

@media (max-width: 60rem) {
  .brxe-section.st-contact { margin: var(--space-xs); border-radius: var(--radius-card); padding: var(--space-2xl) 0; }
  .brxe-section.st-contact::before { display: none; }
  .brxe-container.st-contact__inner { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); padding-inline: var(--gutter); }
  .brxe-block.st-contact__form { padding: var(--space-lg); }
}

/* Right under a page banner the booking card keeps a full section gap, not the 12 px frame margin. */
.brxe-section.st-pagehero + .brxe-section.st-contact { margin-top: var(--space-3xl); }

/* Placeholders meet 4.5:1 on the field (Fluent Forms' default is lighter). */
.st-contact__form .fluentform .ff-el-form-control::placeholder { color: var(--color-muted); opacity: 1; }
