html { scroll-behavior: auto; scroll-padding-top: 0; }
.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: #f2e7fb; color: #613287; 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 #b9a9c6; 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: #f2e7fb; 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: #613287; 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: 1rem; }
.section-title { gap: 14px; margin-bottom: 24px; }
.section-title > span { width: 48px; height: 48px; flex: 0 0 48px; background: #261630; 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: #55465e; font-size: 13px; line-height: 1.5; }
.section-meta span { font-weight: 750; color: #261630; }
.section-title h2:focus-visible { outline-offset: 5px; border-radius: 3px; }
.questionnaire-section .choice { padding: 12px; min-height: 50px; margin: 0; border: 1px solid #d5c6e0; border-radius: 8px; background: #fff; font-weight: 500; line-height: 1.5; }
.questionnaire-section .choice:hover { border-color: #8b71a1; background: #fcf8ff; }
.questionnaire-section .choice:has(input:checked), .questionnaire-section .choice.is-selected { border-color: #67358e; background: #f2e7fb; }
.questionnaire-section .choice:focus-within { outline: 2px solid #67358e; 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 #ded1e8; border-radius: 9px; background: #fcf8ff; }
.more-panel > summary { padding: 15px 16px; min-height: 48px; color: #261630; font-size: 15px; font-weight: 700; cursor: pointer; }
.more-panel[open] > summary { border-bottom: 1px solid #ded1e8; }
.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: #261630; margin-bottom: 22px; }
.upload-zone { padding: 18px 14px; border: 2px dashed #ba9bcf; border-radius: 10px; background: #fbf6ff; }
.upload-zone.is-dragging { border-color: #67358e; background: #f2e7fb; }
.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 #ded1e8; 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 #d5c6e0; border-radius: 5px; background: #fff; color: #261630; font-size: 13px; }
.file-reminders { font-size: 13px; color: #55465e; }
.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 #d5c6e0; border-radius: 12px; padding: 26px; color: #261630; }
#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 #b9a9c6; border-radius: 6px; background: white; color: #261630; font-size: 14px; }
.dialog-actions .button { background: #261630; color: white; }
.thank-you { border-top: 4px solid #a76bc9; }
.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: #55465e; }
.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: #a694b4; 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: #6b5874; opacity: 1; }
.question-field input:not([type=checkbox]):not([type=radio]):hover:not(:disabled), .question-field textarea:hover:not(:disabled) { border-color: #8b71a1; }
.question-field input:focus-visible, .question-field textarea:focus-visible { outline: 2px solid #67358e; outline-offset: 2px; }
.question-field input:not([type=checkbox]):not([type=radio]):focus, .question-field textarea:focus { border-color: #67358e; box-shadow: 0 0 0 3px #1689ff1a; }
.question-field input:not([type=checkbox]):not([type=radio]):disabled, .question-field textarea:disabled { color: #55465e; background: #eef2f7; opacity: 1; -webkit-text-fill-color: #55465e; 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: #55465e; cursor: wait; }
.field-help, .field-error { font-size: 14px; line-height: 1.55; margin: var(--space-2) 0 0; }
.field-help { color: #55465e; }
.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: #67358e; background: #f2e7fb; }
.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 #d5c6e0; 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 #a76bc9; box-shadow: 0 3px 10px #071f4e14; }
.submit-area .button .submit-label { font-size: inherit; line-height: inherit; }
.submit-area .button:hover:not(:disabled) { background: #633087; }
.submit-area .button:focus-visible { outline: 3px solid #67358e; 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 #ded1e8; border-radius: 8px; background: #fcf8ff; color: var(--navy); font-size: 15px; font-weight: 650; line-height: 1.5; text-align: left; }
.reference-add:hover { border-color: #8b71a1; background: #f2e7fb; }
.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: #67358e; }
.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: #a694b4; }
.js .upload-add { display: flex; }
.js .unified-upload input[type=file] { display: none; }
.unified-upload { min-height: 160px; }

.thank-you {
  max-width: 740px;
  margin: 0 auto 28px;
  padding: clamp(20px, 5vw, 38px);
  border-top: 3px solid #a76bc9;
  box-shadow: 0 10px 32px #071f4e0d;
}
.thank-you h2 { font-size: clamp(26px, 5vw, 38px); line-height: 1.12; margin: 0 0 10px; }
.thank-you .receipt-intro { margin-top: 0; }
.receipt-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px 24px;
  margin: 22px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f4ebfa;
}
.receipt-details dt { font-size: 13px; }
.receipt-details dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.receipt-details .receipt-date { grid-column: 1 / -1; }
.thank-you .receipt-action { margin-top: 20px; max-width: 100%; white-space: normal; }
@media (max-width: 480px) {
  .receipt-details { grid-template-columns: minmax(0, 1fr); }
  .thank-you .receipt-action { width: 100%; justify-content: center; }
}


/* Homepage theme for the questionnaire; layout and form controls remain in the rules above. */
.questionnaire-theme {
  --bg: transparent;
  --ink: #261630;
  --navy: #261630;
  --muted: #55465e;
  --line: #d9cbe4;
  --action: #67358e;
  position: relative;
  isolation: isolate;
  background: #bde2fa;
  color: var(--ink);
  font-family: "Poppins", "DejaVu Sans", Arial, sans-serif;
}
.questionnaire-theme::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: #bde2fa url("/assets/fixed-cloud-sky-top.webp") center / cover no-repeat;
}
.questionnaire-theme .questionnaire-page { background: transparent; }
.questionnaire-theme .questionnaire-intro h1 {
  font-size: clamp(2.1rem, 6.5vw, 4.25rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -.065em;
  text-wrap: balance;
}
.questionnaire-theme .questionnaire-intro p {
  color: #39294a;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}
.questionnaire-theme .draft-bar {
  padding-inline: clamp(.75rem, 3vw, 1.25rem);
  border: 1px solid #fff;
  border-radius: 14px;
  background: #faf5fff0;
}
.questionnaire-theme :is(.questionnaire-section, .thank-you) {
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, #f6eeff);
  box-shadow: 0 8px 22px #39245518;
}
.questionnaire-theme .section-title h2,
.questionnaire-theme .thank-you h2 {
  font-weight: 850;
  letter-spacing: -.045em;
}
.questionnaire-theme .section-title h2 { font-size: clamp(1.15rem, 3vw, 1.55rem); }
.questionnaire-theme .section-title > span {
  background: #eddcf8;
  color: #67358e;
}
.questionnaire-theme :is(.submit-area .button, .receipt-action, .dialog-actions .button):not(:disabled) {
  border: 1px solid #fff5;
  border-radius: 999px;
  background: linear-gradient(180deg, #7939a6, #512276);
  color: #fff;
  box-shadow: 0 4px 12px #51227633;
}
.questionnaire-theme :is(.submit-area .button, .receipt-action, .dialog-actions .button):hover:not(:disabled) {
  background: linear-gradient(180deg, #692d95, #43205f);
}
.questionnaire-theme :focus-visible { outline-color: #67358e; }
