/* --- GYORSÜZENET PANEL (végleges, nem lóg ki sehol) --- */
.quick-message {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* 💬 Lebegő gomb */
.msg-btn {
  background: var(--red);
  color: #fff;
  border: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.msg-btn:hover {
  background: #a00d19;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* 💬 Üzenetpanel */
.msg-panel {
  position: fixed;
  bottom: 90px;
  right: clamp(10px, 2vw, 20px); /* ✅ dinamikus margó */
  width: min(320px, 90vw);       /* ✅ nem lehet szélesebb a kijelző 90%-ánál */
  background: #fff;
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transform: translateY(25px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-sizing: border-box; /* ✅ számolja bele a paddinget */
}

.msg-panel.show {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Bezárás gomb */
.close-msg {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s ease;
}
.close-msg:hover {
  color: var(--red);
}

/* Cím */
.msg-panel h3 {
  margin: 0;
  color: #222;
  font-size: 1.25rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Label */
.msg-panel label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
  display: block;
}

/* Input + textarea */
.msg-panel input,
.msg-panel textarea {
  width: 100%;
  border: 1.5px solid #ccc;
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #fafafa;
  color: #111;
  transition: all 0.25s ease;
  margin-bottom: 0.7rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.msg-panel textarea {
  resize: vertical;
  min-height: 90px;
}

.msg-panel input:focus,
.msg-panel textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(194, 28, 36, 0.15);
}

/* Küldés gomb */
.btn-send {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.8rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  margin-top: 0.3rem;
}

.btn-send:hover {
  background: #a00d19;
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.2);
}

/* 📱 Mobil */
@media (max-width: 768px) {
  .msg-panel {
    left: 50%;
    right: auto;
    transform: translate(-50%, 25px);
    width: 92%;
    bottom: 85px;
    padding: 1.4rem;
  }

  .msg-panel.show {
    transform: translate(-50%, 0);
  }

  .msg-btn {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }
}
