.msg-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #111827;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
  z-index: 9998;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.msg-fab:hover {
  transform: translateY(-2px);
  background: #0836f7;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.22);
}

.msg-fab svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.msg-fab .icon-close,
.msg-fab.open .icon-msg {
  display: none;
}

.msg-fab.open .icon-close {
  display: block;
}

.msg-panel {
  position: fixed;
  right: 28px;
  bottom: 96px;
  width: 340px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.14), 0 4px 16px rgba(0, 0, 0, 0.08);
  z-index: 9997;
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease;
  font-family: 'Segoe UI', Arial, sans-serif;
}

.msg-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: all;
}

.msg-header {
  background: #111827;
  padding: 20px 22px 18px;
  position: relative;
}

.msg-header-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.msg-header-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.68);
}

.msg-header-dot {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
}

.msg-body {
  padding: 22px;
}

.msg-field {
  margin-bottom: 14px;
}

.msg-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.msg-label span {
  color: #dc2626;
  margin-left: 2px;
}

.msg-input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  color: #111827;
  background: #f9fafb;
  outline: none;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  box-sizing: border-box;
}

.msg-input:focus {
  border-color: #0836f7;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 54, 247, 0.08);
}

.msg-input.error {
  border-color: #dc2626;
}

textarea.msg-input {
  resize: none;
  height: 90px;
  line-height: 1.5;
}

.msg-submit {
  width: 100%;
  padding: 12px;
  background: #0836f7;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-top: 4px;
}

.msg-submit:hover {
  background: #062bc7;
}

.msg-submit:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.msg-success {
  display: none;
  text-align: center;
  padding: 32px 22px;
}

.msg-success-icon {
  width: 52px;
  height: 52px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.msg-success-icon svg {
  width: 26px;
  height: 26px;
  color: #16a34a;
}

.msg-success h3 {
  font-size: 20px;
  color: #111827;
  margin-bottom: 8px;
}

.msg-success p {
  font-size: 13.5px;
  color: #6b7280;
  line-height: 1.6;
}

.msg-error-text {
  font-size: 12px;
  color: #dc2626;
  margin-top: 4px;
  display: none;
}

.msg-footer {
  padding: 12px 22px;
  border-top: 1px solid #f3f4f6;
  text-align: center;
  font-size: 11px;
  color: #9ca3af;
}

@media (max-width: 480px) {
  .msg-panel {
    right: 12px;
    left: 12px;
    width: auto;
    bottom: 88px;
  }

  .msg-fab {
    right: 16px;
    bottom: 16px;
  }
}
