/* Personal and Commercial intake choices, September 30, 2026. */
.sw-intake-dialog { max-width: min(640px, calc(100vw - 24px)); }
.sw-intake-dialog__body.sw-intake-choices { min-height: 0; height: auto; padding: 24px; overflow-y: auto; }
.sw-intake-choices__intro { margin: 0 0 18px; color: var(--sw-pine); }
.sw-intake-choices__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sw-intake-choice { display: flex; flex-direction: column; gap: 12px; padding: 24px; border: 1.5px solid var(--sw-lake-border); border-radius: var(--sw-radius); background: #fff; color: var(--sw-pine); text-decoration: none; }
.sw-intake-choice:hover { background: var(--sw-lake-soft); border-color: var(--sw-lake); color: var(--sw-pine); text-decoration: none; }
.sw-intake-choice strong { font-family: var(--sw-font-heading); font-size: 1.35rem; }
.sw-intake-choice span { font-size: .9375rem; }
.sw-intake-choice__action { margin-top: auto; color: var(--sw-lake); font-weight: 700; padding-top: 6px; }
.sw-intake-choice:focus-visible, .sw-header-quote:focus-visible, .hp-coverage-cta button:focus-visible { outline: 3px solid var(--sw-lake); outline-offset: 4px; }
.hp-coverage-tier__name a { color: inherit; text-decoration: none; }
.hp-coverage-tier__name a:hover, .hp-coverage-tier__name a:focus-visible { text-decoration: underline; }
.hp-coverage-cta button.demo-btn { pointer-events: auto; width: 100%; cursor: pointer; font-family: inherit; }
.demo-header .demo-container { gap: 16px; }
.demo-header__actions { flex-shrink: 0; }
.sw-header-quote { cursor: pointer; white-space: nowrap; font-family: inherit; font-size: .875rem; padding: 10px 16px; }
@media (max-width: 1150px) {
    .demo-nav { display: none; }
    .demo-menu-toggle { display: flex; flex-shrink: 0; }
    .demo-nav.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; max-height: calc(100dvh - 64px); overflow-y: auto; background: var(--demo-bg); border-bottom: 1px solid var(--demo-border); padding: 16px 24px; box-shadow: var(--demo-shadow-lg); }
    .demo-nav.open .demo-nav__menu { position: static; box-shadow: none; border: none; padding: 0 0 0 16px; }
}
@media (max-width: 600px) {
    .demo-header .demo-container { padding-left: 12px; padding-right: 12px; gap: 10px; }
    .demo-logo { gap: 6px; }
    .demo-header__actions { gap: 6px; margin-left: auto; }
    .demo-header__actions .demo-btn--phone span { display: none; }
    .demo-header__actions .demo-btn--phone::before { content: 'Call'; }
    .demo-header__actions .demo-btn--phone, .sw-header-quote { font-size: .75rem; padding: 9px 10px; }
    .sw-intake-choices__grid { grid-template-columns: 1fr; }
    .sw-intake-dialog__body.sw-intake-choices { padding: 18px; }
    .sw-intake-choice { padding: 18px; gap: 8px; }
}
/* Preserve each provider's in-progress form while switching choices. */
.sw-intake-choices[hidden], .sw-intake-form[hidden], .sw-intake-form__frame[hidden] { display: none; }
.sw-intake-dialog--form { max-width: min(920px, calc(100vw - 24px)); }
.sw-intake-form { min-height: 0; overflow: auto; background: #fff; }
.sw-intake-form__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--sw-ice); border-bottom: 1px solid var(--sw-hairline); }
.sw-intake-form__toolbar button, .sw-intake-form__toolbar a { font: inherit; font-size: .875rem; color: var(--sw-lake); background: transparent; border: none; padding: 6px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sw-intake-form__toolbar button:focus-visible, .sw-intake-form__toolbar a:focus-visible { outline: 3px solid var(--sw-lake); outline-offset: 3px; }
.sw-intake-form__frame { display: block; border: 0; width: 100%; height: min(65dvh, 640px); min-height: 280px; background: #fff; }
@media (max-width: 600px) {
    .sw-intake-form__toolbar { align-items: flex-start; padding: 10px 16px; }
    .sw-intake-form__toolbar button, .sw-intake-form__toolbar a { font-size: .8125rem; }
    .sw-intake-form__frame { height: 60dvh; }
}
/* Allocate the remaining modal height to the provider's own scrolling viewport. */
.sw-intake-dialog--form { height: min(820px, calc(100dvh - 24px)); }
.sw-intake-dialog--form .sw-intake-dialog__panel { height: 100%; max-height: 100%; }
.sw-intake-dialog--form .sw-intake-dialog__header,
.sw-intake-dialog--form .sw-intake-dialog__footer,
.sw-intake-form__toolbar { flex-shrink: 0; }
.sw-intake-form:not([hidden]) { display: flex; flex: 1 1 auto; flex-direction: column; min-height: 0; overflow: hidden; }
.sw-intake-form__frame { flex: 1 1 auto; height: 0; min-height: 0; }
@media (max-height: 700px) {
    .sw-intake-dialog--form .sw-intake-dialog__header { padding: 10px 14px; align-items: center; }
    .sw-intake-dialog--form .sw-intake-dialog__header .sw-eyebrow { display: none; }
    .sw-intake-dialog--form .sw-intake-dialog__header h2 { font-size: 1.125rem; }
    .sw-intake-dialog--form .sw-intake-dialog__footer { display: none; }
    .sw-intake-form__toolbar { padding: 8px 14px; }
}
