/* VR360 Smart CTA Popup + Exit Intent */

/* --- Slide-in CTA (bottom right) --- */
#vr360-cta-popup {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99999;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
#vr360-cta-popup.vr360-cta-show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.vr360-cta-inner {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.15), 0 2px 8px rgba(115,71,245,.1);
  padding: 20px 22px;
  max-width: 320px;
  position: relative;
  border: 1px solid rgba(115,71,245,.15);
}
.vr360-cta-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  font-size: 22px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.vr360-cta-close:hover { color: #333; }
.vr360-cta-title {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}
.vr360-cta-desc {
  font-size: 13px;
  color: #555;
  margin: 0 0 14px;
  line-height: 1.5;
}
.vr360-cta-btns {
  display: flex;
  gap: 8px;
}
.vr360-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  cursor: pointer;
  border: none;
}
.vr360-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.vr360-cta-phone {
  background: linear-gradient(135deg, #7347f5 0%, #9b6dff 100%);
  color: #fff;
}
.vr360-cta-zalo {
  background: linear-gradient(135deg, #9b6dff 0%, #FBCDFF 100%);
  color: #1a1a2e;
  font-weight: 700;
}

/* --- Exit Intent Overlay (dark, aligned with Q&A lead form) --- */
#vr360-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(7,10,41,.88);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s ease;
  pointer-events: none;
}
#vr360-exit-overlay.vr360-exit-show {
  opacity: 1;
  pointer-events: auto;
}
.vr360-exit-modal {
  background: linear-gradient(160deg, #0f1029 0%, #1a1a2e 100%);
  border-radius: 20px;
  padding: 32px 28px;
  max-width: 380px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(115,71,245,.25);
  text-align: center;
  transform: scale(.9);
  transition: transform .3s ease;
}
#vr360-exit-overlay.vr360-exit-show .vr360-exit-modal {
  transform: scale(1);
}
.vr360-exit-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  color: rgba(255,255,255,.45);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.vr360-exit-close:hover { color: #fff; }
.vr360-exit-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.vr360-exit-desc {
  font-size: 14px;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  margin: 0 0 20px;
}
.vr360-exit-modal .vr360-cta-btns {
  justify-content: center;
}

/* --- Mobile --- */
@media (max-width: 600px) {
  #vr360-cta-popup { bottom: 12px; right: 12px; left: 12px; }
  .vr360-cta-inner { max-width: 100%; }
  .vr360-exit-modal { padding: 24px 20px; }
}
