@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #1a1d29;
    --darker-bg: #151821;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --border-color: #2a2d3a;
    --success-color: #00d4aa;
    --warning-color: #ff6b6b;
}
.chatbot-modal {
    --bs-modal-bg: transparent;
}
.chatbot-modal .modal-content {
    background: var(--dark-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    width: 100%;
    max-width: 450px;
    height: 95dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chatbot-modal .modal-header {
    background: var(--primary-gradient);
    border: none;
    padding: 10px 25px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.chatbot-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/><circle cx="40" cy="80" r="1.5" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}
.chatbot-modal .modal-title {
    color: white;
    font-weight: 600;
    font-size: 1.3rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}
.chatbot-modal .modal-title::before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--success-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--success-color);
    animation: pulse 2s infinite;
}
.chatbot-modal .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}
.crossicon {
    color: white;
    font-size: 0.9rem;
}
.chatbot-modal .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}
.chatbot-modal .modal-body {
    padding: 25px;
    background: var(--dark-bg);
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
    max-height: 300px;
}
.chatbot-modal .chat-container {
    flex: 1;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}
.chatbot-modal #chatMessages {
    background: var(--darker-bg);
    border-radius: 15px;
    padding: 15px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
    min-height: 200px;
    flex: 1;
}
.chatbot-modal .message {
    margin-bottom: 15px;
    animation: slideInUp 0.3s ease;
}
.chatbot-modal .message.user {
    text-align: right;
}
.chatbot-modal .message.bot {
    text-align: left;
}
.chatbot-modal .message-sender {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 5px;
    font-weight: 500;
}
.chatbot-modal .input-group {
    position: relative;
    margin-bottom: 20px;
}
.chatbot-modal .form-control {
    background: var(--darker-bg);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
    padding: 15px 20px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    margin-bottom: 10px;
    width: 100%;
    resize: vertical;
    min-height: 50px;
    max-height: 120px;
    overflow-y: auto;
}
.chatbot-modal .form-control:focus {
    background: var(--darker-bg);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    color: var(--text-primary);
}
.chatbot-modal .form-control::placeholder {
    color: var(--text-secondary);
}
.chatbot-modal .email-field {
    margin-bottom: 15px;
}
.chatbot-modal .message-type-selector {
    background: var(--darker-bg);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.chatbot-modal .selector-title {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.chatbot-modal .form-check-input {
    background-color: var(--darker-bg);
    border-color: var(--border-color);
    margin-top: 0.15em;
}
.chatbot-modal .form-check-input:checked {
    background: var(--primary-gradient);
    border-color: #667eea;
}
.chatbot-modal .form-check-label {
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}
.chatbot-modal .form-check-input:checked + .form-check-label {
    color: var(--text-primary);
}
.chatbot-modal .btn-send,
.chatbot-modal .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    padding: 12px 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
}
.chatbot-modal .btn-send:hover,
.chatbot-modal .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    color: white;
}
.chatbot-modal .btn-send:active,
.chatbot-modal .btn-primary:active {
    transform: translateY(0);
}
.sendMessage1 {
    position: sticky;
    bottom: 0;
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 0 0 20px 20px;
    flex-shrink: 0;
}
.sendMessage1 .form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 15px;
    display: block;
    font-size: 0.95rem;
}
.footer-options {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}
.footer-options .form-check {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    background: var(--dark-bg);
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: pointer;
}
.footer-options .form-check:hover {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.1);
}
.footer-options .form-check-input {
    display: none;
}
.footer-options .form-check-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    width: 100%;
}
.footer-options .form-check-label i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}
.footer-options .form-check-input:checked + .form-check-label {
    color: var(--text-primary);
}
.footer-options .form-check-input:checked + .form-check-label i {
    color: #667eea;
    transform: scale(1.1);
}
.footer-options .form-check:has(.form-check-input:checked) {
    border-color: #667eea;
    background: rgba(102, 126, 234, 0.15);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.3);
}
.modal-footer.chatbot-send-btn {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 15px;
}
.chatBot-spinner {
    width: 30px;
    height: 30px;
    border: 4px solid rgba(255, 0, 0, 0.2);
    border-top: 4px solid red;          
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 10px auto;
    display: block;
  }
  .chatbot-modal .message-bubble {
    display: inline-block;
    padding: 12px 16px;
    border-radius: 18px;
    max-width: 80%;
    font-size: 0.9rem;
    line-height: 1.4;
}
.fade {
    transition: transform .3s linear !important;
  }
    
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}   

@keyframes slideInUp {  
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}   
@media (max-width: 768px) {
    .chatbot-modal {
      border-radius: 0;
      max-width: 100%;
      height: 100dvh;
      top: 0 !important;
      left: 0 !important;
      margin: 0 !important;
      padding: 0 !important;
    }
  
    .chatbot-modal .modal-content {
      border-radius: 0;
      height: 100dvh;
      max-width: 100%;
    }
  
    .chatbot-modal .modal-header {
      padding: 12px 16px;
    }
  
    .chatbot-modal .modal-body {
      padding: 16px;
    }
  
    .chatbot-modal #chatMessages {
      max-height: 250px;
    }
  
    .sendMessage1 {
      padding: 16px;
    }
  
    .footer-options {
      flex-direction: column;
      gap: 10px;
    }
  
    .footer-options .form-check {
      flex-direction: row;
      justify-content: flex-start;
      gap: 12px;
      padding: 10px 15px;
    }
  
    .footer-options .form-check-label {
      flex-direction: row;
      gap: 12px;
      font-size: 0.9rem;
    }
  
    .footer-options .form-check-label i {
      font-size: 1.2rem;
    }
  }
  @media (max-width: 1082px) and (min-width: 769px) {
    .chatbot-modal {
      height: auto !important;
      max-height: 95dvh !important;
      top: 20px !important; 
      margin: 0 auto !important;
    }
    .chatbot-modal .modal-content {
      height: auto !important;
      max-height: 95dvh !important;
    }
    .chatbot-modal .modal-body {
      max-height: 60vh; 
      overflow-y: auto;
    }
  }
  