/* Phiếu góp ý */
.survey-page { background: var(--paper-deep); }
.sv { width: 100%; max-width: 820px; margin-inline: auto; padding: clamp(18px, 3.4vw, 36px) var(--gutter) 60px; }

.sv-head { margin-bottom: 22px; }
.sv-head h1 { font-size: clamp(2.2rem, 6.4vw, 3.4rem); line-height: 1.04; margin: 0 0 .22em; max-width: 17em; }
.sv-sub { margin: 0; font-weight: 500; color: var(--ink-soft); }
.sv-intro {
  margin: 16px 0 0; padding: 14px 18px; background: var(--bubble);
  border: 1.5px solid var(--ink); border-radius: 18px;
}
.sv-seen { margin: 12px 0 0; font-size: .92rem; color: var(--ink-soft); }

.q {
  margin: 0 0 16px; padding: clamp(14px, 2.4vw, 22px); min-width: 0;
  background: var(--paper); border: 1.5px solid var(--ink);
}
.q legend {
  float: left; width: 100%; padding: 0; margin-bottom: 12px;
  font-weight: 600; font-size: 1.05rem; line-height: 1.4;
}
.q legend + * { clear: both; }
.q-hint { display: block; font-weight: 400; font-size: .92rem; color: var(--ink-soft); margin-top: 2px; }
.q-group { margin: 22px 0 10px; font: 400 1.4rem/1.2 var(--hand); }

.opts { display: grid; gap: 8px; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); }
.opts-4 { --cols: 4; }
.opts-3 { --cols: 3; }
@media (max-width: 620px) {
  .opts-4 { --cols: 2; }
}

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opt > span {
  display: flex; align-items: center; gap: 10px; height: 100%; min-height: 50px; padding: 9px 12px;
  background: var(--paper); border: 1.5px solid rgba(34, 49, 53, .42); border-radius: 4px;
  line-height: 1.3; transition: background-color .12s, border-color .12s;
}
.opt > span::before {
  content: ""; flex: none; width: 20px; height: 20px; background: var(--paper);
  border: 1.5px solid var(--ink); border-radius: 50%;
}
.opt input[type="checkbox"] + span::before { border-radius: 3px; }
.opt:hover > span { background: #f6f3e7; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt input:checked + span { background: var(--bubble); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); font-weight: 500; }
.opt input:checked + span::before {
  background: var(--accent);
  box-shadow: inset 0 0 0 3px var(--paper);
}

/* Thang đồng ý: mỗi mức giữ nguyên nhãn đầy đủ như phiếu giấy */
.scale { display: grid; gap: 8px; grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(0, 1.25fr); }
.scale .opt > span { flex-direction: column; justify-content: flex-start; gap: 4px; padding: 10px 6px; text-align: center; font-size: .84rem; line-height: 1.25; }
.scale .opt > span::before { display: none; }
.scale-n { font: 400 1.5rem/1 var(--hand); }
.scale .opt-na > span { justify-content: center; color: var(--ink-soft); }
.scale .opt input:checked + span { color: var(--ink); }
@media (max-width: 680px) {
  .scale { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .scale .opt > span { padding: 8px 3px; font-size: .74rem; }
  .scale .opt-na { grid-column: 1 / -1; }
  .scale .opt-na > span { min-height: 44px; font-size: .9rem; }
}

.q-note { margin: 8px 0 0; font-size: .92rem; font-weight: 500; color: var(--accent-deep); }
.q-note:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sv-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.sv-actions .btn { min-width: 180px; font-size: 1.05rem; }
.form-msg { flex: 1 1 240px; margin: 0; font-weight: 500; color: var(--accent-deep); }
.form-msg:empty { display: none; }

.thanks { padding: clamp(24px, 5vw, 44px) clamp(16px, 4vw, 36px); background: var(--paper); border: 2px solid var(--ink); text-align: center; }
.thanks:focus { outline: none; }
.thanks .bubble { font-size: clamp(1.6rem, 5vw, 2.5rem); max-width: 100%; margin: 0; }
.thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 18px; }
