/* Modal container */
.modal-container {
  padding: 1.5rem 2.5rem 1rem 2.5rem;
  position: fixed;
  top: 0;
  right: -450px; /* initial position, off-screen to the right */
  width: 400px;
  height: 100vh;
  background: #e3e4e5;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: right 0.3s ease-in-out;
}

.modal-container .heading {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.modal-container .heading svg {
  height: 15px;
  width: 15px;
  cursor: pointer;
}

.modal-container .heading span {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 18px;
  color: #353535;
}

.modal-container p {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 10px;
  color: #353535;
  margin-bottom: 2rem;
}

/* Open button */
.open-modal {
  cursor: pointer;
}

/* Modal open state */
.modal-container.open {
  right: 0; /* move modal on-screen */
}

.modal-container .section {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  background: #f4f4f4;
  box-shadow: 36.6393px 67.4935px 64.9625px rgba(54, 62, 86, 0.15);
  border-radius: 13px;
}

.section .tab-section {
  display: flex;
  margin-bottom: 1rem;
  width: 100%;
  justify-content: space-between;
  border-bottom: 1px solid #667085;
}

.section .tab-section .tab {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  cursor: pointer;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: #667085;
}

.active {
  background: #e3e4e5;
  padding: 10px;
  border-top: 4px solid #d82a4e;
  font-size: 14px;
  border-top-left-radius: 10px;
}

.section .tabContent .form {
  display: grid;
  column-gap: 1rem;
  width: 100%;
  padding: 10px 30px 0 30px;
}

.section .tabContent .form .input-fields label {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  color: #404040;
}

.section .tabContent .form .input-fields .input-text-field {
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: start;
  border: 1px solid #404040;
  border-radius: 4px;
  margin-top: 2px;
  background: #f9faff;
  box-sizing: border-box;
}

.section .tabContent .form .input-fields .message {
  height: 80px;
}

.section .tabContent .form .comment {
  margin-bottom: 1rem;
}

.section .tabContent .form .input-fields .input-text-field svg {
  margin: 0px 7px 0px 10px;
  height: 15px;
  width: 15px;
}

.section .tabContent .form .input-fields .input-text-field input {
  flex: 1;
  height: inherit;
  background-color: transparent;
  border: none;
  margin-right: 5px;
}

.section .tabContent .form .input-fields .input-text-field input::placeholder {
  font-size: 11px;
}

.section .tabContent .form .input-fields .input-text-field input:focus,
.section .tabContent .form .input-fields .input-text-field textarea:focus {
  outline: none;
}

.section .tabContent .form .submit {
  display: flex;
  justify-content: center;
  gap: 10px;
  background: #136e12;
  align-items: center;
  padding: 8px 16px;
  border-radius: 7px;
  margin-bottom: 4rem;
}

.section .tabContent .form .submit span {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  color: #ffffff;
}

.section .tabContent .form .submit svg {
  height: 12px;
  width: 12px;
}

.section .tabContent .footers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem 0 0 0;
  border-top: 1px solid #404040;
}

.section .tabContent .footers .contact-info {
  display: flex;
  background: #232323;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: 7px 13px 7px 13px;
  gap: 7px;
}

.section .tabContent .footers .contact-info .contact-icon {
  background-color: #136e12;
  padding: 5px 7px;
  border-radius: 7.62742px;
}

.section .tabContent .footers .contact-info .contact-icon svg {
  height: 12px;
  width: 12px;
}

.section .tabContent .footers .contact-info .text {
  display: flex;
  flex-direction: column;
}

.section .tabContent .footers .contact-info .text h1 {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-size: 10px;
  color: #feaa53;
}

.section .tabContent .footers .contact-info .text p {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-size: 7px;
  color: #ffffff;
  margin: auto;
}

/* Responsive styles for mobile view */
@media only screen and (max-width: 768px) {
  .modal-container {
    width: 100%; /* make modal full-width on mobile */
    right: -100%; /* adjust initial position for mobile */
  }
  .modal-container.open {
    right: 0; /* move modal on-screen */
  }
  .modal-content {
    padding: 10px; /* reduce padding on mobile */
  }
}

.modal-container .section .tabContent .chatBx {
  position: relative;
  width: 100%;
  overflow-y: scroll;
  padding: 8px;
  height: 300px;
  margin-bottom: 3rem;
}

.modal-container .section .tabContent .chatBx::-webkit-scrollbar {
  height: 0.3rem;
  width: 0.4rem;
}

.modal-container .section .tabContent .chatBx::-webkit-scrollbar-thumb {
  background-color: #e3e4e5;
  border-radius: 24px;
}

.modal-container .section .tabContent .chatBx .msg {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 1rem;
}

.modal-container .section .tabContent .chatBx .msg p {
  position: relative;
  font-family: "Montserrat";
  right: 0;
  text-align: right;
  max-width: 90%;
  padding: 1.2rem;
  background: #e2e2e2;
  font-size: 0.6rem;
  border-radius: 15px 15px 15px 2px;
  margin-bottom: 10px;
}

.modal-container .section .tabContent .chatBx .msg .sent {
  border-radius: 15px 15px 3px 15px;
  background: #353535;
  color: #ffffff;
}

.modal-container .section .tabContent .chatBx .msg p::before {
  content: "";
  position: absolute;
}

.modal-container .section .tabContent .chatBx .msg span {
  display: block;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-size: 11.7055px;
  line-height: 16px;
  color: #136e12;
}

.modal-container .section .tabContent .chatBx .msg-sent {
  justify-content: flex-end !important;
  align-items: flex-end !important;
}

.modal-container .section .tabContent .chatBx .msg-recieved {
  justify-content: flex-start !important;
  align-items: flex-start !important;
}

.modal-container .section .tabContent .chatBx .msg-recieved p {
  background: #e2e2e2;
  text-align: left;
}

.modal-container .section .tabContent .foter {
  display: flex;
  /* margin-top: 2rem; */
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem 0 1rem 0;
  border-top: 1px solid #404040;
}

.modal-container .section .tabContent .foter input {
  padding: 7px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-items: flex-start;
  gap: 7px;
}

.modal-container .section .tabContent .foter input:focus {
  outline: none;
}

.modal-container .section .tabContent .foter .icon {
  background-color: #136e12;
  padding: 5px 9px;
  border-radius: 4px;
  cursor: pointer;
}

.modal-container .section .tabContent .foter .icon svg {
  height: 10px;
  width: 10px;
}
