.pfs-route { box-sizing: border-box; width: 100%; max-width: 1200px; min-width: 0; margin: 2rem auto; padding: 0 1rem; }
/* Long footer contact links must also wrap on the plugin's permanent pages. */
body.pfs-public-route :is(.elementor-location-footer, footer) .elementor-widget-text-editor { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
body.pfs-public-route :is(.elementor-location-footer, footer) .elementor-widget-text-editor :is(li, a) { white-space: normal; overflow-wrap: anywhere; }
.pfs-form { --pfs-blue: #25496b; --pfs-ink: #182c40; --pfs-muted: #536477; --pfs-border: #d6e0ea; color: var(--pfs-ink); font: 16px/1.5 system-ui, sans-serif; width: 100%; max-width: 1200px; min-width: 0; margin-inline: auto; text-align: left; }
.pfs-form, .pfs-form *, .pfs-form *::before, .pfs-form *::after { box-sizing: border-box; }
.pfs-form [hidden] { display: none !important; }
.pfs-form h2, .pfs-form h3, .pfs-form p { color: inherit; font-family: inherit; overflow-wrap: anywhere; }
.pfs-form h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.2; margin: 0 0 .75rem; font-weight: 700; }
.pfs-form h3 { font-size: 1.15rem; line-height: 1.4; margin: 0 0 .75rem; font-weight: 650; }
.pfs-form p { margin: 0 0 .8rem; }
.pfs-form button, .pfs-form input, .pfs-form select, .pfs-form textarea { font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; min-width: 0; max-width: 100%; margin: 0; }
.pfs-form button { cursor: pointer; white-space: normal; overflow-wrap: anywhere; text-decoration: none; line-height: 1.4; transition: background-color .15s, border-color .15s; }
.pfs-form button:disabled { opacity: .5; cursor: default; }
.pfs-form :is(button, input, select, textarea):focus-visible { outline: 3px solid #a36b00; outline-offset: 3px; }
.pfs-form :is(input, select, textarea)[aria-invalid=true] { border-color: #b42318; }
.pfs-form .pfs-form-header { display: block; width: 100%; padding: 0; margin: 0 0 1.5rem; background: transparent; }
.pfs-form .pfs-eyebrow { color: var(--pfs-blue); font-size: .75rem; font-weight: 750; letter-spacing: .1em; margin-bottom: .5rem; }
.pfs-form .pfs-note { color: var(--pfs-muted); font-size: .9rem; line-height: 1.6; }
.pfs-form .pfs-pdf-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem; align-items: start; width: 100%; min-width: 0; }
.pfs-form[data-layout=wide] .pfs-pdf-layout { grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); }
.pfs-form .pfs-scratch-layout { width: 100%; max-width: 760px; min-width: 0; }
.pfs-form .pfs-preview, .pfs-form .pfs-inputs { width: 100%; max-width: 100%; min-width: 0; }
.pfs-form .pfs-preview { background: #f3f6fa; border: 1px solid var(--pfs-border); border-radius: 12px; padding: .75rem; }
.pfs-form .pfs-page-navigation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: .5rem; align-items: center; width: 100%; margin: 0 0 .75rem; }
.pfs-form .pfs-page-navigation select { width: 100%; min-height: 44px; padding: .5rem; border: 1px solid #91a6ba; border-radius: 7px; background: white; color: var(--pfs-ink); }
.pfs-form .pfs-page-navigation button { width: 100%; min-height: 44px; padding: .5rem; }
.pfs-form[data-layout=compact] .pfs-page-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pfs-form[data-layout=compact] .pfs-page-navigation select { grid-column: 1 / -1; grid-row: 1; }
.pfs-form .pfs-viewer-hint { color: var(--pfs-muted); font-size: .8rem; margin-bottom: .5rem; }
.pfs-form .pfs-pages { width: 100%; min-width: 0; max-height: none; overflow: visible; padding: .25rem; background: #e3eaf2; border-radius: 6px; }
.pfs-form[data-layout=wide] .pfs-pages { max-height: 80vh; overflow: auto; scrollbar-gutter: stable; }
.pfs-form .pfs-pages[aria-busy=true] { opacity: .6; }
.pfs-form .pfs-pdf-page { position: relative; background: white; box-shadow: 0 2px 8px #152d4420; margin: 0 auto; }
.pfs-form .pfs-pages canvas { display: block; max-width: none; margin: 0; }
.pfs-form .pfs-inputs { background: white; border: 1px solid var(--pfs-border); border-radius: 12px; padding: 1.25rem; margin: 0; }
.pfs-form .pfs-field-progress { color: var(--pfs-muted); font-size: .8rem; margin-bottom: .75rem; }
.pfs-form .pfs-page-fields { width: 100%; min-width: 0; max-height: none; overflow: visible; }
.pfs-form[data-layout=wide] .pfs-page-fields { max-height: 52vh; overflow-y: auto; scrollbar-gutter: stable; }
.pfs-form .pfs-field-link { display: flex; flex-direction: column; align-items: flex-start; gap: .2rem; width: 100%; max-width: 100%; min-width: 0; min-height: 44px; text-align: left; border: 1px solid transparent; border-bottom-color: #e5ebf1; border-radius: 6px; background: white; color: var(--pfs-ink); padding: .65rem; white-space: normal; }
.pfs-form .pfs-field-label { display: block; min-width: 0; max-width: 100%; color: var(--pfs-ink); font-size: .9rem; overflow-wrap: anywhere; }
.pfs-form .pfs-field-state { color: var(--pfs-muted); font-size: .7rem; }
.pfs-form button.pfs-field-link:is(:hover, :focus, :focus-visible, :active, .pfs-active) { color: var(--pfs-ink); background: #eef5fc; border-color: #93b6d5; }
.pfs-form .pfs-completed .pfs-field-state { color: #166344; }
.pfs-form .pfs-submit-actions { border-top: 1px solid var(--pfs-border); margin-top: 1.25rem; padding-top: 1rem; }
.pfs-form .pfs-submit-actions .pfs-primary { width: 100%; }
.pfs-form .pfs-overlay-field { position: absolute; z-index: 2; min-width: 0; overflow: clip; }
.pfs-form .pfs-overlay-field :is(input, textarea, select, button) { display: block; width: 100%; height: 100%; min-width: 0; max-width: 100%; min-height: 0; margin: 0; padding: 0 2px; border: 1px solid #668fb5; border-radius: 1px; background: #ffffffdc; color: #111827; font: 12px/1.2 system-ui, sans-serif; text-align: left; box-shadow: none; resize: none; }
.pfs-form .pfs-overlay-field :is(input[type=checkbox], input[type=radio]) { padding: 0; accent-color: var(--pfs-blue); appearance: auto; }
.pfs-form .pfs-overlay-field :is(.pfs-overlay-hotspot, .pfs-overlay-signature) { text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background-color: #e8f2ff88; color: var(--pfs-blue); background-size: contain; background-repeat: no-repeat; background-position: center; font-size: 10px; }
.pfs-form .pfs-overlay-field .pfs-filled { background-color: #e5f6ed99; }
.pfs-form .pfs-overlay-field.pfs-active { outline: 2px solid var(--pfs-blue); outline-offset: 1px; }
.pfs-form .pfs-overlay-field :focus-visible { outline-offset: -3px; }
.pfs-form .pfs-field { width: 100%; min-width: 0; margin: 0 0 1.25rem; }
.pfs-form .pfs-field > label { display: block; font-weight: 650; margin-bottom: .5rem; overflow-wrap: anywhere; }
.pfs-form .pfs-field :is(input:not([type=checkbox]):not([type=radio]), textarea, select) { width: 100%; min-height: 44px; padding: .65rem; border: 1px solid #91a6ba; border-radius: 7px; background: white; color: var(--pfs-ink); font-size: 16px; }
.pfs-form .pfs-field input[type=file] { padding: .5rem; overflow: hidden; }
.pfs-form .pfs-field :is(input[type=checkbox], input[type=radio]) { width: 20px; height: 20px; min-height: 0; accent-color: var(--pfs-blue); appearance: auto; }
.pfs-form .pfs-choices label { display: flex; align-items: center; gap: .65rem; min-height: 44px; padding: .5rem; margin: .25rem 0; overflow-wrap: anywhere; border: 1px solid var(--pfs-border); border-radius: 6px; }
.pfs-form .pfs-choices input { flex: 0 0 20px; }
.pfs-form .pfs-selected-file { font-size: .85rem; color: var(--pfs-muted); overflow-wrap: anywhere; }
.pfs-form .pfs-weekly-schedule { display: grid; gap: .85rem; width: 100%; min-width: 0; }
.pfs-form .pfs-schedule-rows { display: grid; gap: .75rem; min-width: 0; }
.pfs-form .pfs-schedule-row { min-width: 0; margin: 0; padding: .8rem; border: 1px solid var(--pfs-border); border-radius: 9px; background: #fbfcfe; }
.pfs-form .pfs-schedule-row legend { padding: 0 .35rem; color: var(--pfs-blue); font-weight: 700; }
.pfs-form .pfs-schedule-row-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; min-width: 0; }
.pfs-form .pfs-schedule-control { display: flex; flex-direction: column; gap: .3rem; min-width: 0; color: var(--pfs-muted); font-size: .82rem; font-weight: 600; }
.pfs-form .pfs-schedule-control :is(input, select, output) { display: block; width: 100%; min-width: 0; min-height: 44px; padding: .55rem; border: 1px solid #91a6ba; border-radius: 7px; background: white; color: var(--pfs-ink); font: inherit; }
.pfs-form .pfs-schedule-control output { display: flex; align-items: center; overflow-wrap: anywhere; }
.pfs-form .pfs-schedule-control[hidden] { display: none !important; }
.pfs-form .pfs-schedule-row > .pfs-secondary, .pfs-form .pfs-weekly-schedule > .pfs-secondary { min-height: 42px; padding: .55rem .8rem; }
.pfs-form .pfs-schedule-summary { min-width: 0; padding: .9rem; border: 1px solid var(--pfs-border); border-radius: 9px; background: #f4f8fc; }
.pfs-form .pfs-schedule-summary h4 { margin: 0 0 .55rem; color: var(--pfs-ink); font-size: 1rem; }
.pfs-form .pfs-schedule-summary-list { display: grid; gap: .35rem; margin: 0; }
.pfs-form .pfs-schedule-summary-item { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; padding: .3rem 0; border-bottom: 1px solid #e0e8f0; }
.pfs-form .pfs-schedule-summary-item dt { min-width: 0; overflow-wrap: anywhere; color: var(--pfs-muted); }
.pfs-form .pfs-schedule-summary-item dd { flex: 0 0 auto; margin: 0; color: var(--pfs-ink); font-weight: 700; text-align: right; }
.pfs-form .pfs-schedule-summary-item:nth-child(4) dd { color: #9a4b08; }
.pfs-form .pfs-schedule-overage:not([hidden]), .pfs-form .pfs-schedule-error:not(:empty) { margin: .6rem 0 0; padding: .65rem; border-radius: 7px; background: #fff3e7; color: #873b16; overflow-wrap: anywhere; }
.pfs-form .pfs-schedule-error:not(:empty) { background: #fff2f0; color: #a12626; }
.pfs-form .pfs-schedule-empty { margin: 0; color: var(--pfs-muted); font-size: .9rem; }
.pfs-form .pfs-schedule-hint { margin: 0; color: var(--pfs-muted); font-size: .82rem; }
.pfs-form .pfs-signature canvas { display: block; width: 100%; height: 180px; border: 1px solid #91a6ba; border-radius: 7px; background: white; touch-action: none; margin-bottom: .75rem; }
.pfs-form .pfs-primary, .pfs-form .pfs-secondary { min-height: 44px; border-radius: 7px; padding: .65rem 1rem; font-weight: 600; }
.pfs-form button.pfs-primary { color: white; background: var(--pfs-blue); border: 1px solid var(--pfs-blue); }
.pfs-form button.pfs-primary:is(:hover, :focus, :focus-visible, :active):not(:disabled) { color: white; background: #163552; border-color: #163552; }
.pfs-form .pfs-primary:disabled { cursor: wait; }
.pfs-form button.pfs-secondary { color: var(--pfs-blue); background: white; border: 1px solid #91a6ba; }
.pfs-form button.pfs-secondary:is(:hover, :focus, :focus-visible, :active):not(:disabled) { color: var(--pfs-blue); background: #edf4fb; border-color: #668fb5; }
.pfs-form .pfs-field-dialog { position: fixed; width: min(640px, calc(100% - 2rem)); max-width: calc(100% - 2rem); max-height: 85vh; max-height: 85dvh; min-width: 0; margin: auto; padding: 1.25rem; border: 1px solid var(--pfs-border); border-radius: 14px; background: white; color: var(--pfs-ink); font: inherit; overflow-y: auto; overscroll-behavior: contain; }
.pfs-form .pfs-field-dialog::backdrop { background: #10273fcc; }
.pfs-form[data-layout=compact] .pfs-field-dialog { inset: auto 0 0; width: min(640px, 100%); max-width: 100%; border-radius: 14px 14px 0 0; padding-bottom: max(1.25rem, env(safe-area-inset-bottom)); }
.pfs-form .pfs-dialog-header { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.pfs-form .pfs-dialog-header h3 { font-size: .9rem; margin: 0; }
.pfs-form .pfs-dialog-header .pfs-secondary { font-size: .8rem; flex-shrink: 0; padding-inline: .75rem; }
.pfs-form .pfs-dialog-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pfs-form .pfs-dialog-actions button { padding-inline: .4rem; }
.pfs-form .pfs-message { font-size: .9rem; color: var(--pfs-blue); }
.pfs-form .pfs-message:empty, .pfs-form .pfs-error:empty { display: none; }
.pfs-form .pfs-message[data-state=error], .pfs-form .pfs-error { color: #a12626; background: #fff2f0; padding: .75rem; border-radius: 7px; overflow-wrap: anywhere; }
.pfs-form .pfs-loading { padding: 1.25rem; background: #f3f6fa; border-radius: 12px; }
.pfs-form .pfs-success { padding: 1.5rem; background: #effaf4; border: 1px solid #b7d9c7; border-radius: 12px; }
.pfs-form .pfs-success .pfs-eyebrow { color: #166344; }
.pfs-form .pfs-reference { font-weight: 650; overflow-wrap: anywhere; }
.pfs-form .pfs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { .pfs-form button { transition: none; } }
@media (max-width: 600px) { .pfs-form .pfs-schedule-row-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pfs-form .pfs-schedule-row-controls .pfs-schedule-control:nth-child(n+4) { grid-column: 1 / -1; } }
