/* Phone Capture Exit Intent Popup Styles */
.phone-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-in-out;
}

.phone-popup-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  border-radius: 15px;
  max-width: 700px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 3px solid var(--main-green);
}

@keyframes slideUp {
  from {
    transform: translateY(50px) scale(0.9);
    opacity: 0;
  }

  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* Close Button */
.phone-popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent-red);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: all 0.3s ease;
  z-index: 10;
}

.phone-popup-close:hover {
  background: #d32f2f;
  transform: scale(1.1);
}

/* Header Styles */
.phone-popup-header {
  background: linear-gradient(135deg, var(--main-green) 0%, var(--deep-green) 100%);
  color: white;
  padding: 30px 25px 25px;
  text-align: center;
  border-radius: 12px 12px 0 0;
  position: relative;
  overflow: hidden;
}

.phone-popup-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 3s infinite;
}

.phone-popup-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: #fff;
}

.phone-popup-subtitle {
  font-size: 1rem;
  margin-bottom: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
}

.phone-popup-guarantee {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent-yellow);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
}

/* Body Styles */
.phone-popup-body {
  padding: 30px 25px;
}

/* Phone Input Container */
.phone-input-container {
  display: flex;
  margin-bottom: 25px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.phone-popup-input {
  flex: 1;
  padding: 15px 20px;
  border: none;
  font-size: 1.1rem;
  outline: none;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.phone-popup-input:focus {
  background: white;
  box-shadow: inset 0 0 0 2px var(--main-green);
}

.phone-popup-submit {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
  border: none;
  padding: 15px 25px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.phone-popup-submit:hover {
  background: linear-gradient(45deg, #f7931e, #ff6b35);
  transform: scale(1.05);
}

/* Action Buttons */
.phone-popup-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.btn-consultation,
.btn-call-doctor {
  flex: 1;
  padding: 12px 15px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-consultation {
  background: var(--accent-red);
  color: white;
}

.btn-consultation:hover {
  background: #a54a4a;
  transform: translateY(-2px);
}

.btn-call-doctor {
  background: linear-gradient(45deg, #ff6b35, #f7931e);
  color: white;
}

.btn-call-doctor:hover {
  background: linear-gradient(45deg, #f7931e, #ff6b35);
  transform: translateY(-2px);
}

/* Benefits Grid */
.phone-popup-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(75, 187, 164, 0.1);
  border-radius: 8px;
  border: 1px solid rgba(75, 187, 164, 0.2);
  transition: all 0.3s ease;
}

.benefit-item:hover {
  background: rgba(75, 187, 164, 0.15);
  transform: scale(1.02);
}

.benefit-item i {
  color: var(--main-green);
  font-size: 1.2rem;
}

.benefit-item span {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--deep-green);
}

/* Success Popup */
.success-container {
  max-width: 600px;
  text-align: center;
}

.success-content {
  padding: 40px 30px;
}

.success-icon {
  font-size: 4rem;
  color: var(--main-green);
  margin-bottom: 20px;
  animation: bounce 1s ease-in-out;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }

  40% {
    transform: translateY(-10px);
  }

  60% {
    transform: translateY(-5px);
  }
}

.success-content h3 {
  color: var(--deep-green);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.success-content p {
  color: #666;
  margin-bottom: 25px;
  font-size: 1.1rem;
}

.btn-close-success {
  background: var(--main-green);
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-close-success:hover {
  background: var(--deep-green);
  transform: scale(1.05);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .phone-popup-container {
    width: 95%;
    margin: 10px;
  }

  .phone-popup-header {
    padding: 25px 20px 20px;
  }

  .phone-popup-title {
    font-size: 1.2rem;
  }

  .phone-popup-body {
    padding: 25px 20px;
  }

  .phone-popup-actions {
    flex-direction: column;
  }

  .phone-popup-benefits {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}
