/* Scoped HighLevel form layout; existing theme sections are unchanged. */
html.bta-form-open { overflow: hidden; }
.bta-form-dialog { width: min(780px, calc(100% - 32px)); max-width: none; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 1px solid #d9d9d9; border-radius: 18px; background: #fff; color: #17191d; box-shadow: 0 24px 100px #0006; overscroll-behavior: contain; }
.bta-form-dialog:not([open]) { display: none; }
.bta-form-dialog[open] { display: flex; flex-direction: column; }
.bta-form-dialog::backdrop { background: rgba(8, 10, 13, .76); backdrop-filter: blur(4px); }
.bta-form-dialog__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; background: var(--ink, #151619); color: #fff; flex-shrink: 0; }
.bta-form-dialog__eyebrow { margin: 0 0 5px; color: var(--gold-hi, #e9be54); font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.bta-form-dialog__header h2 { margin: 0; font-size: clamp(21px, 3vw, 28px); line-height: 1.2; color: #fff; }
.bta-form-close { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid #ffffff4d; border-radius: 50%; color: #fff; background: transparent; cursor: pointer; }
.bta-form-close:hover { background: #ffffff1a; }
.bta-form-dialog__body { min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 24px; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.bta-form-selection { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); gap: 14px; padding: 16px; background: #f6f3eb; border: 1px solid #e8e0cc; border-radius: 12px; }
.bta-form-selection > div { min-width: 0; }
.bta-form-selection label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 700; color: #272b30; }
.bta-form-selection input, .bta-form-selection select { display: block; box-sizing: border-box; width: 100%; max-width: 100%; min-height: 46px; margin: 0; padding: 10px 12px; border: 1px solid #d3cdbf; border-radius: 7px; background: #fff; color: #17191d; font: inherit; font-size: 16px; line-height: 1.4; }
.bta-form-selection select:disabled { opacity: 1; color: #17191d; -webkit-text-fill-color: #17191d; }
.bta-form-selection input[readonly] { background: #efebe1; font-weight: 700; cursor: default; }
.bta-form-help { margin: 10px 0 12px; font-size: 12px; line-height: 1.5; color: #666a70; }
.bta-form-status { margin: 16px 0; color: #51555b; font-size: 14px; }
.bta-form-status[hidden] { display: none; }
.bta-ghl-frame { display: block; width: 100%; height: 760px; min-height: 360px; border: 0; background: #fff; border-radius: 8px; }
.bta-ghl-frame--contact { height: 810px; margin-top: 20px; }
.bta-form-fallback { margin: 14px 0 0; text-align: center; font-size: 13px; }
.bta-form-fallback a { color: var(--gold-ink, #675012); text-decoration: underline; text-underline-offset: 3px; }
.bta-form-dialog :focus-visible { outline: 3px solid var(--gold-lo, #b98815); outline-offset: 3px; }
@media (max-width: 540px) {
 .bta-form-dialog { width: calc(100% - 16px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); border-radius: 14px; }
 .bta-form-dialog__header { padding: 18px 16px; gap: 12px; }
 .bta-form-dialog__body { padding: 14px 10px; }
 .bta-form-selection { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 12px; }
 .bta-form-help { padding-inline: 3px; }
}