/* Basic styling for the modal */
.affhomesai_modal {
    display: none; /* This should be the initial state */
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Modal Content */
.affhomesai_modal-content {
    background-color: white;
    margin: 0% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 750px;
    text-align: center;
}

/* Close Button */
.affhomesai_close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 25px;
    padding: 0 10px;
}

/* Close Button Hover */
.affhomesai_close:hover,
.affhomesai_close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Style the Action Button */
#affhomesai_actionBtn {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover Effect for Action Button */
#affhomesai_actionBtn:hover {
    background-color: #0056b3;
}
/* Style the login Button */
#affhomesai_loginBtn {
    padding: 10px 20px;
    background-color: #023320;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Hover Effect for login Button */
#affhomesai_loginBtn:hover {
    background-color: #088f08;
}

h2#affhomesai_modalTitle {
    margin-bottom: 0px;
	font-size: 2rem;
}

.affhomesai_modal-actions{
	margin: 0px 0 4px;
}

#affhomesai_modalDescription{
    padding: 10px;
}

.affhomesai_commonbtn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
}
a{
    text-decoration: none!important;
}

/* Custom styling for select element */
.affhomesaiformcommon select {
    min-height: 45px;   /* Set the minimum height */
    padding: 8px 12px;  /* Add some padding inside the select */
    font-size: 16px;     /* Adjust font size */
    line-height: 1.5;    /* Proper line height */
    border: 1px solid #ccc; /* Optional: border style */
    border-radius: 4px;  /* Optional: border radius for rounded corners */
    appearance: none;    /* Remove the default browser dropdown arrow */
    -webkit-appearance: none; /* For Webkit browsers like Chrome/Safari */
    -moz-appearance: none;  /* For Firefox */
    background-color: #fff; /* Set background color */
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zY3JlZW5zY2FwZSIgdmlld0JveD0iMCAwIDEyIDEyIj4KPHBhdGggZD0iTTEuMyw1Ljk3NGwtMS4zLDEuMzYzTDUsNy44MzktMS4zLC0yLjg3N2wtMS4zLC0xLjM2MyIgZmlsbD0ibm9uZSIgc3R5bGU9ImZpbGw6IzAwMDAwMCIvPgo8L3N2Zz4K')!important;
    background-repeat: no-repeat;
    background-position: right 10px center; /* Position the arrow */
    background-size: 12px; /* Set the size of the custom icon */
}

/* Optionally, you can change the background color when the select is focused */
.affhomesaiformcommon select:focus {
    border-color: #007bff;
    outline: none;
}
.affhomesaiformcommon label{
    margin-bottom: 3px;
    font-size: 1em;
    font-weight: 600;
    color: black;
}
.affhomesaiformcommon .form-control{
    background-color: #fff;
    border-width: 1px 1px 1px 1px;
    padding: 10px 10px 10px 10px;
    border-color: #9b9b9b;
}

.affhomesaiformcommon .booking-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.affhomesaiformcommon .booking-info .spanlabel {
    font-weight: bold;
    margin-right: 10px;
    font-weight: 600;
    color: brown;
}

.affhomesaiformcommon .booking-info .spanvalue {
    font-style: italic;
    font-weight: 600;
    color: black;
}

.affhomesaiformcommon .stripe-logo {
    background-image: url('../../assets/img/stripe.png'); /* Path to your PayPal logo image */
    background-size: cover;
    display: inline-block;
    vertical-align: middle;
    margin-right: 10px;
    width: 70px;
    height: 30px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 20px;
  }
  
  .affhomesaiformcommon .stripe-text {
    display: inline-block;
    vertical-align: middle;
  }

  .affhomesaiformcommon .stripe-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #003087;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    margin-top: 20px;
  }
  
  .affhomesaiformcommon .stripe-button:hover {
    background-color: #001f5e;
  }



/* new css fro affhome ai chat */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
:root {
  --text-color: #FFFFFF;
  --icon-color: #ACACBE;
  --icon-hover-bg: #5b5e71;
  --placeholder-color: #dcdcdc;
  --outgoing-chat-bg: #343541;
  --incoming-chat-bg: #444654;
  --outgoing-chat-border: #343541;
  --incoming-chat-border: #444654;
}
#affhomes-openai-chat .light-mode {
  --text-color: #343541;
  --icon-color: #a9a9bc;
  --icon-hover-bg: #f1f1f3;
  --placeholder-color: #6c6c6c;
  --outgoing-chat-bg: #FFFFFF;
  --incoming-chat-bg: #F7F7F8;
  --outgoing-chat-border: #FFFFFF;
  --incoming-chat-border: #D9D9E3;
}

