/* Public questionnaire pages (take.html, set.html, message.html). Colours come from the theme (currentColor,
   inherited text); only the error colour is fixed. */
.nsq{max-width:760px; text-align:left}
.nsq h1{margin-bottom:.4em}
.nsq-for{margin:-.2em 0 1em; opacity:.75}
.nsq-intro{margin:0 0 1.2em}
.nsq-progress{margin:.4em 0 .3em; font-size:.9em; opacity:.75}
.nsq-bar{height:6px; border-radius:3px; background:color-mix(in srgb, currentColor 12%, transparent); margin-bottom:1.4em; overflow:hidden}
.nsq-bar span{display:block; height:100%; background:currentColor; opacity:.55}
.nsq-alert{padding:.6em .9em; border-left:4px solid #b3001b; background:color-mix(in srgb, #b3001b 7%, transparent); margin:0 0 1.2em}
.nsq-section{margin:1.6em 0 .6em}
.nsq-info{margin:0 0 1.2em}
.nsq-q{border:0; padding:0; margin:0 0 1.6em; min-width:0}
.nsq-q > legend, .nsq-q > label{display:block; font-weight:600; margin-bottom:.45em; padding:0}
.nsq-q input[type=text], .nsq-q textarea{width:100%; box-sizing:border-box; font:inherit; padding:.5em .6em;
  border:1px solid color-mix(in srgb, currentColor 35%, transparent); border-radius:4px; background:transparent; color:inherit}
.nsq-q.bad input[type=text], .nsq-q.bad textarea{border-color:#b3001b}
.nsq-help{margin:-.2em 0 .5em; font-size:.9em; opacity:.75}
.nsq-req{color:#b3001b}
.nsq-err{margin:.4em 0 0; color:#b3001b; font-size:.92em}
.nsq-choices{display:flex; flex-direction:column; gap:.35em}
.nsq-choices.inline, .nsq-choices.likert{flex-direction:row; flex-wrap:wrap; gap:.4em 1.4em}
.nsq-choice{display:flex; align-items:flex-start; gap:.5em; cursor:pointer; font-weight:normal}
.nsq-choice input{margin-top:.25em; flex:none}
.nsq-buttons{display:flex; gap:.8em; justify-content:flex-end; margin-top:1.4em}
.nsq-buttons button{font:inherit; padding:.55em 1.6em; cursor:pointer}
.nsq-buttons .nsq-back{margin-right:auto}
.nsq-note{font-size:.85em; opacity:.7; margin-top:1em}
.nsq-trap{position:absolute; left:-10000px; width:1px; height:1px; overflow:hidden}
.nsq-set{width:100%; border-collapse:collapse}
.nsq-set th, .nsq-set td{text-align:left; padding:.5em .6em; border-bottom:1px solid color-mix(in srgb, currentColor 18%, transparent); vertical-align:top}
.nsq-set td p{margin:0}
@media (max-width:600px){.nsq-choices.likert{flex-direction:column}}

/* the contact details block on the last page (Questionnaire.contact_details) */
.nsq-contact { border: 1px solid currentColor; border-radius: 4px; padding: .75rem 1rem; margin: 1.25rem 0; }
.nsq-contact legend { font-weight: 600; padding: 0 .35rem; }
.nsq-row { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.nsq-row > .nsq-q { flex: 1 1 12rem; }
