/* Scoped form system; typography inherits the site's licensed local DM Sans. */
.vf-form {
  --vf-paper: #f1f0ea;
  --vf-ink: #252a24;
  --vf-muted: #65675f;
  --vf-line: #c9cbc2;
  --vf-error: #963a2d;
  width: 100%;
  color: var(--vf-ink);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.55;
  text-align: left;
}
.vf-form *, .vf-form *::before, .vf-form *::after { box-sizing: border-box; }
.vf-form [hidden] { display: none !important; }
.vf-form fieldset { min-width: 0; }
.vf-form button, .vf-form input, .vf-form textarea { font: inherit; }
.vf-form button, .vf-form a, .vf-form input, .vf-form textarea, .vf-form summary { -webkit-tap-highlight-color: transparent; }
.vf-form :focus-visible { outline: 2px solid var(--vf-ink); outline-offset: 5px; }
.vf-form .vf-intro { max-width: 54ch; margin: 0 0 26px; color: var(--vf-muted); font-size: 13px; line-height: 1.6; }
.vf-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 26px; }
.vf-progress { margin: 0; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; }
.vf-status { flex: 1 1 210px; margin: 0; color: var(--vf-muted); font-size: 12px; text-align: right; }
.vf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 32px; }
.vf-form .vf-step { display: block; width: auto; min-height: 44px; margin: 0; padding: 12px 0; border: 0; border-bottom: 1px solid var(--vf-line); border-radius: 0; background: transparent; color: var(--vf-muted); font-size: 12px; text-align: left; cursor: pointer; }
.vf-form .vf-step[aria-current] { border-color: var(--vf-ink); color: var(--vf-ink); }
.vf-form .vf-step-title { margin: 0 0 28px; font-size: clamp(24px, 3.5vw, 38px); font-weight: 300; letter-spacing: -.04em; line-height: 1.1; }
.vf-section { border-top: 1px solid var(--vf-line); }
.vf-section:last-of-type { border-bottom: 1px solid var(--vf-line); }
.vf-section-title { display: flex; align-items: baseline; gap: 24px; padding: 25px 0; list-style: none; cursor: pointer; font-size: clamp(21px, 3.5vw, 34px); line-height: 1.2; letter-spacing: -.035em; }
.vf-section-title::-webkit-details-marker { display: none; }
.vf-section-title::after { content: '+'; width: 20px; flex-shrink: 0; text-align: center; font-size: 24px; font-weight: 300; }
.vf-section[open] > .vf-section-title::after { content: '−'; }
.vf-section-number, .vf-section-count { font-size: 12px; letter-spacing: 0; color: var(--vf-muted); }
.vf-section-count { margin-left: auto; white-space: nowrap; }
.vf-section-content { padding: 12px 0 28px 42px; }
.vf-form .vf-field { display: block; width: 100%; margin: 0 0 38px; padding: 0; border: 0; }
.vf-form .vf-field:last-child { margin-bottom: 0; }
.vf-form .vf-label { display: block; width: 100%; margin: 0 0 14px; padding: 0; color: var(--vf-ink); font-size: 19px; font-weight: 400; letter-spacing: -.02em; line-height: 1.35; }
.vf-required { font-size: 13px; font-weight: 400; vertical-align: top; }
.vf-form .vf-hint { margin: -3px 0 18px; max-width: 66ch; color: var(--vf-muted); font-size: 13px; line-height: 1.65; }
.vf-controls { display: grid; gap: 0; }
.vf-form .vf-choice { position: relative; display: grid; grid-template-columns: 20px 1fr; align-items: start; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--vf-line); }
.vf-form .vf-choice:first-child { padding-top: 6px; }
.vf-form .vf-choice input { appearance: auto; position: static; width: 16px; height: 16px; margin: 4px 0 0; padding: 0; accent-color: var(--vf-ink); cursor: pointer; border-radius: 0; opacity: 1; }
.vf-form .vf-choice label { display: block; margin: 0; padding: 0; color: var(--vf-ink); cursor: pointer; font-size: 16px; line-height: 1.5; font-weight: 300; }
.vf-form .vf-choice:has(input:checked) label { font-weight: 400; }
.vf-form .vf-text-control { margin-bottom: 20px; }
.vf-form .vf-text-control:last-child { margin-bottom: 0; }
.vf-form .vf-text-control > label:not(.vf-sr-only) { display: block; margin: 0 0 7px; font-size: 12px; color: var(--vf-muted); }
.vf-form .vf-text-control input:not([type='file']), .vf-form .vf-text-control textarea {
  display: block; width: 100%; min-width: 0; margin: 0; padding: 10px 0 13px; border: 0; border-bottom: 1px solid var(--vf-line); border-radius: 0; background: transparent; box-shadow: none; color: var(--vf-ink); font-size: 16px; font-weight: 300; line-height: 1.5;
}
.vf-form .vf-text-control input:focus, .vf-form .vf-text-control textarea:focus { border-bottom-color: var(--vf-ink); outline-offset: 3px; }
.vf-form input::placeholder, .vf-form textarea::placeholder { color: #74776e; opacity: 1; font-weight: 300; }
.vf-form textarea { resize: vertical; }
.vf-form .vf-other { padding: 18px 0 0 30px; }
.vf-form .vf-text-control input[type='file'] { display: block; width: 100%; max-width: 100%; margin: 8px 0 15px; padding: 0; border: 0; font-size: 13px; color: var(--vf-muted); background: transparent; }
.vf-form input[type='file']::file-selector-button { margin-right: 14px; padding: 10px 16px; border: 1px solid var(--vf-line); border-radius: 0; background: transparent; color: var(--vf-ink); font: inherit; cursor: pointer; }
.vf-form .vf-file-note { margin-top: 15px; }
.vf-privacy-link { grid-column: 2; width: fit-content; font-size: 12px; text-underline-offset: 3px; }
.vf-form .vf-scale { display: grid; grid-template-columns: minmax(0,1fr) minmax(160px,240px) minmax(0,1fr); align-items: center; gap: 12px; padding: 12px 0; margin: 0; border: 0; }
.vf-scale-end { font-size: 14px; line-height: 1.4; }
.vf-scale-end--right { text-align: right; }
.vf-scale-choices { position: relative; display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 0; }
.vf-scale-choices::before { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; border-top: 1px solid var(--vf-line); pointer-events: none; }
.vf-form .vf-scale .vf-choice { display: flex; justify-content: center; align-items: center; gap: 0; padding: 0; border: 0; }
.vf-form .vf-scale .vf-choice label { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-width: 32px; height: 44px; margin: 0; cursor: pointer; }
.vf-form .vf-scale .vf-choice label::before { content: ''; display: block; width: 18px; height: 18px; box-sizing: border-box; border: 1px solid var(--vf-ink); border-radius: 50%; background: var(--vf-paper); transition: background-color 140ms, box-shadow 140ms; }
.vf-form .vf-scale input:checked + label::before { background: var(--vf-ink); box-shadow: 0 0 0 4px var(--vf-paper), 0 0 0 5px var(--vf-ink); }
.vf-form .vf-scale input:focus-visible + label { outline: 2px solid var(--vf-ink); outline-offset: 2px; border-radius: 3px; }
@media (hover:hover) { .vf-form .vf-scale .vf-choice label:hover::before { box-shadow: 0 0 0 4px var(--vf-line); } }
.vf-reference-row { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 15px; margin-bottom: 26px; }
.vf-reference-row .vf-row-number { grid-column: 1; grid-row: 1 / 4; margin: 0; padding-top: 3px; font-size: 11px; color: var(--vf-muted); }
.vf-reference-row > .vf-control { grid-column: 2; }
.vf-example { margin-bottom: 18px; font-size: 13px; color: var(--vf-muted); }
.vf-example summary { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; width: fit-content; }
.vf-form .vf-example p { max-width: 60ch; margin: 14px 0 0; line-height: 1.65; }
.vf-form .vf-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; margin-top: 36px; }
.vf-form .vf-button { display: inline-flex; justify-content: center; align-items: center; gap: 12px; width: auto; min-height: 48px; margin: 0; padding: 12px 22px; border: 1px solid var(--vf-ink); border-radius: 0; font: inherit; font-size: 14px; line-height: 1.45; text-decoration: none; cursor: pointer; transition: background-color 160ms ease, color 160ms ease; }
.vf-form .vf-button-primary { background: var(--vf-ink); color: var(--vf-paper); }
.vf-form .vf-button-secondary { background: transparent; color: var(--vf-ink); border-color: var(--vf-line); }
.vf-form .vf-button-primary:hover { background: #41483e; }
.vf-form .vf-button-secondary:hover { background: #e5e5dd; }
.vf-draft-actions { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--vf-line); }
.vf-form .vf-text-button { display: inline; width: auto; min-height: 34px; margin: 0; padding: 4px 0; border: 0; border-radius: 0; background: transparent; color: var(--vf-muted); font-size: 12px; line-height: 1.4; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.vf-result { margin-top: 36px; padding: 28px 0 0; border-top: 1px solid var(--vf-ink); }
.vf-form .vf-result-title { margin: 0 0 16px; font-size: 28px; font-weight: 300; line-height: 1.2; letter-spacing: -.035em; }
.vf-export-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.vf-export-label { display: block; margin-bottom: 10px; font-size: 12px; }
.vf-form .vf-export { display: block; width: 100%; padding: 16px; border: 1px solid var(--vf-line); border-radius: 0; background: transparent; color: var(--vf-ink); font-size: 13px; line-height: 1.7; }
.vf-form .vf-field-error, .vf-form .vf-error-summary { margin: 10px 0 0; color: var(--vf-error); font-size: 13px; line-height: 1.5; }
.vf-form .vf-error-summary { margin: 0 0 24px; padding: 12px 0; border-block: 1px solid var(--vf-error); }
.vf-form .vf-invalid .vf-label { color: var(--vf-error); }
.vf-form .vf-invalid input[aria-invalid='true'], .vf-form .vf-invalid textarea[aria-invalid='true'] { border-color: var(--vf-error); }
.vf-form .vf-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.vf-load-error { font: 300 15px/1.6 'DM Sans', sans-serif; }
.secondary-questionnaire .detail-hero > .detail-lead { margin: clamp(30px,5vw,70px) 0 0 auto; }
.secondary-questionnaire .detail-hero > .detail-note { margin: 24px 0 0 auto; }
.vf-form .vf-invite-context { margin-top: -12px; }
@media (min-width: 760px) {
  .vf-anketa .vf-field-checkbox:not([data-field-id='consent']) > .vf-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .vf-form .vf-controls > .vf-other { grid-column: 1 / -1; }
  .vf-form .vf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
}
@media (max-width: 600px) {
  .vf-form .vf-intro { margin-bottom: 20px; }
  .vf-top { margin-bottom: 20px; }
  .vf-status { flex-basis: 100%; text-align: left; }
  .vf-steps { gap: 12px; margin-bottom: 26px; }
  .vf-form .vf-step { font-size: 11px; }
  .vf-section-title { padding: 22px 0; gap: 14px; }
  .vf-section-content { padding-left: 0; }
  .vf-form .vf-label { font-size: 18px; }
  .vf-form .vf-field { margin-bottom: 30px; }
  .vf-form .vf-actions > .vf-button { flex: 1 1 auto; }
  .vf-export-actions { flex-direction: column; }
  .vf-form .vf-export-actions .vf-button { width: 100%; }
  .vf-form .vf-choice label { font-size: 15px; }
  .vf-form .vf-scale { grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 10px 0; }
  .vf-scale-end { grid-column: 1; grid-row: 1; }
  .vf-scale-end--right { grid-column: 2; grid-row: 1; }
  .vf-scale-choices { grid-column: 1 / -1; grid-row: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-form *, .vf-form *::before, .vf-form *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
html.motion-paused .vf-form *, body.motion-paused .vf-form * { transition: none !important; animation: none !important; }
