/*
Theme Name:     BHC Theme
Theme URI:      https://bhc-riyadh.com/
Description:    BHC new theme
Author:         BHC
Author URI:     https://bhc-riyadh.com/
Version:        1.0.0
*/

/* Custom CSS below */
.lqd-back-to-top {
  left: 50px;
  right: auto;
}

.wpcf7-field-group {
  display: flex;
  gap: 15px;
}

.wpcf7-field-group > p {
  display: flex;
  align-items: center;
  gap: 10px;
}

#childs-groups .wpcf7-field-group {
  /* justify-content: space-between; */
  align-items: flex-end;
}

.wpcf7-field-group-add,
.wpcf7-field-group-remove {
  width: 45px;
  min-width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #201b6d;
  color: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: all 0.3s ease-in-out;
  font-size: 2.6rem !important;
  padding: 10px 20px !important;
}

.wpcf7-field-group-add:hover,
.wpcf7-field-group-remove:hover {
  background-color: #a59052;
}

/* Chatbot Styles */
#chatbot-container {
  position: relative;
  max-width: 100%;
  margin: 0 auto;
}

.chatbot-toggle {
  position: fixed;
  bottom: 90px;
  right: 55px;
  width: 55px;
  height: 55px;
  background-color: #201b6d;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.chatbot-toggle:hover {
  background-color: #0056b3;
  transform: scale(1.1);
}

.chatbot-toggle img {
  width: 35px;
  height: 35px;
}

.chatbot-window {
  position: fixed;
  bottom: 155px;
  right: 20px;
  width: 350px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
  overflow: hidden;
}

.chatbot-header {
  background: linear-gradient(135deg, #201b6d, #0056b3);
  color: white;
  font-weight: bold;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
}

.chatbot-close {
  font-size: 28px;
  line-height: 18px;
}

.chatbot-messages {
  flex: 1;
  padding: 15px;
  overflow-y: auto;
  background: #f8f9fa;
  min-height: 0;
  max-height: calc(500px - 52px - 124px);
}

.message {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
}

.message.user {
  align-items: end;
}

.message-content {
  /* max-width: 80%; */
  padding: 10px 15px;
  border-radius: 18px;
  word-wrap: break-word;
}

.message.user .message-content {
  background: #201b6d;
  color: white;
  border-bottom-right-radius: 5px;
}

.message.bot .message-content {
  background: white;
  color: #333;
  border: 1px solid #e0e0e0;
  border-bottom-left-radius: 5px;
  /* max-width: 100%; */
}

.chatbot-starters {
  padding: 15px 15px 8px 15px;
  border-top: 1px solid #e0e0e0;
  background: white;
  flex-shrink: 0;
  position: relative;
}

.starter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.starter-btn {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 40px;
}

.starter-btn:hover {
  background: #201b6d;
  color: white;
  border-color: #201b6d;
}

.chatbot-input-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  border: 1px solid #dee2e6;
  border-radius: 25px;
  padding: 10px 15px;
  outline: none;
  font-size: 14px;
  height: 45px;
}

.emoji-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.3s ease;
  line-height: 15px;
}

.emoji-btn:hover {
  background: #f8f9fa;
}

.send-btn {
  background: #201b6d;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.send-btn:hover {
  background: #0056b3;
}

.emoji-picker {
  position: absolute;
  bottom: 60px;
  right: 50px;
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: none;
  max-width: 250px;
  z-index: 1001;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
}

