/* Popup Lead Form Styles */
.lead-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease-in-out;
}

.lead-popup-overlay.active {
  display: flex;
}

.lead-popup-content {
  background: white;
  border-radius: 15px;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: bounceIn 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.lead-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 35px;
  height: 35px;
  background: #f5f5f5;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  z-index: 10;
}

.lead-popup-close:hover {
  background: #faa432;
  color: white;
  transform: rotate(90deg);
}

.lead-popup-header {
  background: linear-gradient(135deg, #0d9b4d 0%, #0a7a3d 100%);
  padding: 30px 20px;
  border-radius: 15px 15px 0 0;
  text-align: center;
  color: white;
}

.lead-popup-header h2 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  color: white;
}

.lead-popup-header p {
  margin: 0;
  font-size: 16px;
  color: white;
  opacity: 0.95;
}

.lead-popup-body {
  padding: 30px 25px;
}

.lead-popup-form .form-group {
  margin-bottom: 20px;
}

.lead-popup-form label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-weight: 600;
  font-size: 14px;
}

.lead-popup-form input,
.lead-popup-form select,
.lead-popup-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  transition: border-color 0.3s;
  font-family: inherit;
}

.lead-popup-form input:focus,
.lead-popup-form select:focus,
.lead-popup-form textarea:focus {
  outline: none;
  border-color: #0d9b4d;
  box-shadow: 0 0 0 3px rgba(13, 155, 77, 0.1);
}

.lead-popup-form textarea {
  min-height: 100px;
  resize: vertical;
}

.lead-popup-submit {
  width: 100%;
  padding: 15px;
  background: #faa432;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.lead-popup-submit:hover {
  background: #e89420;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(250, 164, 50, 0.3);
}

.lead-popup-submit:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.lead-popup-message {
  margin-top: 15px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
  text-align: center;
  display: none;
}

.lead-popup-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.lead-popup-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes bounceIn {
  0% {
    transform: scale(0.3);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Mobile Responsive */
@media (max-width: 576px) {
  .lead-popup-content {
    width: 95%;
    max-height: 95vh;
  }

  .lead-popup-header {
    padding: 25px 15px;
  }

  .lead-popup-header h2 {
    font-size: 24px;
  }

  .lead-popup-header p {
    font-size: 14px;
  }

  .lead-popup-body {
    padding: 20px 15px;
  }

  .lead-popup-form input,
  .lead-popup-form select,
  .lead-popup-form textarea {
    padding: 10px 12px;
    font-size: 14px;
  }

  .lead-popup-submit {
    padding: 12px;
    font-size: 15px;
  }
}
