html { scroll-behavior: auto; scroll-padding-top: 0; }
.questionnaire-header .header-inner { justify-content: center; }
.questionnaire-page { background: var(--bg); padding: 24px 0 0; }
.questionnaire-container { width: min(960px, calc(100% - 40px)); margin-inline: auto; }
.questionnaire-intro { max-width: 790px; margin-bottom: 16px; }
.questionnaire-intro h1 { font-size: clamp(32px, 5vw, 44px); line-height: 1.1; margin: 0 0 10px; }
.questionnaire-intro .intro-text { font-size: 19px; margin-bottom: 14px; }
.eyebrow { color: #0065cc; font-size: 13px; font-weight: 800; letter-spacing: .13em; }
.draft-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-block: 1px solid var(--line); padding: 14px 0; margin-bottom: 18px; font-size: 14px; }
.draft-bar button { color: var(--navy); background: transparent; border: 0; text-decoration: underline; white-space: nowrap; padding: 10px; }
.required-note { font-size: 12px; }
#field-public_address .choice-list, #field-own_domain .choice-list, #field-business_email .choice-list { grid-template-columns: auto auto auto; justify-content: start; gap: 8px 12px; }
#field-public_address .choice, #field-own_domain .choice, #field-business_email .choice { white-space: nowrap; font-size: 14px; gap: 7px; }
.form-guidance { font-size: 14px; margin-bottom: 12px; }
.questionnaire-section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 24px 20px; margin-top: 26px; }
.section-title { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 24px; }
.section-title > span { display: grid; place-items: center; background: #eaf3ff; color: #005cb9; font-size: 14px; font-weight: 800; border-radius: 7px; flex: 0 0 32px; height: 32px; }
.section-title h2 { font-size: clamp(23px, 3.2vw, 30px); line-height: 1.2; letter-spacing: -.025em; padding-top: 2px; }
.section-intro { margin: -6px 0 22px; font-size: 15px; }
.questionnaire-fields { display: grid; gap: 24px; }
.question-field { min-width: 0; padding: 0; margin: 0; border: 0; }
.question-field > label, .question-field > legend { display: block; font-size: 15px; font-weight: 700; margin-bottom: 9px; padding: 0; width: 100%; }
.question-field input:not([type=checkbox]):not([type=radio]), .question-field textarea { width: 100%; border: 1px solid #aebdd1; border-radius: 7px; padding: 12px; color: var(--navy); background: #fff; min-height: 48px; }
.question-field textarea { resize: vertical; min-height: 118px; }
.question-field input[type=file] { font-size: 14px; }
.question-field input::file-selector-button { padding: 8px 12px; margin-right: 10px; color: var(--navy); background: #eaf3ff; border: 0; border-radius: 4px; cursor: pointer; }
.choice-list { display: grid; gap: 10px 24px; }
.choice { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; min-height: 32px; }
.choice input { width: 19px; height: 19px; min-height: 19px; padding: 0; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--navy); }
.required, .field-error { color: #a72227; }
.field-error, .field-help { font-size: 13px; margin: 6px 0; }
.field-error { font-weight: 650; }
.question-field [aria-invalid=true] { border-color: #a72227 !important; }
.file-list { margin: 7px 0 0; padding-left: 20px; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.form-alert { border: 1px solid #bb3a3f; border-radius: 8px; background: #fff4f4; padding: 20px; margin-top: 22px; color: #802028; }
.form-alert a { text-decoration: underline; }
.privacy-note { margin-top: 22px; font-size: 14px; }
.privacy-note a, .questionnaire-footer a { color: #005cb9; text-decoration: underline; }
.submit-area { padding: 30px 0; text-align: center; }
.submit-area .button { width: 100%; justify-content: center; font-size: 15px; }
.submit-area p { margin-top: 12px; font-size: 14px; }
.questionnaire-footer { border-top: 1px solid var(--line); padding: 24px 0 32px; font-size: 13px; }
.questionnaire-footer a { display: inline-block; margin-top: 8px; }
.thank-you { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 32px; margin: 30px 0; }
.thank-you h2 { font-size: 30px; margin-bottom: 18px; }
.thank-you p { margin-top: 12px; overflow-wrap: anywhere; }
.honey { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }
.question-field, .form-alert { scroll-margin-top: 130px; }
@media (min-width: 640px) {
  .questionnaire-page { padding-top: 28px; }
  .questionnaire-section { padding: 32px; }
  .questionnaire-fields { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .full-width { grid-column: 1 / -1; }
  .choice-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .consent-choices { grid-template-columns: 1fr; }
  .submit-area .button { width: auto; min-width: 320px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Progressive UX enhancements; all named fields stay in the original form. */
.questionnaire-section, .question-field, .form-alert { scroll-margin-top: var(--questionnaire-offset, 125px); }
.section-title { gap: 14px; margin-bottom: 24px; }
.section-title > span { width: 48px; height: 48px; flex: 0 0 48px; background: #071f4e; color: white; border-radius: 50%; font-size: 23px; line-height: 1; }
.section-title h2 { font-size: clamp(23px, 3vw, 29px); }
.section-meta { margin-top: 8px; color: #53627a; font-size: 13px; line-height: 1.5; }
.section-meta span { font-weight: 750; color: #071f4e; }
.section-title h2:focus-visible { outline-offset: 5px; border-radius: 3px; }
.questionnaire-section .choice { padding: 12px; min-height: 50px; margin: 0; border: 1px solid #c7d3e3; border-radius: 8px; background: #fff; font-weight: 500; line-height: 1.5; }
.questionnaire-section .choice:hover { border-color: #738eaf; background: #fafcff; }
.questionnaire-section .choice:has(input:checked), .questionnaire-section .choice.is-selected { border-color: #086bc7; background: #edf5ff; }
.questionnaire-section .choice:focus-within { outline: 2px solid #086bc7; outline-offset: 2px; }
#field-public_address .choice-list, #field-own_domain .choice-list, #field-business_email .choice-list { grid-template-columns: repeat(3,minmax(0,1fr)); justify-content: stretch; gap: 8px; }
#field-public_address .choice, #field-own_domain .choice, #field-business_email .choice { flex-direction: column; align-items: center; justify-content: center; text-align: center; white-space: normal; gap: 5px; padding: 10px 6px; min-height: 72px; }
.price-options { display: grid; gap: 10px; grid-column: 1 / -1; }
.contact-row, .contact-block { min-width: 0; }
.contact-row h3, .contact-block h3 { font-size: 16px; letter-spacing: 0; line-height: 1.5; margin: 0 0 14px; }
#field-business_name { grid-column: 1 / -1; }
.more-panel { min-width: 0; border: 1px solid #d6deea; border-radius: 9px; background: #fbfcff; }
.more-panel > summary { padding: 15px 16px; min-height: 48px; color: #071f4e; font-size: 15px; font-weight: 700; cursor: pointer; }
.more-panel[open] > summary { border-bottom: 1px solid #d6deea; }
.more-panel > .questionnaire-fields { padding: 18px 16px; }
.upload-return-note { font-size: 14px; margin: 0 0 12px; }
#upload-totals { font-size: 14px; font-weight: 750; color: #071f4e; margin-bottom: 22px; }
.upload-zone { padding: 18px 14px; border: 2px dashed #9eb4d0; border-radius: 10px; background: #f7faff; }
.upload-zone.is-dragging { border-color: #086bc7; background: #eaf3ff; }
.drop-hint { margin: 0 0 12px; font-size: 14px; color: #42516a; }
.file-list, .file-reminders { list-style: none; padding: 0; margin: 10px 0 0; }
.file-list li { display: flex; align-items: center; gap: 10px; border: 1px solid #d6deea; border-radius: 7px; padding: 8px; margin-top: 8px; background: #fff; }
.file-list img { width: 48px; height: 48px; object-fit: cover; border-radius: 4px; }
.file-description { flex: 1; min-width: 0; overflow-wrap: anywhere; color: #42516a; font-size: 13px; }
.file-list button, .file-reminders button { min-height: 44px; min-width: 44px; padding: 8px; border: 1px solid #c7d3e3; border-radius: 5px; background: #fff; color: #071f4e; font-size: 13px; }
.file-reminders { font-size: 13px; color: #53627a; }
.file-reminders li { margin-top: 6px; overflow-wrap: anywhere; }
.file-reminders button { margin-left: 8px; }
#clear-dialog { width: min(460px,calc(100% - 32px)); border: 1px solid #c7d3e3; border-radius: 12px; padding: 26px; color: #071f4e; }
#clear-dialog::backdrop { background: #071f4e66; }
#clear-dialog h2 { font-size: 25px; margin-bottom: 15px; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.dialog-actions button { min-height: 44px; padding: 12px 16px; border: 1px solid #aebdd1; border-radius: 6px; background: white; color: #071f4e; font-size: 14px; }
.dialog-actions .button { background: #071f4e; color: white; }
.thank-you { border-top: 4px solid #1689ff; }
.thank-you h3 { margin-top: 24px; margin-bottom: 10px; font-size: 20px; }
.form-alert { background: #fff8f7; }
@media (min-width:640px) {
  .price-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  #field-public_address .choice, #field-own_domain .choice, #field-business_email .choice { flex-direction: row; gap: 8px; min-height: 50px; }
}
@media (min-width:800px) { .contact-row > .questionnaire-fields { grid-template-columns: repeat(3,minmax(0,1fr)); } }

/* Final UI polish: shared spacing, readable controls and native selection cards. */
.questionnaire-page { --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px; --space-6: 24px; }
.questionnaire-container { width: min(960px, calc(100% - 32px)); }
.questionnaire-intro h1 { font-size: clamp(30px,4vw,40px); line-height: 1.15; margin-bottom: var(--space-2); }
.questionnaire-intro p { font-size: 16px; line-height: 1.6; }
.draft-bar { gap: var(--space-4); padding: var(--space-3) 0; margin-bottom: 0; line-height: 1.5; }
.draft-bar button { min-height: 44px; font-size: 14px; padding: var(--space-2); }
.required-note { font-size: 13px; margin-top: var(--space-1); }
.questionnaire-section { padding: var(--space-5); margin-top: var(--space-6); box-shadow: 0 2px 6px #071f4e03; }
.section-title { align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.section-title h2 { font-size: 20px; line-height: 1.35; letter-spacing: -.02em; padding: 0; margin: 0; }
.section-intro { font-size: 14px; line-height: 1.6; margin: 0 0 var(--space-5); color: #53627a; }
.questionnaire-fields { gap: var(--space-5); }
.question-field > label, .question-field > legend { font-size: 15px; line-height: 1.5; font-weight: 650; margin-bottom: var(--space-2); }
.question-field input:not([type=checkbox]):not([type=radio]), .question-field textarea { min-height: 48px; border-color: #8191a8; border-radius: 8px; padding: var(--space-3); font-size: 16px; line-height: 1.5; }
.question-field textarea { min-height: 112px; }
.question-field input::placeholder, .question-field textarea::placeholder { color: #607089; opacity: 1; }
.question-field input:not([type=checkbox]):not([type=radio]):hover:not(:disabled), .question-field textarea:hover:not(:disabled) { border-color: #738eaf; }
.question-field input:focus-visible, .question-field textarea:focus-visible { outline: 2px solid #086bc7; outline-offset: 2px; }
.question-field input:not([type=checkbox]):not([type=radio]):focus, .question-field textarea:focus { border-color: #086bc7; box-shadow: 0 0 0 3px #1689ff1a; }
.question-field input:not([type=checkbox]):not([type=radio]):disabled, .question-field textarea:disabled { color: #53627a; background: #eef2f7; opacity: 1; -webkit-text-fill-color: #53627a; cursor: wait; }
.choice-list, .price-options { gap: var(--space-2) var(--space-4); }
.questionnaire-section .choice { min-height: 48px; padding: var(--space-3); }
.choice input { margin-top: 2px; }
.choice span { min-width: 0; overflow-wrap: anywhere; }
.questionnaire-section .choice:has(input:disabled) { color: #53627a; cursor: wait; }
.field-help, .field-error { font-size: 14px; line-height: 1.55; margin: var(--space-2) 0 0; }
.field-help { color: #53627a; }
.question-field > .field-help { margin: 0 0 var(--space-2); }
.field-error::before { content: 'Error: '; font-weight: 750; }
.contact-row h3, .contact-block h3 { margin-bottom: var(--space-3); }
.more-panel > summary { font-size: 15px; line-height: 1.5; padding: var(--space-3) var(--space-4); }
.more-panel > .questionnaire-fields { padding: var(--space-4); }
.upload-return-note { line-height: 1.6; }
#upload-totals { line-height: 1.5; margin-bottom: var(--space-4); }
.upload-zone { min-width: 0; min-height: 152px; padding: var(--space-4); border-radius: 8px; }
.upload-zone.has-files { border-color: #086bc7; background: #edf5ff; }
.drop-hint { line-height: 1.55; margin-bottom: var(--space-3); }
.question-field .upload-zone input[type=file] { border: 0; border-radius: 0; padding: 0; min-height: 44px; background: transparent; font-size: 16px; box-shadow: none; }
.question-field input::file-selector-button { min-height: 44px; padding: 10px 12px; border: 1px solid #c7d3e3; border-radius: 6px; background: #fff; font: inherit; font-weight: 600; }
.file-list:empty, .file-reminders:empty { margin: 0; }
.file-description, .file-list button, .file-reminders, .file-reminders button { font-size: 14px; line-height: 1.5; }
.file-list li { gap: var(--space-2); }
.form-alert { font-size: 15px; line-height: 1.6; }
.privacy-note { margin-top: var(--space-4); line-height: 1.6; }
.submit-area { padding: var(--space-6) 0; }
.submit-area .button { min-height: 62px; gap: var(--space-3); padding: 18px; font-size: 16px; font-weight: 750; line-height: 1.4; border-radius: 8px; border-bottom: 3px solid #1689ff; box-shadow: 0 3px 10px #071f4e14; }
.submit-area .button .submit-label { font-size: inherit; line-height: inherit; }
.submit-area .button:hover:not(:disabled) { background: #10366f; }
.submit-area .button:focus-visible { outline: 3px solid #086bc7; outline-offset: 4px; }
.submit-area .button:disabled { background: #42516a; color: #fff; opacity: 1; cursor: wait; }
.submit-area p { margin-top: var(--space-3); line-height: 1.5; }
.submit-area p:empty { margin: 0; }
.submit-area #submit-status { min-height: 21px; margin-top: var(--space-3); }
.questionnaire-footer { padding: var(--space-6) 0; font-size: 14px; line-height: 1.6; }
.questionnaire-footer a { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
@media (min-width:640px) { .questionnaire-section { padding: 28px; } .submit-area .button { min-width: 380px; padding-inline: 32px; } }
@media (prefers-reduced-motion:reduce) { .questionnaire-page * { scroll-behavior: auto; transition: none; } }
.reference-panel { min-width: 0; border-top: 1px solid var(--line); padding-top: var(--space-5); }
.reference-add { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); width: 100%; min-height: 48px; margin-top: var(--space-5); padding: var(--space-3) var(--space-4); border: 1px solid #d6deea; border-radius: 8px; background: #fbfcff; color: var(--navy); font-size: 15px; font-weight: 650; line-height: 1.5; text-align: left; }
.reference-add:hover { border-color: #738eaf; background: #edf5ff; }
.reference-add-icon { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; font-size: 27px; font-weight: 400; line-height: 1; color: #006cda; }
.more-panel > summary { padding-right: 52px; }
.more-panel > summary::after { display: grid; place-items: center; width: 24px; height: 24px; right: 16px; top: 50%; transform: translateY(-50%); font-size: 27px; line-height: 1; }
.upload-add { display: none; margin: 0; background: #fff; border-color: #8191a8; }
.js .upload-add { display: flex; }
.js .unified-upload input[type=file] { display: none; }
.unified-upload { min-height: 160px; }
