#cmg-contact-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* BUTTON */
#cmg-contact-button {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2px;

  box-shadow: 0 10px 30px rgba(59,130,246,0.35);
  transition: all 0.2s ease;
}

#cmg-contact-button:hover {
  background: #2f6fe0;
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(59,130,246,0.45);
}

/* POPUP */
#cmg-contact-popup {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;

  background: #111c33;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);

  box-shadow: 0 25px 70px rgba(0,0,0,0.6);

  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: all 0.25s ease;
}

#cmg-contact-popup.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* HEADER */
.cmg-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 14px 16px;
  font-weight: 600;
  font-size: 14px;

  background: #0f1a2e;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

#cmg-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #94a3b8;
}

#cmg-close:hover {
  color: #fff;
}

/* BODY */
.cmg-body {
  padding: 16px;
  font-size: 14px;
  color: #b8c2d9;
  line-height: 1.5;
}

.cmg-sub {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 4px;
}

/* BUTTONS */
.cmg-buttons {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmg-btn {
  text-decoration: none;
  text-align: center;
  padding: 11px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.cmg-btn.primary {
  background: #3b82f6;
  color: #fff;
  border: none;
}

.cmg-btn.primary:hover {
  background: #2f6fe0;
  transform: translateY(-1px);
}

.cmg-btn.secondary {
  background: transparent;
  color: #3b82f6;
  border: 1px solid #3b82f6;
}

.cmg-btn.secondary:hover {
  background: #3b82f6;
  color: #fff;
  transform: translateY(-1px);
}

.cmg-btn.reddit-outline {
  background: transparent;
  color: #ff4500;
  border: 1px solid rgba(255, 69, 0, 0.6);
}

.cmg-btn.reddit-outline:hover {
  background: rgba(255, 69, 0, 0.08);
  border-color: #ff4500;
  transform: translateY(-1px);
}

/* HONEYPOT */
#cmg-website {
  display: none;
}

/* MOBILE */
@media (max-width: 480px) {
  #cmg-contact-popup {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 80px;

    width: auto;
    max-width: calc(100vw - 24px);

    transform: none;
  }
}

/* ============================= */
/* INPUT FIX (iOS SAFARI SAFE)   */
/* ============================= */

#cmg-contact-widget input,
#cmg-contact-widget textarea {
  background-color: #0f172a !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;

  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 12px;

  -webkit-appearance: none !important;
  appearance: none !important;

  background-clip: padding-box !important;
}

/* iOS Safari autofill HARD override */
#cmg-contact-widget input:-webkit-autofill,
#cmg-contact-widget textarea:-webkit-autofill,
#cmg-contact-widget input:-webkit-autofill:focus,
#cmg-contact-widget textarea:-webkit-autofill:focus,
#cmg-contact-widget input:-webkit-autofill:hover,
#cmg-contact-widget textarea:-webkit-autofill:hover,
#cmg-contact-widget input:-webkit-autofill:active,
#cmg-contact-widget textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #0f172a inset !important;
  box-shadow: 0 0 0 1000px #0f172a inset !important;

  -webkit-text-fill-color: #ffffff !important;
  color: #ffffff !important;

  background-color: #0f172a !important;
  background-image: none !important;
}
#cmg-contact-widget button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(20%);
  transform: none !important;
  box-shadow: none !important;
}