/* Load AFTER the site's style.css. All rules belong to this component. */
#bel-callback {
  --bc-bg: #272727;
  --bc-panel: #303030;
  --bc-ink: #f2efeb;
  --bc-muted: #bcb6af;
  --bc-accent: #b19777;
  --bc-line: #81786d;
  --bc-error: #ffb6a5;
  box-sizing: border-box;
  position: relative;
  inset: auto;
  width: min(540px, calc(100% - 32px));
  max-width: 540px;
  max-height: none;
  margin: 32px auto;
  padding: 48px;
  border: 1px solid var(--bc-line);
  border-top: 2px solid var(--bc-accent);
  border-radius: 0;
  background: var(--bc-bg);
  color: var(--bc-ink);
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
  scrollbar-width: thin;
  scrollbar-color: var(--bc-accent) var(--bc-bg);
  color-scheme: dark;
}
#bel-callback *, #bel-callback *::before, #bel-callback *::after { box-sizing: border-box; }
#bel-callback:not([open]), #bel-callback [hidden] { display: none !important; }
#bel-callback.bc-enhanced {
  position: fixed;
  inset: 0;
  margin: auto;
  max-height: calc(100vh - 32px);
  max-height: min(calc(100dvh - 32px), 900px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 24px 72px rgba(0, 0, 0, .4);
}
#bel-callback::backdrop { background: rgba(12, 12, 12, .8); }
html.bc-scroll-locked { overflow: hidden !important; scrollbar-gutter: stable; }
#bel-callback::selection, #bel-callback ::selection { color: #161616; background: var(--bc-accent); }
#bel-callback :focus-visible, #bel-callback input:focus {
  outline: 2px solid var(--bc-accent);
  outline-offset: 4px;
}
#bel-callback .bc-title {
  margin: 0 32px 14px 0;
  color: var(--bc-ink);
  font-family: 'Oswald', sans-serif;
  font-size: clamp(28px, 6vw, 36px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: .015em;
}
#bel-callback .bc-intro, #bel-callback .bc-success p {
  margin: 0 0 28px;
  color: var(--bc-muted);
  font: inherit;
}
#bel-callback .bc-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--bc-muted);
  cursor: pointer;
}
#bel-callback:not(.bc-enhanced) .bc-close,
#bel-callback:not(.bc-enhanced) .bc-secondary { display: none; }
#bel-callback .bc-close:hover { border-color: var(--bc-line); color: var(--bc-ink); background: var(--bc-panel); }
#bel-callback .bc-field { margin-bottom: 20px; }
#bel-callback .bc-field > label { display: block; margin-bottom: 6px; color: var(--bc-ink); font-size: 14px; }
#bel-callback .bc-required { color: var(--bc-accent); }
#bel-callback input[type="tel"], #bel-callback input[type="email"] {
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  height: auto;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--bc-line);
  border-radius: 0;
  background: var(--bc-panel);
  color: var(--bc-ink);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  caret-color: var(--bc-accent);
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}
#bel-callback input::placeholder { color: var(--bc-muted); font: inherit; opacity: 1; }
#bel-callback input[aria-invalid="true"] { border-color: var(--bc-error); }
#bel-callback .bc-error { display: block; margin-top: 6px; color: var(--bc-error); font-size: 13px; line-height: 1.5; }
#bel-callback .bc-error:empty { display: none; }
#bel-callback .bc-consent { margin: 24px 0; }
#bel-callback .bc-consent label { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
#bel-callback .bc-consent label > span { display: block; min-width: 0; color: var(--bc-muted); font-size: 12px; line-height: 1.7; }
#bel-callback input[type="checkbox"] { flex: 0 0 18px; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--bc-accent); cursor: pointer; }
#bel-callback a { display: inline; color: #d4b995; text-decoration: underline; text-underline-offset: 3px; }
#bel-callback a:hover { color: var(--bc-ink); }
#bel-callback .bc-submit, #bel-callback .bc-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 20px;
  border: 1px solid var(--bc-accent);
  border-radius: 0;
  background: var(--bc-accent);
  color: #171717;
  font-family: 'Oswald', sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
