/* Floating chat button */
.chat-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* New Submit Feedback Button */
.chat-trigger-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #0b4771;
    color: white;
    border: none;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 15px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    z-index: 1000;
}

/* Chat box styles */
#feedbackChat1 {
    position: fixed;
    bottom: 100px;
    right: 20px;
    width: 350px; /* Increased width */
    height: 500px; /* Increased height */
    z-index: 1001;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

/* Chatbox header */
#feedbackChat1 .card-header {
    background-color: #0b4771;
    color: white;
}

/* Chatbox body scroll */
#feedbackChat1 .card-body {
    height: 400px;
    overflow-y: auto;
}

/* Chat input area */
#feedbackChat1 .form-outline {
    margin-top: 10px;
}

/* Chat send button */
#feedbackChat1 .btn-info {
    background-color: #0b4771;
    border-color: #0b4771;
}

/* Ensure chat body scrolls */
#chatBody {
    flex: 1;
    overflow-y: auto;
    height: 400px; /* Set a fixed height to enable scrolling */
}

/* Padding for button groups */
.mb-3 {
    margin-bottom: 1rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

/* Close chat button */
#closeChat {
    color: white;
}

/* Existing styling for the form and chat UI */
#feedbackChat1 .form-outline .form-control~.form-notch div {
    pointer-events: none;
    border: 1px solid;
    border-color: #eee;
    box-sizing: border-box;
    background: transparent;
}

#feedbackChat1 .form-outline .form-control~.form-notch .form-notch-leading {
    left: 0;
    top: 0;
    height: 100%;
    border-right: none;
    border-radius: .65rem 0 0 .65rem;
}

#feedbackChat1 .form-outline .form-control~.form-notch .form-notch-middle {
    flex: 0 0 auto;
    max-width: calc(100% - 1rem);
    height: 100%;
    border-right: none;
    border-left: none;
}

#feedbackChat1 .form-outline .form-control~.form-notch .form-notch-trailing {
    flex-grow: 1;
    height: 100%;
    border-left: none;
    border-radius: 0 .65rem .65rem 0;
}

#feedbackChat1 .form-outline .form-control:focus~.form-notch .form-notch-leading {
    border-top: 0.125rem solid #39c0ed;
    border-bottom: 0.125rem solid #39c0ed;
    border-left: 0.125rem solid #39c0ed;
}

#feedbackChat1 .form-outline .form-control:focus~.form-notch .form-notch-middle {
    border-bottom: 0.125rem solid;
    border-color: #39c0ed;
}

#feedbackChat1 .form-outline .form-control:focus~.form-notch .form-notch-trailing {
    border-top: 0.125rem solid #39c0ed;
    border-bottom: 0.125rem solid #39c0ed;
    border-right: 0.125rem solid #39c0ed;
}

#feedbackChat1 .form-outline .form-control:focus~.form-label {
    color: #39c0ed;
}

#feedbackChat1 .form-outline .form-control~.form-label {
    color: #bfbfbf;
}