
 /* Adjust assistant container position to avoid overlap */
.assistant-container {
  position: fixed;
  bottom: 100px; /* raised above the consultation button */
  right: 30px;
  z-index: 1000;
}

/* Float button wrapper styles for vertical tooltip on top */
.assistant-button {
  position: relative;
  width: 60px;
bottom: 0px; /* 80px+ space above the consultation button */
  right: 30px;
  height: 60px;
  border-radius: 50%;
  background: var(--gradient-green);
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  padding: 0;
  /* Remove the absolute positioning from before */
}

/* Hover effect */
.assistant-button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Tooltip above the button */
.assistant-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
   background-color: var(--primary-green);
  box-shadow: 0 3px 10px rgba(46, 139, 87, 0.3); 
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
 
  opacity: 1;
  visibility: visible;
  pointer-events: none;
  animation: tooltipFadeIn 0.5s ease;
  z-index: 1001;
}

/* Tooltip arrow pointing down */
.assistant-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px 8px 0 8px;
  border-style: solid;
 border-color: var(--primary-green) transparent transparent transparent;
}

/* Pulse effect inside assistant button if you want (optional) */
/* .btn-pulse similar to your consultation button can be added here if desired */

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

  
  .assistant-icon {
    position: relative;
    width: 40px;
    height: 40px;
  }
  
  .profile-icon {
    width: 100%;
    height: 100%;
    border-radius: 50%;
     background: var(--primary-green);
    position: relative;
    overflow: hidden;
  }
  
  .profile-icon:before {
    content: "";
    position: absolute;
    top: 15%;
    left: 30%;
    width: 40%;
    height: 40%;
    border-radius: 50%;
    background: white;
  }
  
  .profile-icon:after {
    content: "";
    position: absolute;
    top: 35%;
    left: 25%;
    width: 50%;
    height: 20%;
    border-bottom-left-radius: 50% 60%;
    border-bottom-right-radius: 50% 60%;
    background: white;
  }
  
  .headphones {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 50px;
    height: 30px;
    border: 3px solid white;
    border-radius: 15px;
    box-sizing: border-box;
  }
  
  .headphones:before,
  .headphones:after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    top: 18px;
  }
  
  .headphones:before {
    left: -8px;
  }
  
  .headphones:after {
    right: -8px;
  }
  
  .assistant-window {
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e0e0e0;
  }
  
  .assistant-header {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #e0e0e0;
  }
  
  .assistant-avatar {
    width: 40px;
    height: 40px;
    position: relative;
  }
  
  .assistant-header h3 {
    margin: 0;
    font-size: 1.2rem;
    flex-grow: 1;
    color: #333;
  }
  

  


  .close-assistant{
  background: none;
  font-size: 60px;
  border: none;
  font-size: 1.2rem;
  color: --primary-green;
  cursor: pointer;
  padding: 5px;
  transition: all 0.2s ease;

}
.close-assistant:hover {
  color: var(--text-light);
  transform: rotate(90deg);
}
  .assistant-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f9f9f9;
  }
  
  .message {
    margin-bottom: 15px;
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 18px;
    line-height: 1.4;
    font-size: 0.9rem;
  }
  
  .message.assistant {
     background: var(--card-bg);
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    margin-right: auto;
    border-bottom-left-radius: 5px;
   
  }
  
  .message.user {
    background: var(--primary-green);
    color: var(--text-white);
    margin-left: auto;
    border-bottom-right-radius: 5px;
  }
  
  .message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 5px;
  }
    /* Add these styles to your existing CSS */
  .assistant-button {
    position: relative;
  }
  

  
  
  
  .assistant-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 15px);
  }
  .assistant-input {
    display: flex;
    padding: 10px;
    border-top: 1px solid #e0e0e0;
    background: white;
  }
  
  .assistant-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
  }
  
  .assistant-input button {
    background: none;
    border: none;
     color: var(--primary-green);
    font-size: 1.2rem;
    margin-left: 10px;
    cursor: pointer;
  }