/* Chats container styling */
#affhomes-openai-chat .chat-container {
  overflow-y: auto;
  max-height: 100vh;
  padding-bottom: 50px;
  background: #41434f;
}
:where(.chat-container, textarea)::-webkit-scrollbar {
  width: 6px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-track {
  background: var(--incoming-chat-bg);
  border-radius: 25px;
}
:where(.chat-container, textarea)::-webkit-scrollbar-thumb {
  background: var(--icon-color);
  border-radius: 25px;
}
#affhomes-openai-chat .default-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 70vh;
  padding: 0 10px;
  text-align: center;
  color: var(--text-color);
}
#affhomes-openai-chat .default-text h1 {
  font-size: 3.3rem;
}
#affhomes-openai-chat .default-text p {
  margin-top: 10px;
  font-size: 1.1rem;
}
#affhomes-openai-chat .chat-container .chat {
  padding: 25px 10px;
  display: flex;
  justify-content: center;
  color: var(--text-color);
}
#affhomes-openai-chat .chat-container .chat.outgoing {
  background: var(--outgoing-chat-bg);
  border: 1px solid var(--outgoing-chat-border);
}
#affhomes-openai-chat .chat-container .chat.incoming {
  background: var(--incoming-chat-bg);
  border: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .chat .chat-content {
  display: flex;
  max-width: 1200px;
  width: 100%;
  align-items: flex-start;
  justify-content: space-between;
}
#affhomes-openai-chat span.material-symbols-rounded {
  user-select: none;
  cursor: pointer;
}
#affhomes-openai-chat .chat .chat-content span {
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--icon-color);
  visibility: hidden;
  padding: 6px 6px;
  background: #ebebeb;
  border-radius: 5px;
  color: black;
}
#affhomes-openai-chat .chat:hover .chat-content:not(:has(.typing-animation), :has(.error)) span {
  visibility: visible;
}
#affhomes-openai-chat .chat .chat-details {
  display: flex;
  align-items: center;
}
#affhomes-openai-chat .chat .chat-details img {
  width: 35px;
  height: 35px;
  align-self: flex-start;
  object-fit: cover;
  border-radius: 2px;
}
#affhomes-openai-chat .chat .chat-details p {
  white-space: pre-wrap;
  font-size: 14px;
  padding: 0 50px 0 25px;
  color: var(--text-color);
  word-break: break-word;
}
#affhomes-openai-chat .chat .chat-details p.error {
  color: #e55865;
}
#affhomes-openai-chat .chat .typing-animation {
  padding-left: 25px;
  display: inline-flex;
}
#affhomes-openai-chat .typing-animation .typing-dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  margin: 0 3px;
  opacity: 0.7;
  background: var(--text-color);
  animation: animateDots 1.5s var(--delay) ease-in-out infinite;
}
#affhomes-openai-chat .typing-animation .typing-dot:first-child {
  margin-left: 0;
}
@keyframes animateDots {
  0%,44% {
    transform: translateY(0px);
  }
  28% {
    opacity: 0.4;
    transform: translateY(-6px);
  }
  44% {
    opacity: 0.2;
  }
}

