#chatbot-container {
    position: fixed;
    bottom: 20px; /* Adjusted Up */
    right: 170px; /* Adjusted Left */
    width: 400px; /* Fixed Width */
    max-width: 90%;
     background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    font-family: 'Roboto', sans-serif;
    display: flex;
    flex-direction: column;
    z-index: 9999;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
	    clip-path: polygon(20px 0, 100% 0, 100% 100%, 0 100%, 0 20px);

}
@media screen and (max-width: 768px) {
    #chatbot-container {
        bottom: 130px;
    right: 60px;
    }
}
#chatbot-toggle-wrapper {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    align-items: flex-end;
    z-index: 10000;
}

#chatbot-globe-toggle {
    width: 100px;
    height: 100px;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Chatbot Header */
#chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #9ECD4D;
    color: white;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px 6px 0 0;
}
#chatbot-header span {
    margin-left: 20px;
}
#chatbot-header button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Chatbot Messages */
#chatbot-messages {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px;
   
    flex-grow: 1;
}

/* Scrollbar Customization */
#chatbot-messages::-webkit-scrollbar {
    width: 4px;
}

#chatbot-messages::-webkit-scrollbar-thumb {
    background: #9ECD4D;
    border-radius: 10px;
}
/* User Messages - Fully Right Aligned */
.user-message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 15px;
}
/* User Messages - Fully Right Aligned */
.user-message {
    background: #9ecd4d40;
    color: black;
    padding: 10px 14px;
    border-radius: 18px 18px 0 18px;
    max-width: 75%; /* Adjusts Based on Text */
    display: flex;
    flex-direction: column; /* Ensure Name & Text are Separate */
    float: right;
    clear: both;
    margin: 10px 0;
    font-size: 13px;
    word-wrap: break-word;
	
}
.user-message user{
	color:#567962 !important;
	font-size: 11px !important;
}
/* Bot Messages - Fully Left Aligned */
.bot-message-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 15px;
}
/* Bot Messages - Fully Left Aligned */
.bot-message {
    background: #d3d3d33b;
    color: #1D2327;
    padding: 10px 14px;
    border-radius: 18px 18px 18px 0;
    max-width: 75%; /* Adjusts Based on Text */
    display: flex;
    flex-direction: column; /* Ensure Name & Text are Separate */
    float: left;
    clear: both;
    margin: 10px 0;
    font-size: 13px;
    word-wrap: break-word;
}
.bot-message p,
.user-message p{
	line-height:20px !important;
	font-weight:400 !important;
}
/* Bot Name */
.bot-name {
    font-weight: 900;
    margin-bottom: 2px;
    color: #9ECD4D;
}

/* Typing Indicator (Now Below User Message) */
/* Typing Indicator (Now Positioned Below the User's Message) */
.typing-indicator {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 6px 10px;
    background: #FFEFE2;
    border-radius: 18px;
    max-width: 50px;
    align-self: flex-start;
    font-size: 13px;
    margin-top: 5px; /* Space Below User Message */
    margin-left: 15px; /* Adjusted Position */
    float: left; /* Align with Bot Messages */
    clear: both;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #9ECD4D;
    border-radius: 50%;
    display: inline-block;
    animation: blink 1.4s infinite both;
    margin: 0 2px;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}

/* Input & Send Button (Side-by-Side) */
#chatbot-input-container {
    display: flex;
    align-items: center;
    padding: 8px;
    border-top: 1px solid #ccc;
}

#chatbot-input {
    flex-grow: 1;
    padding: 10px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    outline: none;
}

#chatbot-send {
    background: #9ECD4D;
    color: white;
    border: none;
    padding: 10px 16px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
}
#chatbot-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: url("https://myfloridagreen.com/wp-content/uploads/2020/12/MFG-logo-2-1.jpg") no-repeat center;
    background-size: cover; /* Ensure Full Coverage */
    background-position: center;
    
    border-radius: 50%;
    cursor: pointer;
    z-index: 10000;
    display: block !important;
}
/* User Info Form - Styled with Main & Secondary Colors */
#user-info-form {
    text-align: center;
    padding: 20px 15px; /* Increased Padding for Space Above & Below */
    background: #d3d3d33b;
    border-radius: 12px;
    color: #9ECD4D;
    margin-top: 10px; /* Added Space from Header */
    margin-bottom: 10px; /* Added Space from Chatbox */
}

#user-info-form h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
}

#user-info-form input {
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Roboto', sans-serif;
    outline: none;
    color: #000; /* Changed Input Text Color to Black */
    background: white;
}

#user-info-form input::placeholder {
    color: #999;
}

#user-submit {
    background: #9ECD4D;
    color: white;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 6px;
    width: 100%;
    margin-top: 12px;
}

/* Loading Indicator for Form Submission */
#user-loading {
    text-align: center;
    margin-top: 10px;
    display: none;
}

#user-loading span {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 3px;
    background: #9ECD4D;
    border-radius: 50%;
    animation: blink 1.4s infinite both;
}

#user-loading span:nth-child(2) {
    animation-delay: 0.2s;
}

#user-loading span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes blink {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0.3;
    }
}
/* ✅ AI Welcome Message Styling */
#chatbot-messages .ai-welcome {
    background: #d3d3d33b;
    padding: 15px;
    border-radius: 12px;
    text-align: center;
    margin: 10px 0;
    max-width: 430px !important;
	 font-size: 16px;
    word-wrap: break-word;
}
#chatbot-messages .ai-welcome p{
    line-height: 24px !important;
	font-weight:600 !important;
}
/* ✅ "Let's Start" Button */
.chat-start-btn {
    background-color: #9ECD4D; /* Main Color */
    color:white; /* Secondary Color */
    border: none;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
span.message-time {
    margin-top: -8px !important;
    font-size: 8px !important;
}
.chat-start-btn:hover {
    background-color: #88B347;
}
#chatbot-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px; /* Adjust for visibility */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    text-align: center;
    padding-bottom: 18px; /* Adjust to align properly */
}
.typewriter-text::after {
    content: "|";
    animation: blink-caret 1s step-start infinite;
    margin-left: 3px;
}

@keyframes blink-caret {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
