/* bf icon styling */
.bf-icon {
    position: relative;
    top: -55px; /* Adjust to control distance from form */
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #00b300; Green background */
    padding: 15px;
    border-radius: 50%; /* Makes it circular */
    width: 50px;
    height: 50px;
    margin: 0 auto; /* Centers it horizontally */
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 10; /* Ensures icon is on top */
}

/* Icon image styling */
.bf-icon img {
    width: 100px; /* Adjust icon size */
    height: 80px;
    border-radius: 50%; /* Makes it circular */
    filter: invert(1); /* White color for icon */
}

/* Styling for the form section to match popup design */
#userForm {
    background-color: white;
    padding: 30px;
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    z-index: 999;
    width: 87%;
    max-width: 350px; /* Maintain consistency with popup width */
    margin: 75px auto; /* Center align within chatbot container */
}

/* Form input fields styling */
#userForm input {
    width: 100%; /* Full width for larger input */
    padding: 12px; /* Adjust padding for input size */
    margin: 15px 0; /* Increase margin between inputs */
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px; /* Increase font size for readability */
}

/* Form submit button styling */
#userForm button {
    width: 100%; /* Full width to match input fields */
    padding: 12px;
    background-image: linear-gradient(45deg, #9900ff, #5C0099);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    font-size: 16px; /* Match input font size */
    margin-top: 15px; /* Space between input and button */
    transition: background-color 0.3s; /* Smooth transition for hover effect */
}

/* Hover effect for submit button */
#userForm button:hover {
    background-color: #0056b3;
}

/* Styling for clicked state to make button green */
.clicked {
    background-color: #2dc430 !important; /* Green background */
}


/* Error message styling */
.error-message {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}


/* Chatbot header and suggestion styling */
.chat-intro-title {
    text-align: center;
    margin: 10px;
}

.chat-suggestion {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}

.suggestion {
    padding: 8px 16px;
    background-color: #ffffff;
    color: #0E0E10;
    border-radius: 25px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.3s ease;
    border: none;
    text-align: center;
    font-weight: 700;
    margin-left: 5px;
    row-gap: 5px;
    white-space: nowrap;
}

.suggestion:hover {
    /* background-color: #0056b3; */
    background-color: #9900ff;
    color: #fff;
}

/* Message container styling */
.message-container {
    max-height: 335px;
    overflow-y: auto;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 10px 0;
}

.message {
    padding: 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 18.2px;
    max-width: 70%;
}

.user-message {
    background-color: #9900FF;
    align-self: flex-end;
    text-align: right;
    color:#fff;
}

.bot-message {
    background-color: #ffffff;
    align-self: flex-start;
    text-align: left;
    color:#0E0E10;
    
}

/* Input text box styling */
.input-textbox {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
}

.input-textbox input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    margin-right: 10px;
}

.input-textbox button {
    padding: 6px 14px;
    background-color: #ccc;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.connected button {
    background-color: #007bff;
}