/* ===== الاستبيان ===== */
.top-bar { display: flex; flex-direction: column; gap: 10px; }
.top-bar .row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.top-bar .row b { color: var(--olive); font-weight: 600; }
.top-bar .row span { color: var(--muted); }
.progress { height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.progress i { display: block; height: 6px; border-radius: 999px; background: var(--olive); transition: width .35s ease; }

.hero { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; padding-top: 8px; }
.hero .badge { width: 76px; height: 76px; border-radius: 24px; background: var(--olive); display: flex; align-items: center; justify-content: center; }
.hero h1 { margin: 0; font-size: 30px; font-weight: 700; }
.hero p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 300px; }

.q-title { margin: 0; font-size: 23px; line-height: 1.55; font-weight: 700; }
.q-help { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.q-help b { color: var(--olive); font-weight: 600; }

.opts { display: flex; flex-direction: column; gap: 12px; }
.opt {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 60px; padding: 12px 18px; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--surface);
  font-size: 16px; font-weight: 500; text-align: right; color: var(--text);
  transition: border-color .15s, background .15s, transform .1s;
}
.opt:active { transform: scale(.99); }
.opt .mark { width: 22px; height: 22px; border-radius: 999px; border: 1.5px solid #CFC2AA; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.opt.multi .mark { border-radius: 7px; }
.opt.on { border: 2px solid var(--olive); background: var(--white); font-weight: 600; }
.opt.on .mark { width: 26px; height: 26px; background: var(--olive); border-color: var(--olive); }
.opt.off { opacity: .45; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field textarea {
  min-height: 100px; padding: 14px; border-radius: 16px; border: 2px solid var(--border);
  background: var(--white); font-size: 15px; line-height: 1.7; resize: none;
}
.field textarea:focus { outline: none; border-color: var(--amber); }
.field .count { display: flex; justify-content: flex-end; font-size: 12px; color: var(--muted); }

/* الإيموجي */
.emoji-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.emoji-hero .big { width: 68px; height: 68px; border-radius: 22px; background: var(--white); border: 2px dashed var(--border-strong); display: flex; align-items: center; justify-content: center; font-size: 36px; line-height: 1; }
.emoji-hero .big.on { border: 2px solid var(--olive); }
.emoji-hero h1 { margin: 0; font-size: 22px; font-weight: 700; }
.emoji-hero p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 4px; border-radius: 14px; background: #EFE7DA; }
.tabs button { height: 44px; border: none; border-radius: 11px; background: transparent; color: var(--muted); font-size: 14px; }
.tabs button[aria-selected="true"] { background: var(--white); color: var(--text); font-weight: 600; }
.emoji-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.emoji-grid button { height: 50px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); font-size: 26px; line-height: 1; padding: 0; }
.emoji-grid button.on { border: 2px solid var(--olive); background: var(--white); }
.emoji-grid button:disabled { border-style: dashed; background: transparent; opacity: .3; }

/* المراجعة */
.review { display: flex; flex-direction: column; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.review > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.review > div:last-child { border-bottom: none; }
.review small { font-size: 12px; color: var(--muted); }
.review b { font-size: 15px; font-weight: 600; line-height: 1.7; }
.review b.empty { color: var(--muted); font-weight: 400; }

/* نتائج */
.done { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px 16px; border-radius: 20px; background: var(--green-tint); border: 1px solid var(--green-border); text-align: center; }
.done .ok { width: 44px; height: 44px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.done strong { font-size: 18px; font-weight: 700; color: var(--green-deep); }
.res-head { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; }
.res-head h1 { margin: 0; font-size: 22px; font-weight: 700; }
.res-head span { font-size: 14px; color: var(--olive); font-weight: 600; }

.state { flex-grow: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; text-align: center; }
.state .circle-ico { width: 88px; height: 88px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.state .circle-ico.ok { background: var(--green-tint); border: none; }
.state .circle-ico.ok i { width: 60px; height: 60px; border-radius: 999px; background: var(--green); display: flex; align-items: center; justify-content: center; }
.state h1 { margin: 0; font-size: 26px; font-weight: 700; }
.state p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--muted); max-width: 300px; }
.count-badge { padding: 2px 10px; border-radius: 999px; background: var(--amber); color: #2A2A24; font-size: 14px; font-weight: 700; }
.empty-note { text-align: center; color: var(--muted); font-size: 14px; padding: 30px 0; }
