body.questionnaire-open { overflow: hidden; }
.automation-questionnaire { width: min(580px, calc(100% - 24px)); max-height: min(820px, calc(100dvh - 32px)); padding: 0; border: 0; border-radius: 22px; color: #16351f; background: #f5f5ed; box-shadow: 0 24px 70px #07180e60; overflow: auto; overscroll-behavior: contain; }
.automation-questionnaire::backdrop { background: #07180ec9; }
.q-shell { min-width: 0; }
.q-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px 10px; }
.q-top > span { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14px; }
.q-top > span > .icon { width: 28px; height: 28px; }
.q-close { display: grid; place-items: center; width: 44px; height: 44px; background: #e6e9dc; color: #16351f; border-radius: 50%; }
.q-progress { display: flex; gap: 5px; padding: 0 24px; }
.q-progress span { height: 4px; flex: 1; background: #d7ddcd; border-radius: 4px; }
.q-progress .is-complete { background: #16351f; }
.q-body { padding: 24px; }
.q-step { font-size: 11px; color: #52634c; font-weight: 650; margin-bottom: 10px; }
#q-title { font: 750 clamp(24px, 4vw, 30px)/1.15 Sora, sans-serif; letter-spacing: -.04em; outline: none; text-align: left; }
.q-intro { margin: 12px 0 24px; color: #394c3d; font-size: 14px; line-height: 1.6; }
.q-choices, .q-experience { margin: 0; padding: 0; border: 0; min-width: 0; }
.q-choices { display: grid; gap: 10px; }
.q-choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 14px; border: 1px solid #b3c0ad; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 650; }
.q-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-choice:has(input:checked) { background: #c3f455; border-color: #16351f; }
.q-choice:has(input:focus-visible) { outline: 2px solid #16351f; outline-offset: 3px; }
.q-choice > .icon { width: 23px; height: 23px; }
.q-choice .q-choice-check { margin-left: auto; width: 18px; height: 18px; opacity: 0; }
.q-choice:has(input:checked) .q-choice-check { opacity: 1; }
.q-bottom { position: sticky; bottom: 0; display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 24px 20px; background: #f5f5ed; border-top: 1px solid #d7ddcd; }
.q-back { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-right: auto; background: transparent; color: #16351f; font-size: 13px; }
.q-back .icon { transform: rotate(180deg); width: 16px; height: 16px; }
.q-bottom .conversion-cta { min-width: 150px; justify-content: space-between; }
.q-field { display: block; font-size: 13px; font-weight: 750; }
.q-field > span { font-size: 11px; font-weight: 500; color: #52634c; }
.automation-questionnaire input:not([type="radio"]):not([type="checkbox"]), .automation-questionnaire textarea { display: block; width: 100%; min-width: 0; padding: 12px; margin-top: 7px; border: 1px solid #b3c0ad; border-radius: 10px; color: #16351f; background: #fff; font: 500 16px/1.5 Manrope, sans-serif; }
.automation-questionnaire input::placeholder, .automation-questionnaire textarea::placeholder { color: #52634c; font-weight: 400; }
.automation-questionnaire input:focus-visible, .automation-questionnaire textarea:focus-visible, .automation-questionnaire button:focus-visible, .automation-questionnaire a:focus-visible { outline: 2px solid #16351f; outline-offset: 3px; }
.automation-questionnaire textarea { resize: vertical; min-height: 130px; }
.q-search { display: flex; align-items: center; gap: 8px; border: 1px solid #b3c0ad; border-radius: 10px; padding-left: 12px; background: #fff; }
.q-search input[type="search"] { margin: 0; border: 0; font-size: 14px; }
.q-tool-count { font-size: 11px; margin: 12px 0 8px; }
.q-tool-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 220px; overflow: auto; padding: 3px; margin: -3px -3px 18px; }
.q-tool { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px; background: #e6e9dc; color: #16351f; border: 1px solid transparent; border-radius: 8px; font-size: 11px; font-weight: 650; text-align: left; }
.q-tool > img { flex-shrink: 0; object-fit: contain; }
.q-tool > .icon { width: 14px; height: 14px; margin-left: auto; opacity: 0; }
.q-tool[aria-pressed="true"] { background: #c3f455; border-color: #16351f; }
.q-tool[aria-pressed="true"] > .icon { opacity: 1; }
.q-check { display: flex; align-items: center; gap: 9px; min-height: 48px; margin-top: 8px; font-size: 12px; }
.q-check input { width: 18px; height: 18px; accent-color: #16351f; }
.q-experience + .q-experience { margin-top: 24px; }
.q-experience legend { font-weight: 750; font-size: 15px; margin-bottom: 12px; }
.q-experience > div { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.q-example-label { margin: 18px 0 8px; font-size: 12px; }
.q-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.q-examples button { min-height: 40px; padding: 8px 12px; background: #e6e9dc; color: #16351f; font-size: 12px; border-radius: 8px; }
.q-examples button[aria-pressed="true"] { background: #c3f455; }
.q-example { margin-top: 10px; padding: 12px; border-radius: 8px; background: #e6e9dc; font-size: 13px; }
.q-hint { margin-top: 12px; font-size: 11px; line-height: 1.6; color: #52634c; }
.q-context { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 12px; }
.q-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.q-time-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px; margin-top: 20px; border-radius: 14px; background: #e6e9dc; }
.q-time-icon { display: none; }
.q-time-panel > div { grid-column: 1 / -1; }
.q-time-panel strong { font-size: 15px; }
.q-time-panel p { font-size: 11px; margin-top: 4px; }
.q-error { margin-top: 16px; padding: 10px 12px; background: #f6e2d5; color: #79240c; font-size: 13px; border-radius: 8px; }
.q-email-ready { margin-top: 18px; padding: 16px; background: #c3f455; border-radius: 12px; font-size: 13px; }
.q-email-ready p { margin-top: 6px; }
.q-email-ready a, .q-email-ready button { display: flex; align-items: center; gap: 8px; min-height: 44px; background: transparent; color: #16351f; font-weight: 750; text-decoration: underline; font-size: 12px; padding: 0; }
@media (max-width: 620px) {
  .automation-questionnaire { width: calc(100% - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .q-top { padding: 12px 16px 8px; }
  .q-body { padding: 20px 16px; }
  .q-progress { padding-inline: 16px; }
  .q-bottom { padding: 12px 16px 16px; }
  .q-contact-grid { grid-template-columns: 1fr; }
  .q-time-panel { padding: 14px; }
  .q-tool-grid { max-height: 195px; }
  .q-intro { font-size: 13px; margin-bottom: 20px; }
}
.automation-questionnaire .q-search input[type="search"] { margin: 0; border: 0; background: transparent; }
/* Scroll questions between fixed header/footer; actions never cover inputs. */
.automation-questionnaire { overflow: hidden; }
.q-privacy-note { font-size: 11px; line-height: 1.8; margin: 0 0 20px; }
.q-privacy-note a { color: inherit; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }
.q-shell { display: flex; flex-direction: column; max-height: min(820px, calc(100dvh - 32px)); }
.q-top, .q-progress, .q-bottom { flex-shrink: 0; }
.q-shell > form { display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.q-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.q-bottom { position: static; }
@media (max-width: 620px) { .q-shell { max-height: calc(100dvh - 16px); } }
.automation-questionnaire { max-width: calc(100% - 16px); }
.q-time-panel { grid-template-columns: repeat(2,minmax(0,1fr)); }
.q-field { min-width: 0; }
@media (max-width: 420px) { .q-time-panel { grid-template-columns: minmax(0,1fr); } }
