html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  -o-tab-size: 4;
  tab-size: 4;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: normal;
  font-variation-settings: normal;
}
@keyframes blink {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
  }
}

@keyframes typing {
  0% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
}
@keyframes ping {
  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}
h3 {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
h2 {
  font-size: 1.875rem;
  line-height: 2.25rem;
  margin-bottom: 20px;
}
#page-container {
  padding: 0;
}
.header-wrapper {
  background: rgb(59, 130, 246);
  padding: 0 30px 60px;
  position: relative;
}
.header-wrapper .logo {
  top: 30px;
  position: absolute;
  left: 30px;
}
.main-wrapper {
  padding: 30px;
  border-radius: 25px 25px 0 0;
  background: #fff;
  margin-top: -50px;
  position: relative;
  z-index: 3;
}
.text-red {
  color: rgb(220, 38, 38) !important;
}
.text-green {
  color: rgb(0, 128, 0) !important;
}
.header {
  padding: 30px 0 0px;
  text-align: center;
  color: #fff;
  width: 100%;
  max-width: 840px;
  margin: 0 auto;
}
.header h2,
.header h3 {
  font-weight: 400;
}
.header h3 {
  margin-bottom: 10px;
}
.chatbot-is-online span.circle.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
  position: absolute;
}
.chatbot-bot-name {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.chatbot-is-online {
  position: relative;
  display: inline-flex;
}
.chatbot-is-online span.circle {
  width: 16px;
  height: 16px;
  background: rgb(34, 197, 94);
  border-radius: 16px;
  display: inline-flex;
  position: relative;
  margin-right: 10px;
  top: 5px;
}
#chatbox-app {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  padding: 0 0 30px;
}
#chatbox-content .chatbox {
  margin-bottom: 8px;
}
.chatbox {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  row-gap: 8px;
  padding-left: 44px;
  padding-right: 44px;
}
.chatbox.bot-reply {
  justify-content: flex-start;
  align-items: flex-start;
}

.chatbox.user-reply {
  justify-content: flex-start;
  align-items: flex-end;
  align-content: flex-end;
}
.chatbox.bot-reply:after {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: url(callcenter-1.jpg) no-repeat center;
  background-size: 100%;
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: 4px;
}

.chatbox.user-reply:after {
  width: 32px;
  height: 32px;
  border-radius: 100%;
  background: url(profile.png) no-repeat center;
  background-size: 100%;
  content: "";
  display: block;
  position: absolute;
  right: 0;
  bottom: 4px;
}
.chatbox-message {
  padding: 12px;
  background: rgb(229, 231, 235);
  display: inline-flex;
  border-radius: 8px;
  min-height: 48px;
  min-width: 48px;
  flex-wrap: wrap;
  row-gap: 8px;
}
.chatbox-message.btns {
  column-gap: 8px;
}
.chatbox-message.btns-row {
  display: inline-flex;
  flex-direction: column;
  row-gap: 8px;
}
.chatbox-message.btns-row .chat-button {
  min-width: 165px;
}
.chatbox.user-reply .chatbox-message {
  background: rgb(59, 130, 246);
  color: #fff;
}
.chatbox-message.reply {
  min-width: 58px;
}
.chatbox-message.reply span {
  width: 8px;
  height: 8px;
  display: inline-flex;
  background: #a7a7a7;
  border-radius: 8px;
  margin-right: 3px;
  animation: typing 1s infinite;
}
.chatbox-message.reply {
  align-items: flex-end;
  justify-content: center;
}
.chatbox-message.reply span:last-of-type {
  margin-right: 0;
}
.tel-btn,
.chat-button {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  background: rgb(59, 130, 246);
  border: none;
  border-radius: 9999px;
  padding: 14px 46px;
  font-weight: bold;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  text-decoration: none;
}

#chatbox-content .chatbox[data-step="4"] {
  margin-bottom: 105px;
}
.terms-text {
  padding: 15px 0;
  background: transparent;
  position: absolute;
  top: 100%;
  left: 44px;
  right: 44px;
}
@media only screen and (max-width: 1024px) {
  .header-wrapper .logo {
    position: relative;
    display: block;
    margin: 0 auto 10px;
    top: 0;
    left: 0;
  }
  .header {
    padding-top: 10px;
  }
  .header h2 {
    padding-left: 20px;
    padding-right: 20px;
  }
  .header-wrapper {
    padding-left: 10px;
    padding-right: 10px;
  }
}
@media only screen and (max-width: 767px) {
  h2 {
    font-size: 18px;
    line-height: 24px;
  }
  h3 {
    font-size: 12px;
    line-height: 20px;
  }
  h3 strong {
    padding: 2px 5px;
    background: #f00;
    border-radius: 3px;
  }
  .main-wrapper {
    padding: 15px 13px;
  }
}

.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background-color: #fff;
  border-top: 1px solid #ccc;
  padding: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.footer-content {
  width: 70%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.status {
  font-weight: bold;
  margin-right: 12px;
}

.status-text {
  background-color: #ff4d4d;
  color: white;
  padding: 2px 6px;
  border-radius: 3px;
}

.agents {
  display: flex;
  align-items: center;
  position: relative;
}

.agents::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #00b300;
  border-radius: 50%;
  margin-right: 5px;
  position: relative;
  z-index: 1;
}

.agents::after {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  background-color: #00b300;
  border-radius: 50%;
  position: absolute;
  transform: scale(1);
  z-index: 0;
  animation: blink 1.5s infinite;
}
@keyframes blink {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Mobile Styles */
@media (max-width: 600px) {
  .footer-content {
    width: 100%;
    padding: 0 10px;
  }
  .status,
  .agents {
    font-size: 12px;
  }
  .status-text {
    padding: 2px 4px;
  }
}