.emoji-item {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.emoji-item:hover {
  background: #f8f9fa;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  border-bottom-left-radius: 5px;
  max-width: 80px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
  }

  40% {
    transform: scale(1);
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .chatbot-window {
    width: calc(100vw - 40px);
    /* height: calc(100vh - 180px); */
    bottom: 155px;
    right: 20px;
    left: 20px;
  }

  .chatbot-messages {
    max-height: calc(100vh - 140px - 125px - 124px);
  }

  .starter-buttons {
    /* flex-direction: column; */
  }

  .starter-btn {
    /* width: 100%; */
    text-align: center;
  }

  .emoji-picker {
    right: 10px;
    left: 10px;
    max-width: none;
  }
}

@media (max-width: 480px) {
  .chatbot-window {
    width: calc(100vw - 20px);
    /* height: calc(100vh - 180px); */
    /* bottom: 80px; */
    right: 10px;
    left: 10px;
  }

  .chatbot-messages {
    /* max-height: calc(100vh - 120px - 125px - 124px); */
    max-height: 300px;
  }

  .message-content {
    max-width: 90%;
    font-size: 14px;
  }

  .chatbot-input {
    font-size: 16px;
    /* Prevents zoom on iOS */
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .chatbot-input {
    font-size: 16px;
    -webkit-appearance: none;
    border-radius: 25px;
  }
}

/* Android specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
  .chatbot-input:focus {
    outline: none;
    border-color: #201b6d;
  }
}

.chaty-i-trigger .chaty-channel {
  right: 30px !important;
}

.on-hover-text {
  display: none !important;
}

.chatbot-toggle .popover {
  background-color: rgba(0, 0, 0, 0.85);
  border-radius: 10px;
  bottom: 65px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 10px;
  left: -50px;
  padding: 4px 8px;
  position: absolute;
  z-index: 4;
  white-space: nowrap;
  /* display: none; */
}

.chatbot-toggle .popover:before {
  border-top: 7px solid rgba(0, 0, 0, 0.85);
  border-right: 7px solid transparent;
  border-left: 7px solid transparent;
  bottom: -6px;
  content: "";
  display: block;
  left: 50%;
  margin-left: -7px;
  position: absolute;
}

.chatbot-toggle:hover .popover {
  /*display: block;*/
  /* -webkit-animation: fade-in .3s linear 1, move-up .3s linear 1;
	-moz-animation: fade-in .3s linear 1, move-up .3s linear 1;
	-ms-animation: fade-in .3s linear 1, move-up .3s linear 1; */
}

@-webkit-keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-moz-keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-ms-keyframes fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@-webkit-keyframes move-up {
  from {
    bottom: 30px;
  }

  to {
    bottom: 42px;
  }
}

@-moz-keyframes move-up {
  from {
    bottom: 30px;
  }

  to {
    bottom: 42px;
  }
}

@-ms-keyframes move-up {
  from {
    bottom: 30px;
  }

  to {
    bottom: 42px;
  }
}

.select2-container--default .select2-selection--single {
  border-radius: 0 !important;
  height: 50px !important;
  width: 100%;
  padding-inline-start: 1em !important;
  padding-inline-end: 1em !important;
  position: relative;
  border: 1px solid #d5d6de !important;
  background: 0 0;
  align-items: center;
  color: #b7b9c4 !important;
  transition: all 0.3s;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 50px !important;
  opacity: 0.5 !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 10px !important;
  right: 20px !important;
}

.message > p {
  font-size: 12px;
  margin-top: 3px;
}

.message-content {
  white-space: pre-line;
}

.message-content a {
  color: blue;
}

.wpbc_container_booking_form {
  width: 100%;
}

.wpbc_after_booking_thank_you_section {
  max-width: 100%;
}

.datepick-inline:not(.datepick-multi) .datepick-header {
  padding: 0 15px;
}

.wpbc_after_booking_thank_you_section .wpbc_ty__message {
  margin: 0 0 10px;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.wpbc_after_booking_thank_you_section .wpbc_ty__container {
  font-size: inherit;
}

.mystickyelements-fixed {
  z-index: 999 !important;
}

.awsm-job-container h1 {
  color: #201b6d;
  position: absolute;
}

.awsm-job-container p {
  line-height: 24px;
  margin: 15px 0;
}

.awsm-job-container .awsm-job-specification-item {
  margin-bottom: 10px;
}

.awsm-job-container {
  max-width: 1360px;
}

.awsm-job-form-inner {
  border-radius: 20px;
  box-shadow: 0px 0px 8px 0px #00000014;
  border: none;
  padding: 50px;
}

.awsm-job-content {
  margin-block: 30px;
}

.awsm-job-more {
  padding: 10px 15px;
  color: #fff !important;
  background-color: #201b6d;
  border-radius: 6px;
  transition: all 0.3s ease-in-out;
  position: relative;
  width: fit-content;
  text-align: center;
  font-size: 1.5rem;
  white-space: nowrap;
}

.awsm-job-more:hover {
  background-color: #a59052;
}

@media only screen and (max-width: 1280px) {
  .e-con-boxed .e-con-inner {
    padding-inline: 15px;
  }
}

@media only screen and (max-width: 768px) {
  .wpcf7-field-group {
    flex-wrap: wrap;
  }
  .child-form-control {
    width: 100% !important;
  }
  .lqd-contact-form .wpcf7-form-control-wrap {
    margin: auto;
  }

  .wpcf7-field-group-add,
  .wpcf7-field-group-remove {
    margin-bottom: 10px;
  }

  .e-con-boxed .e-con-inner {
    padding-inline: 15px;
  }
}

.e-n-tabs-heading {
  margin-inline: auto;
  gap: 5px !important;
  margin-bottom: 1.5rem;
  padding: 3px;
  border: 0.5px solid #201b6d;
  width: -moz-fit-content;
  width: fit-content;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: 0px 0px 4px 2px rgba(0, 0, 0, 0.08);
}

.e-n-tabs-heading > button {
  background: white;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  line-height: 28px;
  font-size: 16px !important;
  font-weight: 400;
  color: #000000;
  opacity: 0.5;
  border-radius: 13px !important;
}
.e-n-tabs-heading > button > span {
  font-size: 16px !important;
}
.e-n-tabs-heading > button[aria-selected="true"] {
  color: white;
  z-index: 1;
  font-weight: 700;
  opacity: 1;
}

.e-n-tabs-heading > button:hover:not([aria-selected="true"]) {
  background: #f5f7fb;
}

#mega-menu-wrap-primary
  #mega-menu-primary
  > li.mega-menu-flyout
  ul.mega-sub-menu {
  width: 280px;
  padding-block: 15px;
}
