/* custom-style.css */

/* Live Chat Styles */
#live-chat {
  position: fixed;
  bottom: 0;
  right: 280px;
  width: 300px;
  font-size: 12px;
  z-index: 1000;
}

/* Header */
#live-chat header {
  background: #293239;
  border-radius: 5px 5px 0 0;
  color: #fff;
  cursor: pointer;
  padding: 16px 24px;
  transition: background-color 0.3s ease;
}

#live-chat header:hover {
  background-color: #1a2229;
}

#live-chat h4 {
  font-size: 12px;
}

#live-chat h4:before {
  content: "";
  display: inline-block;
  background: #1a8a34;
  border-radius: 50%;
  height: 8px;
  margin-right: 8px;
  width: 8px;
}

#live-chat h5 {
  font-size: 10px;
}

#live-chat fieldset {
  padding: 24px;
  border: none;
}

#live-chat input[type="text"] {
  width: 100%;
  padding: 8px;
  border-radius: 3px;
  border: 1px solid #ccc;
  outline: none;
  box-sizing: border-box;
}

#live-chat input[type="text"]:focus {
  outline: 2px solid #1a8a34;
  outline-offset: 2px;
}

/* Message Counter */
.chat-message-counter {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 28px;
  height: 28px;
  background: #e62727;
  border: 1px solid #fff;
  border-radius: 50%;
  display: none;
  font-size: 12px;
  font-weight: bold;
  line-height: 28px;
  text-align: center;
  z-index: 1001;
}

/* Close Button */
.chat-close {
  background: #1b2126;
  color: #fff;
  font-size: 10px;
  width: 16px;
  height: 16px;
  line-height: 16px;
  text-align: center;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  cursor: pointer;
  transition: background 0.3s ease;
}

.chat-close:hover {
  background-color: #e62727;
}

/* Chat Body */
.chat {
  background: #fff;
}

.chat-history {
  height: 252px;
  padding: 8px 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Custom Scrollbar */
.chat-history::-webkit-scrollbar {
  width: 6px;
}

.chat-history::-webkit-scrollbar-thumb {
  background: #999;
  border-radius: 10px;
}

/* Chat Messages */
.chat-message {
  display: flex;
  align-items: flex-start;
  margin: 16px 0;
}

.chat-message img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 10px;
}

.chat-message-content {
  flex: 1;
}

.chat-time {
  float: right;
  font-size: 10px;
}

.chat-feedback {
  font-style: italic;
  margin: 0 0 0 56px;
}

/* Add this rule to prevent form overlapping with sidebar */
.main-content {
    margin-left: 270px;
    padding: 20px;
    max-width: calc(100% - 270px);
    box-sizing: border-box;
}

/* Ensure all child form elements inside main-content respect width */
.main-content form,
.main-content .row,
.main-content .form-group,
.main-content select,
.main-content input {
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix layout on smaller screens */
@media (max-width: 991px) {
    .main-content {
        margin-left: 0 !important;
        max-width: 100% !important;
    }
}




.js-sub-list {
    display: none;
    padding-left: 15px;
}
.js-sub-list.show {
    display: block;
}
.navbar-mobile-sub__list {
    display: none;
    padding-left: 15px;
}
.navbar-mobile-sub__list.show {
    display: block;
}


