/* ── Feedback form layout ─────────────────────────────────────────── */

.feedback-main {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

/* QR share banner */
.qr-banner {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.qr-canvas-wrap {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  background: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.qr-canvas-wrap canvas,
.qr-canvas-wrap img { display: block; width: 96px !important; height: 96px !important; }
.qr-banner-text { flex: 1; min-width: 0; }
.qr-banner-title { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.qr-banner-sub { font-size: 12px; color: var(--muted-foreground); margin: 0 0 14px; }

/* Social share buttons */
.qr-share-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.qr-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 100px;
  border: 1.5px solid var(--glass-border);
  background: var(--background);
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.qr-share-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.qr-share-btn:hover { border-color: currentColor; }
.qr-share-wa  { color: #25d366; }
.qr-share-wa:hover  { background: rgba(37,211,102,.1); }
.qr-share-tw  { color: var(--foreground); }
.qr-share-tw:hover  { background: var(--glass-border); }
.qr-share-tg  { color: #2aabee; }
.qr-share-tg:hover  { background: rgba(42,171,238,.1); }
.qr-share-native { color: var(--muted-foreground); }
.qr-share-native:hover { background: var(--glass-border); }

/* Form hero */
.feedback-hero {
  margin-bottom: 32px;
}
.feedback-hero .page-eyebrow { margin-bottom: 6px; }
.feedback-hero h1 { margin-bottom: 10px; }
.feedback-hero p {
  font-size: 15px;
  color: var(--muted-foreground);
  margin: 0;
  line-height: 1.6;
}

/* Progress bar */
.fb-progress {
  height: 3px;
  background: var(--glass-border);
  border-radius: 99px;
  margin-bottom: 32px;
  overflow: hidden;
}
.fb-progress-fill {
  height: 100%;
  background: var(--accent, #6366f1);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

/* Section divider */
.fb-section {
  margin-bottom: 8px;
}
.fb-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 12px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--glass-border);
}
.fb-section-icon { font-size: 18px; }
.fb-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Question card */
.q-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 12px 0;
}
.q-meta {
  font-size: 11px;
  color: var(--muted-foreground);
  margin: 0 0 8px;
  font-weight: 500;
}
.q-text {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px;
  line-height: 1.4;
}
.q-sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin: -10px 0 14px;
}

/* Emoji scale — 5-option horizontal */
.emoji-scale {
  display: flex;
  gap: 6px;
}
.emoji-scale .eo {
  position: relative;
  flex: 1;
}
.emoji-scale .eo input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.emoji-scale .eo label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px 4px;
  border-radius: var(--radius);
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  text-align: center;
  font-size: 10.5px;
  line-height: 1.3;
  color: var(--muted-foreground);
  background: var(--background);
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  min-height: 76px;
  justify-content: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.emoji-scale .eo label .e { font-size: 22px; line-height: 1; display: block; }
.emoji-scale .eo input:checked + label {
  border-color: var(--accent, #6366f1);
  background: color-mix(in srgb, var(--accent, #6366f1) 15%, transparent);
  color: var(--foreground);
}
.emoji-scale .eo label:hover { border-color: var(--accent, #6366f1); transform: translateY(-2px); }
.emoji-scale .eo label:active { transform: scale(0.97); }

/* Chip multi-select */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-grid .co {
  position: relative;
}
.chip-grid .co input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.chip-grid .co label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  font-size: 13px;
  background: var(--background);
  color: var(--muted-foreground);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.chip-grid .co label .ce { font-size: 16px; }
.chip-grid .co input:checked + label {
  border-color: var(--accent, #6366f1);
  background: color-mix(in srgb, var(--accent, #6366f1) 15%, transparent);
  color: var(--foreground);
}
.chip-grid .co label:hover { border-color: var(--accent, #6366f1); }

/* Q6 — 5 stacked single-choice chips */
.answer-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.answer-list .ao {
  position: relative;
}
.answer-list .ao input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.answer-list .ao label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--glass-border);
  cursor: pointer;
  font-size: 14px;
  background: var(--background);
  color: var(--muted-foreground);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.answer-list .ao label .ae { font-size: 18px; }
.answer-list .ao input:checked + label {
  border-color: var(--accent, #6366f1);
  background: color-mix(in srgb, var(--accent, #6366f1) 15%, transparent);
  color: var(--foreground);
}
.answer-list .ao label:hover { border-color: var(--accent, #6366f1); }

/* Validation error highlight */
.q-card.has-error {
  border-color: #ef4444;
}
.q-card.has-error .q-text::after {
  content: ' *';
  color: #ef4444;
}

/* Submit area */
.fb-submit-area {
  padding: 32px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.fb-submit-area .btn-primary {
  min-width: 200px;
  justify-content: center;
}
.fb-submit-note {
  font-size: 12px;
  color: var(--muted-foreground);
  text-align: center;
  margin: 0;
}
.fb-error-banner {
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Success screen */
.fb-success {
  display: none;
  text-align: center;
  padding: 60px 20px;
}
.fb-success.visible { display: block; }
.fb-success-icon { font-size: 56px; margin-bottom: 16px; }
.fb-success h2 { margin: 0 0 10px; font-size: 24px; }
.fb-success p { color: var(--muted-foreground); font-size: 15px; margin: 0; }

/* Mobile */
@media (max-width: 540px) {
  /* Banner stays as a row — QR left, content right */
  .qr-banner { flex-direction: row; align-items: center; gap: 14px; padding: 16px; }

  /* Shrink QR to 72px */
  .qr-canvas-wrap { width: 72px; height: 72px; border-radius: 6px; }
  .qr-canvas-wrap canvas,
  .qr-canvas-wrap img { width: 72px !important; height: 72px !important; }

  .qr-banner-title { font-size: 13px; margin-bottom: 2px; }
  .qr-banner-sub   { font-size: 11px; margin-bottom: 10px; line-height: 1.4; }

  /* Icon-only circle buttons in a single row of 4 */
  .qr-share-btns { gap: 8px; flex-wrap: nowrap; }
  .qr-share-btn {
    width: 36px; height: 36px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    flex-shrink: 0;
  }
  .qr-share-btn svg { width: 16px; height: 16px; }
  .qr-share-btn .btn-label { display: none; }
  .emoji-scale { gap: 4px; }
  .emoji-scale .eo label { font-size: 9.5px; padding: 8px 2px; min-height: 68px; }
  .emoji-scale .eo label .e { font-size: 20px; }
  .chip-grid .co label { font-size: 12px; padding: 7px 12px; }
}
