/* ── Floating Chat Widget ───────────────────────────────────────────── */
:root { --fc-accent: #D10024; --fc-accent-dark: #9a0019; }

#fc-wrap {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  cursor: grab;
  user-select: none;
}
#fc-wrap.fc-dragging { cursor: grabbing; }

.fc-bubble {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 16px 16px 4px 16px;
  padding: 8px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
  box-shadow: 0 2px 10px rgba(0,0,0,0.13);
  max-width: 200px;
  pointer-events: none;
  animation: fc-pop .4s ease;
}
@keyframes fc-pop {
  from { opacity:0; transform:scale(.8) translateY(8px); }
  to   { opacity:1; transform:scale(1) translateY(0); }
}

.fc-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--fc-accent);
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s, box-shadow .15s;
  flex-shrink: 0;
  outline: none;
}
.fc-btn:hover { transform: scale(1.1); box-shadow: 0 6px 18px rgba(0,0,0,0.32); }

/* ── Panel ──────────────────────────────────────────────────────────── */
#fc-panel {
  position: fixed;
  bottom: 90px;
  right: 24px;
  width: 310px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  z-index: 9998;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
#fc-panel.fc-open {
  display: flex;
  animation: fc-slide .22s ease;
}
@keyframes fc-slide {
  from { opacity:0; transform:translateY(14px); }
  to   { opacity:1; transform:translateY(0); }
}

.fc-head {
  background: var(--fc-accent);
  color: #fff;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 14px;
  gap: 8px;
}
.fc-head-title { display:flex; align-items:center; gap:6px; }
.fc-close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  border-radius: 4px;
  opacity: .85;
  transition: opacity .15s;
}
.fc-close-btn:hover { opacity: 1; }

.fc-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.fc-field { display:flex; flex-direction:column; gap:4px; }
.fc-label { font-size:12px; font-weight:600; color:#555; }
.fc-input, .fc-textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
  outline: none;
  transition: border-color .15s;
}
.fc-input:focus, .fc-textarea:focus { border-color: var(--fc-accent); }
.fc-textarea { resize: vertical; min-height: 72px; }

.fc-submit {
  background: var(--fc-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  transition: background .15s;
  font-family: inherit;
}
.fc-submit:hover:not(:disabled) { background: var(--fc-accent-dark); }
.fc-submit:disabled { background: #bbb; cursor: default; }

.fc-status {
  font-size: 12.5px;
  text-align: center;
  min-height: 16px;
  color: #666;
}
.fc-status.fc-ok  { color: #28a745; font-weight:600; }
.fc-status.fc-err { color: var(--fc-accent); font-weight:600; }

/* mobile */
@media (max-width: 420px) {
  #fc-panel { width: calc(100vw - 20px); right: 10px; bottom: 82px; }
  #fc-wrap  { right: 10px; bottom: 16px; }
}
