

/* Floating Button Container - Right Position */
.consultation-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999 !important;
  max-width: calc(100% - 60px);
}
/* Wrapper for button and tooltip - vertical layout */
.float-btn-wrapper {
  position: relative;
  display: flex;
  flex-direction: column; /* tooltip on top, button below */
  align-items: center;
  gap: 6px;
}

/* Persistent Tooltip - above button */
.persistent-tooltip {
  background: #0066cc;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(0, 102, 204, 0.3);
  white-space: nowrap;
  animation: tooltipFadeIn 0.5s ease;
  display: block;
  position: relative;
}

/* Tooltip arrow pointing down */
.persistent-tooltip::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
  border-color: #0066cc transparent transparent transparent;
}

.close-popup-form{
  background: none;
  border: none;
  font-size: 1.2rem;
  color: #0046A0;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;

}
.close-popup-form:hover {
  color: #666;
  transform: rotate(90deg);
}

/* Floating Button with Animation */
.consultation-float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0066cc, #004d99);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 102, 204, 0.3);
  cursor: pointer;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
}

.consultation-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 102, 204, 0.4);
}

/* Pulsing animation */
.btn-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: pulse 2s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(0.95);
    opacity: 0;
  }
}

/* Popup Form Panel with Scroll (entire popup scrolls) */
.consultation-form-popup {
  display: none;
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  max-width: calc(100vw - 80px);
  max-height: 80vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
  z-index: 1001;
  animation: fadeIn 0.3s ease;
  overflow-y: auto; /* allow entire popup to scroll vertically */
  padding: 0; /* remove extra padding here to avoid double padding */
}

/* Header (sticky, stays on top) */
.form-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px 15px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 2;
}

/* Form content wrapper */
.form-content-wrapper {
  padding: 0 25px 25px;
}

/* Form groups and inputs styling */
.form-group {
  position: relative;
  margin-bottom: 15px;
}

select,
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
textarea {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color 0.3s;
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: white;
}

select:focus,
input:focus,
textarea:focus {
  border-color: #0066cc;
  outline: none;
}

/* Icons inside inputs */
.input-icon,
.select-icon,
.textarea-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  pointer-events: none;
  font-size: 16px;
}

/* Textarea */
textarea {
  resize: vertical;
}


/* Form footer */
.form-footer {
  margin-top: 20px;
  text-align: center;
}

.submit-btn {
  background: #0066cc;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.submit-btn:hover {
  background: #004d99;
}

.disclaimer {
  font-size: 0.85rem;
  margin-top: 12px;
  color: #555;
}

.disclaimer a {
  color: #0066cc;
  text-decoration: none;
}

.disclaimer a:hover {
  text-decoration: underline;
}

/* New animation for tooltip */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .consultation-float-container {
    bottom: 20px;
    right: 20px;
  }
  
  .consultation-form-popup {
    width: 320px;
    max-width: calc(100vw - 40px);
    bottom: 70px;
  }
}

@media (max-width: 600px) {
  .persistent-tooltip {
    display: none; /* Hide tooltip on very small screens */
  }
  
  .float-btn-wrapper {
    gap: 0;
  }
}

@media (max-width: 480px) {
  .consultation-float-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
}