/* Beyond – Quiet Luxury sitewide layer: procedure-page heroes. */

/* ---------- Shared type ---------- */
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type h1.bde-heading {
  font-size: clamp(2.125rem, 1.3rem + 2.1vw, 3.25rem) !important; line-height: 1.08 !important; letter-spacing: -0.03em !important; text-wrap: balance; max-width: 13.5em; margin: 0 !important; text-align: left !important;
}
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type h1.bde-heading::before { content: ""; display: block; width: 48px; height: 1px; background: currentColor; opacity: .5; margin: 0 0 clamp(20px, 2.4vw, 32px); }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > h1.bde-heading ~ :is(.bde-text, .bde-rich-text) { font-size: 1rem !important; line-height: 1.7 !important; color: rgba(245, 241, 232, .8) !important; max-width: 33em; text-align: left !important; margin-top: clamp(14px, 1.6vw, 20px) !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > h1.bde-heading + :is(.bde-text, .bde-rich-text) { margin-top: clamp(20px, 2.2vw, 30px) !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-rich-text :is(strong, b) { font-weight: 500; color: #f5f1e8; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-rich-text ul { list-style: none; padding: 0 !important; margin: 18px 0 0 !important; border-top: 1px solid rgba(245, 241, 232, .18); }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-rich-text ul li { position: relative; margin: 0 !important; padding: 10px 0 10px 24px !important; border-bottom: 1px solid rgba(245, 241, 232, .18); font-size: .9375rem; line-height: 1.5; text-align: left; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-rich-text ul li::before { content: ""; position: absolute; left: 2px; top: 1.35em; width: 10px; height: 1px; background: currentColor; opacity: .6; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > :is(.bde-div, .bde-button):last-child { margin-top: clamp(24px, 2.6vw, 34px) !important; }

/* ---------- A. Editorial split: text panel + full-height photograph ---------- */
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(> .section-container > .bde-columns > .bde-column > img.bde-image2:only-child) { background-color: #141c14 !important; overflow: hidden; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(> .section-container > .bde-columns > .bde-column > img.bde-image2:only-child) > .section-container { max-width: none !important; width: 100% !important; padding: 0 !important; min-height: 0 !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns:has(> .bde-column > img.bde-image2:only-child) {
  display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; align-items: stretch !important; min-height: clamp(540px, 76vh, 760px);
}
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns:has(> .bde-column > img.bde-image2:only-child) > .bde-column:not(:has(> img.bde-image2:only-child)) {
  width: auto !important; max-width: none !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: flex-start !important; text-align: left !important;
  padding: clamp(56px, 6vw, 104px) clamp(32px, 5vw, 80px) clamp(56px, 6vw, 104px) max(24px, calc((100vw - 1195px) / 2)) !important;
}
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column:has(> img.bde-image2:only-child) { width: auto !important; max-width: none !important; padding: 0 !important; margin: 0 !important; position: relative; min-height: 320px; background: #20251b !important; border-radius: 0 !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column > img.bde-image2:only-child {
  position: absolute; inset: 0; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; aspect-ratio: auto !important; object-fit: cover !important; object-position: center 30%; border-radius: 0 !important; filter: saturate(.9);
}
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column:has(> img.bde-image2:only-child)::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(20, 28, 20, .38) 0%, rgba(20, 28, 20, 0) 26%); }

/* ---------- B. Photograph or film behind the copy, enquiry panel on the right ---------- */
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-background-overlay { background: linear-gradient(90deg, rgba(20, 28, 20, .92) 0%, rgba(20, 28, 20, .78) 46%, rgba(20, 28, 20, .5) 100%) !important; opacity: 1 !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-container { min-height: clamp(600px, 82vh, 820px) !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-container > .bde-columns { align-items: center !important; column-gap: clamp(32px, 5vw, 88px) !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-container > .bde-columns > .bde-column:not(:has(.bde-form-builder)) { align-items: flex-start !important; text-align: left !important; justify-content: center !important; }

/* Enquiry panel over photography or film: a solid cream card with the sitewide form styling */
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder { background: transparent !important; border: 0 !important; padding: 0 !important; box-shadow: none !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder form.breakdance-form {
  --ql-hair: #ddd8cc; --ql-fg: #292c27; --ql-muted: #5e6159; --ql-card: #fcfaf6; --ql-btn-bg: #20251b; --ql-btn-fg: #fff; --ql-btn-bg-h: #30372e;
  --bde-headings-color: #292c27; --bde-body-text-color: #292c27; --bde-links-color: #292c27; color: #292c27 !important;
  background: #f6f3ed !important; border: 0 !important; border-radius: 2px !important; box-shadow: none !important; padding: clamp(22px, 2.4vw, 34px) !important; width: 100% !important; box-sizing: border-box;
}
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-field__label { color: #5e6159 !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(.breakdance-form-field__input, select, textarea) { background-color: #fff !important; border: 1px solid #ddd8cc !important; color: #292c27 !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) label, html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-field__description { color: #5e6159 !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) input { background: #fff; border-color: #c9c4b6; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) input:checked { background: #20251b !important; border-color: #20251b !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(.breakdance-form-checkbox, .breakdance-form-radio) input::after { border-color: #fff !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-footer .button-atom { background: #20251b !important; border-color: #20251b !important; color: #fff !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-footer .button-atom:hover { background: #30372e !important; border-color: #30372e !important; }

@media (max-width: 899px) {
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns:has(> .bde-column > img.bde-image2:only-child) { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column:has(> img.bde-image2:only-child) { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column:has(> img.bde-image2:only-child)::after { background: linear-gradient(0deg, rgba(20, 28, 20, .55) 0%, rgba(20, 28, 20, 0) 40%); }
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns:has(> .bde-column > img.bde-image2:only-child) > .bde-column:not(:has(> img.bde-image2:only-child)) { padding: 36px 20px 48px !important; }
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-container { min-height: 0 !important; }
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-background-overlay { background: rgba(20, 28, 20, .82) !important; }
}

/* form heroes: keep the whole enquiry panel inside the first screen */
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(.bde-form-builder) > .section-container { padding-top: clamp(36px, 4vw, 60px) !important; padding-bottom: clamp(36px, 4vw, 60px) !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder form.breakdance-form { row-gap: 12px !important; padding: clamp(20px, 2vw, 28px) !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder :is(input.breakdance-form-field__input, select.breakdance-form-field__input) { min-height: 44px !important; height: 44px !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder textarea.breakdance-form-field__input { min-height: 64px !important; height: 64px; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-field__label { margin-bottom: 6px !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder .breakdance-form-footer .button-atom { min-height: 50px !important; }
html body.bac-ql.bac-ql .bde-section:has(> .section-background-overlay) .bde-form-builder select.breakdance-form-field__input { padding-top: 0 !important; padding-bottom: 0 !important; line-height: 42px !important; }

/* fixes after review: the split never inherits a fixed section height, and the photo column always spans the screen on phones */
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(> .section-container > .bde-columns > .bde-column > img.bde-image2:only-child),
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type:has(> .section-container > .bde-columns > .bde-column > img.bde-image2:only-child) > .section-container { height: auto !important; min-height: 0 !important; justify-content: flex-start !important; align-items: stretch !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-div:last-child { align-items: flex-start !important; justify-content: flex-start !important; gap: 12px !important; }
html body.bac-ql.bac-ql-treatment .bde-section:first-of-type .bde-column > .bde-div:last-child > * { margin-left: 0 !important; margin-right: 0 !important; }
@media (max-width: 899px) {
  html body.bac-ql.bac-ql-treatment .bde-section:first-of-type > .section-container > .bde-columns > .bde-column:has(> img.bde-image2:only-child) { width: 100% !important; justify-self: stretch; }
}
