/* ========================================
   LEAD CAPTURE SYSTEM — 360 Business Tour
   WhatsApp Button + Exit-Intent Popup
   ======================================== */

/* --- WhatsApp Floating Button --- */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: wa-pulse 2s infinite;
  text-decoration: none;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  animation: none;
}
.wa-float svg {
  width: 32px;
  height: 32px;
}
.wa-float .wa-tooltip {
  position: absolute;
  right: 72px;
  background: #333;
  color: #fff;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.wa-float .wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: #333;
  border-right: 0;
}
.wa-float:hover .wa-tooltip {
  opacity: 1;
}
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 211, 102, 0.6); }
}

/* --- Popup Overlay --- */
.lc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  padding: 16px;
}
.lc-overlay.lc-visible {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.7);
}

/* --- Modal --- */
.lc-modal {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.lc-overlay.lc-visible .lc-modal {
  transform: translateY(0) scale(1);
}

/* --- Close Button --- */
.lc-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: #999;
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.lc-close:hover {
  color: #333;
  background: #f3f4f6;
}

/* --- Typography --- */
.lc-badge {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
  letter-spacing: 0.02em;
}
.lc-title {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 8px;
  line-height: 1.3;
}
.lc-subtitle {
  font-size: 15px;
  color: #666;
  margin: 0 0 20px;
  line-height: 1.5;
}

/* --- Feature List --- */
.lc-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}
.lc-features li {
  padding: 7px 0 7px 28px;
  position: relative;
  font-size: 14px;
  color: #444;
  line-height: 1.4;
}
.lc-features li::before {
  content: '\2713';
  position: absolute;
  left: 2px;
  color: #22c55e;
  font-weight: 700;
  font-size: 15px;
}

/* --- Form --- */
.lc-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lc-input {
  padding: 14px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  -webkit-appearance: none;
}
.lc-input:focus {
  border-color: #FFD600;
}
.lc-input::placeholder {
  color: #9ca3af;
}
.lc-submit {
  padding: 15px;
  background: #FFD600;
  color: #1a1a1a;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.01em;
}
.lc-submit:hover {
  background: #f5cc00;
  transform: translateY(-1px);
}
.lc-submit:active {
  transform: translateY(0);
}
.lc-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* --- Privacy note --- */
.lc-privacy {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  margin: 12px 0 0;
}

/* --- Success State --- */
.lc-success {
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 0;
  text-align: center;
}
.lc-success p {
  font-size: 16px;
  color: #333;
  font-weight: 500;
  margin: 0;
}

/* --- Mobile --- */
@media (max-width: 640px) {
  .lc-modal {
    padding: 28px 20px;
    border-radius: 12px;
  }
  .lc-title {
    font-size: 20px;
  }
  .lc-subtitle {
    font-size: 14px;
  }
  .wa-float {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }
  .wa-float svg {
    width: 28px;
    height: 28px;
  }
  .wa-float .wa-tooltip {
    display: none;
  }
}
