/* ============================================================
   KAMA feedback widget — a small friendly Kama character that
   opens a little window to leave feedback. Loaded site-wide
   (via site-header.js) and on the quiz (direct tag).
   ============================================================ */

.kf-fab {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 900;
  display: flex; align-items: center; gap: 0.5rem;
  background: #F4ECE0; color: #1B1712;
  border: 1.5px solid rgba(27,23,18,0.1);
  border-radius: 99rem; padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  box-shadow: 0 10px 28px rgba(20,16,10,0.18);
  cursor: pointer; font-family: 'Karla', sans-serif; font-size: 0.9rem; font-weight: 700;
  transition: transform 0.18s, box-shadow 0.18s;
}
.kf-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(20,16,10,0.24); }
.kf-fab-face { width: 2.2rem; height: 2.2rem; flex: none; display: block; }
.kf-fab-label { white-space: nowrap; }
@media (max-width: 560px) {
  .kf-fab { padding: 0.35rem; }
  .kf-fab-label { display: none; }
}

.kf-panel {
  position: fixed; bottom: 5.4rem; right: 1.25rem; z-index: 1001;
  width: min(340px, calc(100vw - 2rem));
  background: #FFF8F2; border-radius: 20px;
  box-shadow: 0 24px 60px rgba(20,16,10,0.28);
  border: 1px solid rgba(27,23,18,0.08);
  font-family: 'Karla', sans-serif;
  padding: 1.4rem 1.4rem 1.5rem;
  display: none;
}
.kf-panel.open { display: block; }
.kf-close { position: absolute; top: 0.85rem; right: 1rem; background: none; border: none; font-size: 1.4rem; color: #8887A3; cursor: pointer; line-height: 1; padding: 0.15rem; }
.kf-close:hover { color: #1B1712; }
.kf-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.25rem; }
.kf-head-face { width: 2.3rem; height: 2.3rem; flex: none; display: block; }
.kf-eyebrow { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #9E4B32; }
.kf-title { font-family: 'Reckless Neue', Georgia, serif; font-weight: 400; font-size: 1.25rem; line-height: 1.2; color: #1B1712; margin: 0.15rem 0 0.9rem; }
.kf-textarea { width: 100%; box-sizing: border-box; font-family: 'Karla', sans-serif; font-size: 0.92rem; color: #1B1712; background: #fff; border: 1.5px solid rgba(27,23,18,0.15); border-radius: 12px; padding: 0.8rem 0.9rem; resize: vertical; min-height: 92px; outline: none; transition: border-color 0.2s; margin-bottom: 0.7rem; }
.kf-textarea:focus { border-color: #9E4B32; }
.kf-email { width: 100%; box-sizing: border-box; font-family: 'Karla', sans-serif; font-size: 0.92rem; color: #1B1712; background: #fff; border: 1.5px solid rgba(27,23,18,0.15); border-radius: 12px; padding: 0.72rem 0.9rem; outline: none; transition: border-color 0.2s; margin-bottom: 0.9rem; }
.kf-email:focus { border-color: #9E4B32; }
.kf-submit { width: 100%; font-family: 'Karla', sans-serif; font-size: 0.98rem; font-weight: 700; background: #F1DF9C; color: #1B1712; border: none; border-radius: 99rem; padding: 0.85rem; cursor: pointer; transition: background 0.2s; }
.kf-submit:hover { background: #E6CE6E; }
.kf-success { display: none; text-align: center; padding: 0.5rem 0 0.3rem; }
.kf-success.show { display: block; }
.kf-success .kf-mark { font-size: 2rem; color: #9E4B32; margin-bottom: 0.5rem; line-height: 1; }
.kf-hint { font-size: 0.74rem; color: #6B6A89; line-height: 1.5; }
