/* GPC New Wave Miskolc — Szkriptelt lead-capture chat widget (F1, 2026-07-23)
   NEM szabad AI / NEM LLM — előre megírt ágak, gombos választásokkal.
   Brand: piros #c02425 | arany #dbab32 | beige #f0e8d8 | sötét #1b1b1b (lásd brand.css)
   MEGJEGYZÉS: ez a _vercel_demo/ (Iván-demó) másolat — az élő iroda/ production
   NEM tartalmazza ezt a fájlt (Barni re-target döntése, 2026-07-23). */

.chat-bubble-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 900;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 8px 24px rgba(192,36,37,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.chat-bubble-btn:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 12px 28px rgba(192,36,37,0.45); }
.chat-bubble-btn svg { width: 26px; height: 26px; stroke: #fff; }
.chat-bubble-btn .chat-bubble-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid #fff;
}
.chat-bubble-btn.chat-hidden { display: none; }

.chat-panel {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 901;
  width: 380px;
  max-width: calc(100vw - 2rem);
  height: 600px;
  max-height: calc(100vh - 3rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.chat-panel.open { display: flex; }

.chat-panel-header {
  background: var(--dark);
  color: #fff;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-panel-header-title {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.chat-panel-header-title img { height: 26px; width: auto; }
.chat-panel-header-title div strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
}
.chat-panel-header-title div span {
  display: block;
  font-size: .7rem;
  color: var(--gold-light);
}
.chat-panel-close, .chat-panel-restart {
  background: rgba(255,255,255,0.08);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.chat-panel-close:hover, .chat-panel-restart:hover { background: rgba(255,255,255,0.18); }
.chat-panel-header-actions { display: flex; gap: .4rem; }

.chat-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--beige);
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.chat-msg {
  max-width: 84%;
  padding: .65rem .85rem;
  border-radius: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  line-height: 1.55;
  animation: chatFadeUp .25s ease forwards;
}
@keyframes chatFadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.chat-msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--text-body);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-msg.user {
  align-self: flex-end;
  background: var(--red);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-choices {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-top: .2rem;
}
.chat-choice-btn {
  background: #fff;
  border: 1.5px solid var(--red);
  color: var(--red);
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  font-weight: 600;
  padding: .6rem .85rem;
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.chat-choice-btn:hover { background: var(--red); color: #fff; }
.chat-choice-btn.chat-choice-gold { border-color: var(--gold-dark); color: var(--gold-dark); }
.chat-choice-btn.chat-choice-gold:hover { background: var(--gold); color: #fff; border-color: var(--gold); }

.chat-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
.chat-grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: .4rem; }

.chat-form-box {
  background: #fff;
  border-radius: 10px;
  padding: .9rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.chat-form-box .form-group { margin-bottom: .65rem; }
.chat-form-box label { font-size: .75rem; }
.chat-form-box input, .chat-form-box textarea {
  font-size: .82rem;
  padding: .55rem .7rem;
}
.chat-form-box .custom-checkbox span { font-size: .72rem; }
.chat-form-submit {
  width: 100%;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .7rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  cursor: pointer;
  margin-top: .3rem;
}
.chat-form-submit:hover { background: var(--red-dark); }
.chat-form-error {
  color: var(--red-dark);
  font-size: .75rem;
  margin-bottom: .5rem;
  display: none;
}

.chat-panel-footer {
  flex-shrink: 0;
  padding: .55rem .9rem;
  text-align: center;
  font-size: .68rem;
  color: var(--text-muted);
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.06);
}

@media (max-width: 480px) {
  .chat-panel {
    right: .5rem;
    left: .5rem;
    bottom: .5rem;
    width: auto;
    height: calc(100vh - 5.5rem);
  }
  .chat-bubble-btn { right: 1rem; bottom: 1rem; }
}