.assistant-input input:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2); /* primary green highlight */
}






 :root {
    --dark-bg: #1e1e2f;
    --primary-green: #007bff;
    --primary-green-dark: #1f6b42;
    --primary-green-light: rgba(46, 139, 87, 0.1);
    --text-light: #f8f9fa;
    --text-dark: #2d3748;
    --card-bg: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.2);
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', sans-serif;
  }

  body {
    background-color: #f8f9fa;
    color: var(--text-dark);
    line-height: 1.6;
  }

  /* Modal styling to match your theme */
  .user-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 30, 47, 0.9);
    z-index: 9999;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease-out;
  }
  
  .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
  }
  
  .modal-header {
    background: var(--primary-green);
    color: white;
    padding: 25px;
  }
  
  .modal-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 600;
  }
  
  .modal-header p {
    margin: 8px 0 0;
    opacity: 0.9;
    font-size: 1rem;
  }
  
  .modal-form { 
    padding: 25px 30px; 
  }
  
  .form-group { 
    margin-bottom: 20px; 
  }
  
  .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
  }
  
  .form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
    font-family: inherit;
  }
  
  .form-group input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(46, 139, 87, 0.2);
  }
  
  .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 25px;
  }
  
  .btn {
    padding: 14px 25px;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
  }
  
  .btn-primary {
    background-color: var(--primary-green);
    color: white;
  }
  
  .btn-primary:hover {
    background-color: var(--primary-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(46, 139, 87, 0.3);
  }
  
  .btn-secondary {
    background-color: #f0f0f0;
    color: #555;
  }
  
  .btn-secondary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
  }
  
  .form-response {
    padding: 0 30px 25px;
    min-height: 20px;
    color: #d9534f;
    font-size: 0.9rem;
    text-align: center;
  }
  
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  /* Alert styling */
  .alert {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 6px;
    color: white;
    z-index: 99999;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    max-width: 350px;
    animation: slideIn 0.3s ease-out;
  }
  
  .alert-success {
    background-color: var(--primary-green);
  }
  
  .alert-loading {
    background-color: var(--primary-green);
  }
  
  .alert-error {
    background-color: #e74c3c;
  }
  
  .alert i {
    margin-right: 10px;
    font-size: 1.2em;
  }
  
  @keyframes slideIn {
    from { 
      transform: translateX(100px);
      opacity: 0;
    }
    to { 
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @media (max-width: 600px) {
    .modal-content {
      width: 95%;
    }
    
    .modal-form {
      padding: 20px;
    }
    
    .form-actions {
      flex-direction: column;
    }
    
    .btn {
      width: 100%;
      justify-content: center;
    }
    
    .modal-header {
      padding: 20px;
    }
    
    .modal-header h3 {
      font-size: 1.4rem;
    }
  }
  
  @media (max-width: 480px) {
    .modal-form {
      padding: 15px;
    }
    
    .form-group input {
      padding: 12px 14px;
    }
  }



.message-content {
    padding: 12px 16px;
    line-height: 1.4;
}

.message.assistant .message-content {
    color: #333;
}

.message.user .message-content {
    color: white;
}

.message-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    text-align: right;
}

.service-heading {
    display: block;
    font-size: 1.1em;
    margin-bottom: 8px;
    color: #0056b3;
}

.list-item {
    display: flex;
    margin-bottom: 6px;
}

.list-number, .list-bullet {
    margin-right: 8px;
    font-weight: bold;
}

.highlight-info {
    color: var(--fresh-green);
    font-weight: bold;
}

.transfer-options {
    display: flex;
    gap: 10px;
    margin: 10px 15px;
}

.transfer-options button {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.transfer-options button:first-child {
   background-color: var(--primary-green);
  color: var(--text-white);
    border: none;
}

.transfer-options button:last-child {
    background-color: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.transfer-options button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}




.message-loader {
    text-align: center;
    padding: 10px;
    color: #666;
    font-size: 0.9em;
    background: #f5f5f5;
    border-radius: 4px;
    margin: 10px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}



/* Hide tooltip on small screens (below 768px) */
@media (max-width: 767px) {
  .assistant-tooltip {
/*    display: none !important;*/
  }


  .assistant-container {
  position: fixed;
  bottom: 50px; /* raised above the consultation button */
  right: 10px;
  z-index: 1000;
}

.assistant-button {
  position: relative;
  width: 60px;
bottom: 180px; /* 80px+ space above the consultation button */
  right: 10px;

}

}

