html.ff-consultation-open { overflow: hidden; padding-inline-end: var(--ff-consultation-scrollbar, 0px); }
.ff-consultation-dialog {
  position: fixed;
  width: min(92vw, 720px);
  max-width: none;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #c49750;
  border-radius: 15px;
  color: #f8f6f2;
  background: linear-gradient(135deg, #172638, #0b111a 65%, #22180e);
  color-scheme: dark;
  box-shadow: 0 18px 65px #000a;
}
.ff-consultation-dialog[open] { animation: ff-consultation-enter .46s cubic-bezier(.22,.67,.3,1) both; }
.ff-consultation-dialog::backdrop { background: #03070cdb; backdrop-filter: blur(3px); }
@keyframes ff-consultation-enter {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
.ff-consultation-dialog-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: clamp(17px, 3.4vw, 36px);
  border-bottom: 1px solid #d3a05244;
  background: linear-gradient(120deg, #121d2a, #1b2a3a);
}
.ff-page .ff-consultation-dialog-header h2 { font-size: clamp(2rem, 4.4vw, 3.55rem); }
.ff-page .ff-consultation-dialog-header p { margin-top: 8px; color: #d3dce7; }
[data-consultation-close] {
  flex: none;
  min-width: 44px;
  min-height: 44px;
  padding: 2px;
  border: 1px solid #d8ad60;
  border-radius: 7px;
  background: #0d1620;
  color: #ffdf9b;
  font: 650 1.6rem/1 var(--sans);
  cursor: pointer;
}
[data-consultation-close]:hover { background: #263549; }
.ff-consultation-form { padding: clamp(16px, 3.4vw, 36px); }
.ff-consultation-form .jet-form-builder-row { margin-bottom: 13px; }
.ff-consultation-form .jet-form-builder__label { color: #f8f6f2; font-weight: 650; }
.ff-consultation-form :is(input:not([type=hidden]), select, textarea) {
  width: 100%;
  min-height: 44px;
  padding: 8px 11px;
  border: 1px solid #78889a;
  border-radius: 6px;
  color-scheme: dark;
  color: #fff7e9;
  background: #0d1926;
  font: inherit;
}
.ff-consultation-form textarea { min-height: 86px; }
.ff-page .ff-consultation-form h3 { margin-bottom: 18px; color: #ffd689; font-size: clamp(1.65rem, 2.8vw, 2.35rem); }
.ff-consultation-form .jet-form-builder button {
  min-height: 44px;
  margin: 3px 10px 4px 0;
  padding: 8px 14px;
  border: 1px solid #e7b761;
  border-radius: 6px;
  color: #221709;
  background: #ffd689;
  font: 700 .85rem/1.2 var(--sans);
  text-transform: uppercase;
  cursor: pointer;
}
.ff-consultation-form .jet-form-builder button[class*="prev"] { color: #f8e4c2; background: #131b27; }
.ff-consultation-form .jet-form-builder button:disabled { cursor: wait; opacity: .75; }
.ff-consultation-form .jet-form-builder-message--error { color: #fff1ed; background: #521f24; border: 1px solid #f2a6a6; }
.ff-page .ff-consultation-privacy { margin-top: 11px; color: #cbd3dd; font-size: .80rem; }
.ff-consultation-privacy a { text-decoration: underline; }
.ff-consultation-success { padding: 10px 0 13px; overflow-wrap: anywhere; }
.ff-consultation-success h2 { color: #ffdc97; font-size: clamp(2.1rem, 4vw, 3.6rem); }
.ff-page .ff-consultation-success p { margin: 12px 0 20px; color: #d3dce7; }
.ff-consultation-check {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border: 1px solid #f5b94670;
  border-radius: 50%;
  color: var(--light-gold);
  background: #f5b94212;
  font-size: 1.25rem;
}
.ff-page .ff-consultation-success .ff-eyebrow { margin-bottom: 9px; color: var(--light-gold); }
.ff-consultation-invitation { border-top: 1px solid #f5b94655; padding-top: 24px; margin-top: 24px; }
.ff-page .ff-consultation-success button { font-family: inherit; cursor: pointer; }
[data-consultation-schedule] { text-transform: uppercase; }
[data-consultation-back] { margin-bottom: 20px; }
[data-consultation-calendar-link] { text-decoration: underline !important; }
.ff-calendly:not(:empty) { height: 700px; width: 100%; margin-top: 18px; background: #fff; border-radius: 8px; overflow: hidden; }
.ff-calendly iframe { display: block; width: 100%; height: 100%; border: 0; }
.ff-consultation-dialog:has([data-consultation-booking]:not([hidden])) { width: min(96vw, 1120px); }
.ff-consultation-form [hidden] { display: none !important; }
.ff-consultation-page {
  min-height: 100vh;
  padding: clamp(22px, 5vw, 65px) 20px;
  background: radial-gradient(ellipse at 70% 8%, #183048, transparent 65%), #060a10;
}
.ff-consultation-shell { max-width: 850px; margin: auto; }
.ff-consultation-brand { display: block; margin-bottom: clamp(22px, 4vw, 42px); }
.ff-page .ff-consultation-shell h1 { font-size: clamp(2.65rem, 6.3vw, 5.5rem); }
.ff-consultation-shell .ff-consultation-form {
  border: 1px solid #d5a35492;
  border-radius: 12px;
  background: linear-gradient(135deg, #142337, #0b131e);
}
@media (max-width: 480px) {
  .ff-consultation-dialog { width: calc(100vw - 18px); max-height: 94dvh; }
  .ff-consultation-dialog:has([data-consultation-success]:not([hidden])) .ff-consultation-dialog-header {
    justify-content: flex-end;
    padding: 8px 16px;
  }
  .ff-consultation-dialog:has([data-consultation-success]:not([hidden])) .ff-consultation-dialog-header > div {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ff-consultation-dialog[open] { animation: none; }
}