#bel-callback .bc-submit:hover, #bel-callback .bc-secondary:hover { background: #c9af8e; border-color: #c9af8e; color: #171717; }
#bel-callback .bc-submit:disabled { cursor: wait; background: #7c6e5d; border-color: #7c6e5d; color: #fff; }
#bel-callback .bc-note { margin: 12px 0 0; color: var(--bc-muted); font-size: 11px; line-height: 1.6; }
#bel-callback .bc-status { margin: 22px 0; padding: 12px 14px; border: 1px solid var(--bc-error); color: var(--bc-error); font-size: 14px; }
#bel-callback .bc-trap { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
#bel-callback .bc-success { margin-top: 28px; text-align: center; }
#bel-callback .bc-success-icon { display: block; margin: 0 auto 22px; color: var(--bc-accent); }
#bel-callback .bc-success h3 { margin: 0 0 12px; font-family: 'Oswald', sans-serif; font-size: 28px; color: var(--bc-ink); }
#bel-callback .bc-success p { margin-right: auto; margin-left: auto; max-width: 38ch; }
#bel-callback .bc-secondary { justify-content: center; background: transparent; color: var(--bc-ink); }
#bel-callback .bc-smartcaptcha { min-height: 100px; margin: 0 0 20px; }
@media (max-width: 560px) {
  #bel-callback { width: calc(100% - 24px); padding: 40px 22px 28px; }
  #bel-callback.bc-enhanced { max-height: calc(100dvh - 24px); }
  #bel-callback .bc-close { top: 8px; right: 8px; }
}
/* Fixed phone trigger. p-fixed is local to this button; Bootstrap is not needed. */
.bc-fab.p-fixed {
  --bc-fab-right: 24px;
  --bc-fab-bottom: 100px; /* Leaves room for the site's existing scroll-to-top. */
  --bc-fab-size: 64px;
  box-sizing: border-box;
  position: fixed;
  right: calc(var(--bc-fab-right) + env(safe-area-inset-right, 0px));
  bottom: calc(var(--bc-fab-bottom) + env(safe-area-inset-bottom, 0px));
  z-index: 9990;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bc-fab-size);
  height: var(--bc-fab-size);
  margin: 0;
  padding: 0;
  border: 1px solid #d1b695;
  border-radius: 50%;
  background: #b19777;
  color: #171717;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 160ms cubic-bezier(.23, 1, .32, 1), background-color 160ms ease, color 160ms ease;
}
.bc-fab.p-fixed::before, .bc-fab.p-fixed::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #b19777;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  animation: bc-fab-pulse 1500ms cubic-bezier(.23, 1, .32, 1) 3;
}
.bc-fab.p-fixed::after { animation-delay: 300ms; }
.bc-fab .bc-fab__icon {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  color: inherit;
  transform-origin: center;
  animation: bc-phone-ring 1600ms ease-in-out 3;
}
.bc-fab.p-fixed:focus-visible { outline: 2px solid #d1b695; outline-offset: 6px; }
.bc-fab.p-fixed:active { transform: scale(.95); }
.bc-fab .bc-fab__label {
  position: absolute;
  right: calc(100% + 16px);
  padding: 9px 12px;
  border: 1px solid #81786d;
  background: #272727;
  color: #f2efeb;
  font: 400 13px/1.5 'Montserrat', sans-serif;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(4px);
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms cubic-bezier(.23, 1, .32, 1);
}
.bc-fab.p-fixed:focus-visible .bc-fab__label { opacity: 1; transform: none; }
.bc-fab.p-fixed[aria-expanded="true"]::before,
.bc-fab.p-fixed[aria-expanded="true"]::after,
.bc-fab.p-fixed[aria-expanded="true"] .bc-fab__icon { animation: none; }
@media (hover: hover) and (pointer: fine) {
  .bc-fab.p-fixed:hover { background: #c9af8e; color: #171717; transform: translateY(-2px); }
  .bc-fab.p-fixed:hover .bc-fab__label { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .bc-fab.p-fixed { --bc-fab-size: 56px; --bc-fab-right: 20px; --bc-fab-bottom: 96px; }
}
@keyframes bc-fab-pulse {
  0% { transform: scale(1); opacity: .55; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes bc-phone-ring {
  0%, 40%, 100% { transform: rotate(0); }
  8%, 24% { transform: rotate(-12deg); }
  16%, 32% { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  #bel-callback *, #bel-callback *::before, #bel-callback *::after { transition: none !important; animation: none !important; }
  .bc-fab.p-fixed, .bc-fab.p-fixed::before, .bc-fab.p-fixed::after,
  .bc-fab .bc-fab__icon, .bc-fab .bc-fab__label { transition: none !important; animation: none !important; }
  .bc-fab.p-fixed:hover, .bc-fab.p-fixed:active { transform: none; }
}
