.intake-dialog {
  --intake-ink: #171815;
  --intake-cream: #f5f3eb;
  --intake-yellow: #e4f089;
  position: fixed;
  inset: 0;
  width: min(1050px, calc(100vw - 48px));
  height: min(820px, calc(100dvh - 48px));
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 243, 235, .2);
  border-radius: 12px;
  color: var(--intake-ink);
  background: var(--intake-cream);
  box-shadow: 0 30px 130px #0007;
  font: inherit;
}
.intake-dialog::backdrop { background: #171815bd; backdrop-filter: blur(9px); }
.intake-dialog *, .intake-dialog *::before, .intake-dialog *::after { box-sizing: border-box; }
.intake-dialog button, .intake-dialog a { -webkit-tap-highlight-color: transparent; }
.intake-dialog a { color: inherit; }
.intake-dialog :is(a, button):focus-visible { outline: 3px solid #9a702c; outline-offset: 4px; }
.intake-shell { height: 100%; display: flex; flex-direction: column; }
.intake-header { display: flex; align-items: center; gap: 24px; flex: 0 0 70px; padding: 10px 18px 10px 28px; background: var(--intake-ink); color: var(--intake-cream); }
.intake-wordmark { font-size: 19px; font-weight: 650; letter-spacing: -1px; line-height: 1; }
.intake-wordmark-dot { color: var(--intake-yellow); }
.intake-header-caption { margin-left: auto; color: #b8baad; font-size: 9px; letter-spacing: 1.7px; }
.intake-close { display: grid; width: 44px; height: 44px; flex-shrink: 0; place-items: center; padding: 0; border: 1px solid #f5f3eb30; border-radius: 50%; color: var(--intake-cream); background: transparent; cursor: pointer; transition: background .2s, border-color .2s; }
.intake-close:hover { background: #ffffff12; border-color: #f5f3eb99; }
.intake-close svg { width: 20px; height: 20px; }
.intake-header .intake-close:focus-visible { outline-color: var(--intake-yellow); }
.intake-body { display: grid; grid-template-columns: 310px minmax(0, 1fr); flex: 1 1 0; min-height: 0; }
.intake-introduction { display: flex; flex-direction: column; padding: 32px 28px 24px; color: var(--intake-cream); background: var(--intake-ink); overflow-y: auto; }
.intake-eyebrow { display: flex; align-items: center; gap: 8px; color: var(--intake-yellow); font-size: 9px; font-weight: 550; line-height: 1.5; letter-spacing: 1.6px; }
.intake-eyebrow > span { display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.intake-introduction h2 { margin: 20px 0 15px; color: inherit; font: inherit; font-size: 36px; font-weight: 450; letter-spacing: -1.6px; line-height: 1.1; }
.intake-intro-copy { margin: 0; color: #c3c6b9; font-size: 13px; line-height: 1.7; }
.intake-steps { list-style: none; margin: 28px 0; padding: 0; }
.intake-steps li { display: flex; align-items: flex-start; gap: 13px; padding: 18px 0; border-top: 1px solid #f5f3eb24; }
.intake-step-number { flex: 0 0 18px; padding-top: 1px; color: var(--intake-yellow); font-size: 10px; line-height: 1.7; }
.intake-steps h3 { margin: 0 0 5px; color: inherit; font: inherit; font-weight: 500; font-size: 13px; line-height: 1.5; letter-spacing: -.1px; }
.intake-steps p { margin: 0; color: #b8bcaf; font-size: 11px; line-height: 1.65; }
.intake-clinical-note { margin: auto 0 0; color: #acb09f; font-size: 10px; line-height: 1.7; }
.intake-form-area { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: white; }
.intake-form-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex: 0 0 61px; margin: 0 26px; border-bottom: 1px solid #e3e4db; font-size: 15px; font-weight: 500; letter-spacing: -.35px; }
.intake-form-caption { color: #6c7163; font-size: 8px; font-weight: 500; letter-spacing: 1.2px; }
.intake-frame-wrap { position: relative; flex: 1 1 0; min-height: 0; background: #fff; }
.intake-frame { display: block; width: 100%; height: 100%; margin: 0; border: 0; background: #fff; opacity: 0; transition: opacity .2s; }
.intake-frame-ready { opacity: 1; }
.intake-loading { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 25px; color: #545b4c; font-size: 13px; text-align: center; }
.intake-loading[hidden] { display: none; }
.intake-loader { width: 32px; height: 32px; margin-bottom: 5px; border: 1px solid #d8ded0; border-top-color: #38422a; border-radius: 50%; animation: intake-spin 1.1s linear infinite; }
.intake-loading a { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 48px; padding: 13px 22px; border: 1px solid #171815; border-radius: 4px; background: var(--intake-ink); color: var(--intake-cream); font-size: 12px; font-weight: 550; text-decoration: none; }
.intake-loading a:hover { background: #30332a; }
.intake-loading a span { font-size: 17px; font-weight: 400; }
.intake-loading-note { max-width: 310px; margin: -5px 0 5px; color: #656b5d; font-size: 12px; line-height: 1.7; }
.intake-loading-delayed .intake-loading-title { max-width: 310px; color: var(--intake-ink); font-size: 29px; line-height: 1.13; letter-spacing: -1px; }
.intake-loader[hidden], .intake-loading-note[hidden] { display: none; }
.intake-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex: 0 0 77px; padding: 13px 26px; background: var(--intake-cream); border-top: 1px solid #dddcd3; }
.intake-phone { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.intake-phone svg { width: 20px; height: 20px; }
.intake-phone > span { display: flex; flex-direction: column; gap: 4px; }
.intake-phone small { font-size: 9px; color: #62665a; line-height: 1.3; }
.intake-phone strong { font-size: 13px; font-weight: 550; letter-spacing: -.25px; line-height: 1.3; }
.intake-fallback { display: inline-flex; align-items: center; gap: 16px; min-height: 46px; padding: 11px 15px; border: 1px solid #cbcec0; border-radius: 4px; background: var(--intake-yellow); font-size: 11px; font-weight: 550; line-height: 1.5; text-decoration: none; }
.intake-fallback:hover { background: #d9e67e; }
.intake-fallback span { font-size: 16px; text-decoration: none; }
@keyframes intake-spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .intake-dialog { width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .intake-header { flex-basis: 64px; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 15px 10px 20px; }
  .intake-wordmark { font-size: 18px; }
  .intake-header-caption { font-size: 7px; letter-spacing: 1px; }
  .intake-close { width: 44px; height: 44px; }
  .intake-body { display: flex; flex-direction: column; }
  .intake-introduction { display: block; flex: 0 0 auto; padding: 15px 22px 22px; overflow: visible; }
  .intake-eyebrow, .intake-steps, .intake-clinical-note { display: none; }
  .intake-introduction h2 { margin: 0 0 8px; font-size: 30px; letter-spacing: -1.1px; }
  .intake-introduction h2 br { display: none; }
  .intake-intro-copy { max-width: 380px; font-size: 11px; line-height: 1.6; }
  .intake-form-area { flex: 1 1 0; }
  .intake-form-heading { flex-basis: 47px; margin: 0 22px; font-size: 13px; }
  .intake-form-caption { font-size: 7px; letter-spacing: .8px; }
  .intake-footer { flex-basis: 73px; gap: 14px; padding: 10px 20px max(10px, env(safe-area-inset-bottom)); }
  .intake-phone { gap: 8px; flex-shrink: 0; }
  .intake-phone svg { width: 16px; height: 16px; }
  .intake-phone small { font-size: 8px; }
  .intake-phone strong { font-size: 11px; }
  .intake-fallback { max-width: 170px; gap: 9px; padding: 9px 11px; font-size: 9px; line-height: 1.6; }
}
@media (max-width: 360px) {
  .intake-header-caption { display: none; }
  .intake-close { margin-left: auto; }
  .intake-introduction h2 { font-size: 27px; }
  .intake-form-caption { display: none; }
  .intake-footer { padding-left: 14px; padding-right: 14px; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .intake-close, .intake-frame { transition: none; }
  .intake-loader { animation: none; border-color: #a5ae98; }
}