/* Typing container styling */
#affhomes-openai-chat .typing-container {
  width: 100%;
  display: flex;
  padding-bottom: 75px;
  padding-top: 20px;
  justify-content: center;
  background: var(--outgoing-chat-bg);
  border-top: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .typing-container .typing-content {
  display: flex;
  max-width: 950px;
  width: 100%;
  align-items: flex-end;
}
#affhomes-openai-chat .typing-container .typing-textarea {
  width: 100%;
  display: flex;
  position: relative;
}
#affhomes-openai-chat .typing-textarea textarea {
  resize: none;
  height: 55px;
  width: 100%;
  border: none;
  padding: 15px 45px 15px 20px;
  color: #000;
  font-size: 15px;
  border-radius: 7px 7px 0px 0px;
  max-height: 250px;
  overflow-y: auto;
  background: #fdfdfd;
  outline: 1px solid var(--incoming-chat-border);
}
#affhomes-openai-chat .typing-textarea textarea::placeholder {
  color: #3e3d3d;
}
#affhomes-openai-chat .typing-content span {
  width: 55px;
  height: 55px;
  display: flex;
  border-radius: 4px;
  font-size: 15px;
  align-items: center;
  justify-content: center;
  color: #fff;
}
#affhomes-openai-chat .typing-textarea span {
  position: absolute;
  right: 0;
  bottom: 0;
  visibility: hidden;
}
#affhomes-openai-chat .typing-textarea textarea:valid ~ span {
  visibility: visible;
}
#affhomes-openai-chat .typing-controls {
  display: flex;
}
#affhomes-openai-chat .typing-controls span {
  margin-left: 7px;
  font-size: 22px;
  background: #092f19;
  outline: 1px solid #178245;
}
#affhomes-openai-chat .typing-controls span:hover {
  background: #178245;
}
.display-none{
  display: none;
}
#affhomes-openai-chat .file-upload-btn {
  cursor: pointer;
  margin-left: 15px;
}
#affhomes-openai-chat .file-upload-btn i{
  width: 30px;
  height: 30px;
  background: #fdfdfd;
  line-height: 28px;
  text-align: center;
  margin: 0px;
  border: 1px solid #aca1a1;
  border-radius: 50%;
  color: #1e1c1c;
}
#affhomes-openai-chat #file-name {
  font-size: 12px;
  color: gray;
  margin-left: 5px;
}
#affhomes-openai-chat .file-area{
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #f0f0f0;
  padding-bottom: 12px;
  border-radius: 0px 0px 7px 7px;
  padding-top: 4px;
  padding-bottom: 4px;
}
#affhomes-openai-chat .affhome-audio span{
  visibility: inherit;
  color: rgb(30, 12, 190);
  font-size: 18px !important;
  left: 7%;
  width: 30px;
  height: 30px;
  background-color: #fff;
  top: 4px;
  border-radius: 50%;
  border: 1px solid #aca1a1;
}
#affhomes-openai-chat #file-name-display{
    visibility: inherit;
    color: rgb(255, 255, 255);
    font-size: 12px !important;
    left: 0;
    top: 50%;
    width: 100%;
    justify-content: left;
}
/* Reponsive Media Query */
@media screen and (max-width: 820px) {
  #affhomes-openai-chat .affhome-audio span{
    visibility: inherit;
    color: rgb(30, 12, 190);
    font-size: 18px !important;
    left: 10%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    top: 2px;
    border-radius: 50%;
    border: 1px solid #aca1a1;
  }
}
@media screen and (max-width: 600px) {
  #affhomes-openai-chat .default-text h1 {
    font-size: 2.3rem;
  }
  :where(.default-text p, textarea, .chat p) {
    font-size: 0.95rem!important;
  }
  #affhomes-openai-chat .chat-container .chat {
    padding: 20px 10px;
  }
  #affhomes-openai-chat .chat-container .chat img {
    height: 32px;
    width: 32px;
  }
  #affhomes-openai-chat .chat-container .chat p {
    padding: 0 10px;
  }
  #affhomes-openai-chat .chat .chat-content:not(:has(.typing-animation), :has(.error)) span {
    visibility: visible;
  }
  #affhomes-openai-chat .typing-container {
    padding: 15px 10px;
    padding-bottom: 60px;
  }
  #affhomes-openai-chat .file-area {
    padding-bottom: 8px;
  }
  #affhomes-openai-chat .typing-textarea textarea {
    height: 45px!important;
    padding: 10px 40px 10px 10px;
  }
  #affhomes-openai-chat .typing-content span {
    height: 30px;
    width: 30px;
    margin-left: 5px;
  }
  #affhomes-openai-chat span.material-symbols-rounded {
    font-size: 2.0rem !important;
  }
  #affhomes-openai-chat .affhome-audio span{
    visibility: inherit;
    color: rgb(30, 12, 190);
    font-size: 18px !important;
    left: 20%;
    width: 30px;
    height: 30px;
    background-color: #fff;
    top: 4px;
    border-radius: 50%;
    border: 1px solid #aca1a1;
  }
  #affhomes-openai-chat #file-name-display{
    visibility: inherit;
    color: rgb(255, 255, 255);
    font-size: 12px !important;
    left: 6%;
    top: 37px;
  }
}