/* call css */
/* Fixed Call Button */
.call-fixed-btn {
  position: fixed;
  bottom: 100px; /* Above WhatsApp button */
  right: 30px;
  width: 56px;
  height: 56px;
  background: #dc3545;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 28px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(220, 53, 69, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  animation: callPulse 2s infinite;
}

.call-fixed-btn:hover {
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(220, 53, 69, 0.5);
}

/* Call Animation */
@keyframes callPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.5);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(220, 53, 69, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .call-fixed-btn {
    width: 55px;
    height: 55px;
    font-size: 24px;
    right: 20px;
    bottom: 95px;
  }
}

/* Whatsapp-css */
.whatsapp-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 380px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  display: none;
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.whatsapp-popup.active {
  display: block;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.whatsapp-header {
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 16px 16px 0 0;
}

.whatsapp-logo i {
  color: #fff;
}

.whatsapp-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.whatsapp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.whatsapp-logo {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.whatsapp-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.whatsapp-header p {
  margin: 0;
  font-size: 11px;
  opacity: 0.9;
  color: #fff;
}

/* Header Chat Button */
.whatsapp-header-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.whatsapp-header-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.whatsapp-header-btn i {
  font-size: 14px;
}

.close-popup {
  cursor: pointer;
  font-size: 24px;
  font-weight: 300;
  color: #fff;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
  padding: 0 4px;
}

.close-popup:hover {
  opacity: 1;
}

.whatsapp-body {
  padding: 20px 18px 18px;
  max-height: 500px;
  overflow-y: auto;
}

.whatsapp-body h5 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #1a1a1a;
}

.whatsapp-body > p {
  font-size: 17px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 14px 0;
}

.service-list {
  margin: 12px 0 16px;
}

.service-list div {
  padding: 7px 8px;
  font-size: 15px;
  color: #333;
  border-bottom: 1px solid #f5f5f5;
}

.service-list div:last-child {
  border-bottom: none;
}

/* WhatsApp Inquiry Form */
.whatsapp-inquiry-form .form-group {
  margin-bottom: 12px;
}

.whatsapp-inquiry-form .form-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.whatsapp-inquiry-form .form-control {
  width: 100%;
  padding: 9px 12px;
  border: 2px solid #e8e8e8;
  border-radius: 8px;
  font-size: 13px;
  transition: all 0.3s ease;
  background: #fafafa;
  color: #333;
  box-sizing: border-box;
}

.whatsapp-inquiry-form .form-control:focus {
  border-color: #25d366;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
  outline: none;
}

.whatsapp-inquiry-form .form-control::placeholder {
  color: #aaa;
  font-size: 12px;
}

.whatsapp-submit-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 4px;
}

.whatsapp-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-submit-btn i {
  font-size: 20px;
}

.whatsapp-chat-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-chat-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.whatsapp-chat-btn i {
  font-size: 22px;
}

.whatsapp-chat-btn small {
  font-weight: 400;
  font-size: 11px;
  opacity: 0.9;
}

.whatsapp-back-btn {
  width: 100%;
  padding: 8px;
  background: transparent;
  color: #666;
  border: none;
  font-size: 12px;
  cursor: pointer;
  margin-top: 6px;
  transition: color 0.2s;
}

.whatsapp-back-btn:hover {
  color: #25d366;
}

/* Fixed WhatsApp Button */
.whatsapp-fixed-btn {
  position: fixed;
  bottom: 175px;
  right: 30px;
  width: 56px;
  height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.whatsapp-fixed-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Additional styles */
.whatsapp-body .form-subtitle {
  font-size: 12px;
  color: #888;
  margin-top: -4px;
  margin-bottom: 14px;
}

#whatsappSuccess h5 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 6px 0;
  color: #25d366;
}

#whatsappSuccess .whatsapp-chat-btn {
  display: inline-flex !important;
  width: auto !important;
  padding: 10px 25px !important;
  text-decoration: none !important;
}

#whatsappSuccess .whatsapp-back-btn {
  width: auto !important;
  padding: 10px 18px !important;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  font-weight: 600;
  background: #fff;
}

#whatsappSuccess .whatsapp-back-btn:hover {
  border-color: #25d366;
  color: #25d366;
}

/* Loading state */
#formLoading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Scrollbar styling */
.whatsapp-body::-webkit-scrollbar {
  width: 3px;
}

.whatsapp-body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.whatsapp-body::-webkit-scrollbar-thumb {
  background: #25d366;
  border-radius: 10px;
}

/* Mobile Responsive */
@media (max-width: 480px) {
  .whatsapp-popup {
    bottom: 85px;
    right: 10px;
    left: 10px;
    width: auto;
    max-height: 80vh;
    border-radius: 12px;
  }

  .whatsapp-fixed-btn {
    width: 55px;
    height: 55px;
    font-size: 28px;
    bottom: 170px;
    right: 20px;
  }

  .whatsapp-body {
    max-height: 380px;
    padding: 16px 14px 14px;
  }

  .whatsapp-header {
    padding: 12px 14px;
  }

  .whatsapp-header h4 {
    font-size: 13px;
  }

  .whatsapp-header p {
    font-size: 10px;
  }

  .whatsapp-header-btn {
    font-size: 11px;
    padding: 5px 10px;
  }

  .whatsapp-logo {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
}
