/* ===== Mansour Computer Solutions - Popup System ===== */
/* 3-Tier popup system: Yes/No bubble, Lead Magnet, Exit Intent */

/* ===== Shared Popup Overlay ===== */
.mcs-popup-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mcs-popup-overlay.mcs-show {
  display: flex;
  opacity: 1;
}

/* ===== Tier 1: Small Yes/No Bubble (Bottom Left) ===== */
.mcs-bubble-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  padding: 22px 26px;
  max-width: 320px;
  display: none;
  animation: mcsBubbleSlideIn 0.5s ease forwards;
}
.mcs-bubble-popup.mcs-show {
  display: block;
}
.mcs-bubble-popup h3 {
  margin: 0 0 16px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #0f172a;
  font-weight: 700;
}
.mcs-bubble-buttons {
  display: flex;
  gap: 10px;
  align-items: center;
}
.mcs-btn-no {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 10px 18px;
  font-weight: 500;
  transition: color 0.15s ease;
}
.mcs-btn-no:hover { color: #1e293b; }
.mcs-btn-yes {
  background: #fff;
  border: 2px solid #22c5d8;
  color: #1e293b;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mcs-btn-yes:hover {
  background: #22c5d8;
  color: #fff;
  transform: translateY(-1px);
}
.mcs-bubble-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.mcs-bubble-close:hover { color: #475569; }

@keyframes mcsBubbleSlideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ===== Tier 2: Lead Magnet Center Popup ===== */
.mcs-magnet-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 540px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
  text-align: center;
  animation: mcsMagnetPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.mcs-magnet-popup h2 {
  font-size: 1.7rem;
  color: #ff7a00;
  margin: 0 0 14px;
  line-height: 1.25;
  font-weight: 800;
}
.mcs-magnet-popup p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin: 0 0 18px;
}
.mcs-magnet-popup .mcs-magnet-tagline {
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 22px;
}
.mcs-magnet-popup .mcs-magnet-gift {
  background: #fff7ed;
  border: 2px solid #fed7aa;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.mcs-magnet-gift-icon {
  font-size: 2rem;
  flex-shrink: 0;
}
.mcs-magnet-gift-text {
  font-size: 0.9rem;
  color: #1e293b;
  line-height: 1.4;
}
.mcs-magnet-popup form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.mcs-magnet-popup input {
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s ease;
}
.mcs-magnet-popup input:focus {
  outline: none;
  border-color: #22c5d8;
}
.mcs-magnet-popup .mcs-magnet-submit {
  background: #ff7a00;
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.15s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.mcs-magnet-popup .mcs-magnet-submit:hover {
  background: #e96a00;
  transform: translateY(-1px);
}
.mcs-magnet-popup .mcs-magnet-trust {
  font-size: 0.78rem;
  color: #94a3b8;
  margin: 0;
}
.mcs-magnet-popup .mcs-magnet-trust span {
  margin: 0 8px;
}
.mcs-popup-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: rgba(15, 23, 42, 0.06);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.mcs-popup-close:hover {
  background: rgba(15, 23, 42, 0.12);
  color: #1e293b;
}

@keyframes mcsMagnetPop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ===== Tier 3: Exit Intent (similar to magnet but different copy) ===== */
.mcs-exit-popup {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 480px;
  width: 100%;
  padding: 40px 36px;
  position: relative;
  text-align: center;
  animation: mcsMagnetPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.mcs-exit-popup .mcs-exit-badge {
  display: inline-block;
  background: #fef2f2;
  color: #dc2626;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.mcs-exit-popup h2 {
  font-size: 1.6rem;
  color: #0f172a;
  margin: 0 0 12px;
  line-height: 1.3;
  font-weight: 800;
}
.mcs-exit-popup p {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.55;
  margin: 0 0 20px;
}
.mcs-exit-popup form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.mcs-exit-popup input {
  padding: 14px 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 1rem;
}
.mcs-exit-popup input:focus { outline: none; border-color: #22c5d8; }
.mcs-exit-popup .mcs-exit-submit {
  background: #22c5d8;
  color: #fff;
  border: none;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
}
.mcs-exit-popup .mcs-exit-submit:hover { background: #1ba6b8; }

/* ===== Success State (after form submit) ===== */
.mcs-popup-success {
  text-align: center;
  padding: 20px 0;
}
.mcs-popup-success-icon {
  font-size: 3rem;
  margin-bottom: 12px;
  display: block;
}
.mcs-popup-success h3 {
  color: #22c5d8;
  margin: 0 0 8px;
  font-size: 1.4rem;
}
.mcs-popup-success p {
  color: #475569;
  margin: 0;
}

/* ===== Mobile Responsive ===== */
@media (max-width: 600px) {
  .mcs-bubble-popup {
    bottom: 90px;  /* Stay above sticky CTAs */
    left: 12px;
    right: 12px;
    max-width: none;
    padding: 18px 22px;
  }
  .mcs-bubble-popup h3 { font-size: 0.95rem; }
  .mcs-magnet-popup,
  .mcs-exit-popup {
    padding: 30px 22px;
  }
  .mcs-magnet-popup h2,
  .mcs-exit-popup h2 {
    font-size: 1.35rem;
  }
  .mcs-magnet-popup p,
  .mcs-exit-popup p {
    font-size: 0.92rem;
  }
}
