/* questions.css — the question controls, shared by the public application flow
   and the builder preview in the office. Big tap targets: this is a phone form. */
.qz { display: flex; flex-direction: column; gap: 10px; animation: pop .3s ease both; }
.qz-label { font-size: 20px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
.qz-label .req { color: var(--accent); }
.qz-help { margin: -4px 0 0; color: var(--muted); font-size: 14px; }
.qz-statement { font-size: 17px; line-height: 1.55; color: #d9d3e8; }
.qz-statement p { margin: 0 0 10px; }
.qz-error { min-height: 18px; font-size: 13.5px; color: var(--red); font-weight: 600; }
.qz input[type=text], .qz input[type=email], .qz input[type=number], .qz input[type=date], .qz textarea {
  font-size: 17px; padding: 13px 15px; border-radius: 12px; width: 100%;
}
.qz.has-error input, .qz.has-error textarea { border-color: var(--red); }
.qz-ta { position: relative; }
.qz-count { position: absolute; right: 12px; bottom: 10px; font-size: 12px; color: var(--muted); pointer-events: none; }

.qz-opts { display: flex; flex-direction: column; gap: 9px; }
.qz-opts.yn { flex-direction: row; }
.qz-opts.yn .opt { flex: 1; justify-content: center; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%;
  padding: 13px 15px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); font-size: 15.5px; font-weight: 600; line-height: 1.35;
  transition: transform .12s ease, border-color .15s ease, background .2s ease, box-shadow .2s ease;
}
.opt:hover { background: var(--panel2); border-color: #3a3050; }
.opt:active { transform: scale(.985); }
.opt.on { border-color: transparent; background: linear-gradient(var(--panel2), var(--panel2)) padding-box, var(--grad) border-box; box-shadow: 0 6px 22px rgba(147, 51, 234, .3); }
.opt-mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); position: relative; transition: border-color .15s ease; }
.opt-mark.sq { border-radius: 6px; }
.opt.on .opt-mark { border-color: var(--accent); }
.opt.on .opt-mark::after { content: ''; position: absolute; inset: 4px; border-radius: inherit; background: var(--grad); }
.opt-label { flex: 1; }

.qz-rating { display: flex; gap: 8px; }
.star { flex: 1; aspect-ratio: 1; max-width: 64px; border-radius: 12px; font-size: 18px; font-weight: 800; background: var(--panel); border: 1px solid var(--line); color: var(--muted); }
.star.on { background: var(--grad); color: #fff; border-color: transparent; }

.qz-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; cursor: pointer; }
.qz-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.qz-filename { color: var(--muted); font-size: 14px; }

.qz-consent { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 13px; background: var(--panel); border: 1px solid var(--line); cursor: pointer; font-size: 14.5px; line-height: 1.5; color: #d9d3e8; }
.qz-consent input { width: 22px; height: 22px; flex: none; margin-top: 2px; accent-color: var(--accent); }

@media (max-width: 600px) { .qz-label { font-size: 19px; } .qz-opts.yn { flex-direction: column; } }
