@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --color-primary: #e74e0f;
  --color-primary-hover: #b9400c;
  --color-primary-gray: #7c7b7b;
  --color-secondary-black: #000000;
  --color-transparent: transparent;
  --color-secondary: rgb(255, 255, 255);
  --color-grey: #f0f0f0;
  --bg-grey-light: #eeeeee;
  --bg-ultra-grey: #eee;
  --color-gray-dark: #3d3d3d;
  --color-light-black-transparent: rgba(0, 0, 0, 0.1);
  --color-gray-seecond: #c9c9c9;
  --custom-otion-hover: #d1d1d1;
  --color-dark-grey: #333333;
  --border-top-input: #d1d1d1;
  --title-color-grey: #959595;
  --error-message: red;
  --bg-error-message: #ffebeb;
  --mb-0-5: 0.5rem;
  --mt-3: 3rem;
  --mb-3: 3rem;
  --mt-4: 4rem;
  --mb-4: 4rem;
  --radius: 7px;
  --radius-message-bot: 15px 15px 15px 0px;
  --radius-message-user: 15px 15px 0px 15px;
  --radius-0: 0;
  --top-1-rem: 1rem;
  --top-0-5-rem: 0.5rem;
  --hidden: none;
  --max-w-message: 800px;
  --w-full: 100%;
  --h-screen: 100vh;
  --color: #166e67;
  --gap: 0.5rem;
  --shadow: rgba(0, 0, 0, 0.05) 0px 6px 10px 0px,
    rgba(0, 0, 0, 0.1) 0px 0px 0px 1px;
  --transition-hover: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

body,
html,
h3,
h2,
p {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

::selection {
  background-color: var(--color-primary);
  color: var(--color-secondary);
}

:-webkit-scrollbar-track {
  background: var(--color-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary);
  border-radius: var(--radius-0);
}

::-webkit-scrollbar-thumb {
  background-color: var(--color-primary) !important;
}

::-webkit-scrollbar {
  width: 7px;
}

.back {
  color: var(--color-primary-gray);
}
.image-home {
  max-width: var(--w-full);
  width: 100%;
}

header {
  padding: var(--top-1-rem);
  display: flex;
  justify-content: space-between;
  width: 95%;
  margin: 0 auto;
  max-width: 1200px;
}

input:focus-visible {
  outline: none;
  border: solid 2px var(--color-gray-dark) !important;
}

.custom-select {
  position: relative;
}

.color-grey-text {
  color: var(--color-dark-grey);
}

.container-back {
display: flex;
color: var(--color-dark-grey);
    justify-content: start;
    align-items: center;
    gap: var(--mb-0-5);
    cursor: pointer;
    background-color: white;
    padding: 0;
    border-radius: 0;
}

#chatContainer {
  max-width: 1200px;
  margin: 0 auto;
}

.h3-title {
  color: var(--color-dark-grey);
  font-weight: 400;
  margin-bottom: var(--mb-0-5);
}

.container-first-select,
.container-second-select,
.container-begin-section {
  width: 70%;
  margin: 0 auto;
}

.container-second-select {
  margin-top: var(--mt-3);
}

.mb-1 {
  margin-bottom: var(--mb-4);
}
.text-justify {
  text-align: justify;
  max-width: 1200px;
}

#text-info-start,
#text-info-second {
  max-width: 1200px;
}
.h3-section-begin {
  color: var(--title-color-grey);
  font-size: 40px;
  font-weight: 400;
}
.mb-4-text-styles {
  text-align: start;
  max-width: 300px;
  margin-bottom: 2rem;
}

.text-center {
  text-align: center;
}

.custom-select select {
  display: var(--hidden);
}

.select-selected {
  background-color: var(--color-grey);
  cursor: pointer;
}

.select-selected:after {
  position: absolute;
  content: "";
  top: 25px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: var(--color-gray-dark) transparent transparent transparent;
}

.resize-image-input {
  max-width: var(--w-full);
  height: auto;
  width: 10%;
}

.select-selected.select-arrow-active:after {
  border-color: transparent transparent var(--color-gray-dark) transparent;
  top: 15px;
}

.select-items div {
  color: var(--color-gray-dark);
  padding: 15px;
  cursor: pointer;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.select-selected {
  color: var(--color-gray-seecond);
  padding: 15px;
  cursor: pointer;
  border-radius: var(--radius);
}

.select-items {
  overflow: auto;
  max-height: 200px;
  position: relative;
  background-color: var(--color-grey);
  top: 3px;
  left: 0;
  right: 0;
  z-index: 99;
  border-radius: var(--radius);
}

.text-center {
  text-align: center;
}

.select-items div:hover,
.same-as-selected {
  background-color: var(--color-light-black-transparent);
  border-radius: var(--radius-0);
}

.hidden {
  display: var(--hidden) !important;
}

#titleSection1 {
  max-width: 1200px;
}

.container-image {
  position: fixed;
  bottom: var(--top-1-rem);
  cursor: pointer;
  right: var(--top-1-rem);
}

.flex-item {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 0.7rem;
}
.image-logo {
  max-width: var(--w-full);
  height: 70px;
}
.logo-img-begin-chat {
  max-width: 100%;
  height: 35px;
}

.container-image {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-primary);
  border-radius: var(--w-full);
  padding: 8px;
  width: 100px;
  height: 100px;
  display: grid;
  justify-content: center;
  place-items: center;
}

.container-image::after {
  content: "";
  position: absolute;
  bottom: 7px;
  right: 29px;
  width: 0px;
  height: 0px;
  border: 20px solid transparent;
  border-top-color: var(--color-primary);
  border-bottom: 0;
  margin-left: -20px;
  margin-bottom: -19px;
}

.container-image img {
  display: block;
  max-width: 100%;
  height: auto;
  cursor: pointer;
  position: relative;
}

.size {
  max-width: var(--w-full);
  height: 100px;
}

#errorContainer {
  background: var(--bg-error-message);
  padding: 20px;
  width: fit-content;
  margin: 0 auto;
  border-radius: var(--radius);
  color: var(--error-message);
  border: solid 2px var(--error-message);
  margin-top: 17rem;
}

.container-chat-message {
  height: 65vh;
  overflow: auto;
}

.container-chat-bot {
  background-color: var(--bg-grey-light);
  position: relative;
  margin: 0 auto;
  border-radius: 10px;
}

#text-response-chat {
  max-width: var(--max-w-message);
  text-align: start;
  background-color: var(--color-primary-gray);
  color: var(--color-grey);
  padding: var(--radius);
  border-radius: 0px 15px 15px 15px;
  justify-content: flex-start;
  display: flex;
  align-items: center;
  margin-bottom: var(--top-1-rem);
  margin-left: var(--top-1-rem);
  margin-top: var(--top-1-rem);
  margin-right: var(--top-1-rem);
}

.container-h {
  margin-top: 1rem;
  display: flex;
  justify-content: start;
  align-items: baseline;
}

.container-image-begin {
  background-color: #d2d2d2;
  height: 70px;
  width: 70px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  margin-left: var(--top-1-rem);
  justify-content: center;
}

.container-image-begin > img {
  max-width: 100%;
  height: 100%;
}
.icon-message-user {
  max-width: 100%;
  height: 50px !important;
}
.mr-4 {
  margin-right: var(--top-1-rem);
}
.icon-option {
  cursor: pointer;
  padding: 1rem;
}
.icon-option:hover {
  background-color: #eee;
  border-radius: 10%;
  transition: all 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.m-auto-text-center {
  margin: 0 auto;
  text-align: center;
}
.message-user {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 10px;
  padding: var(--radius);
  background-color: var(--color-primary);
  border-radius: 15px 0px 15px 15px;
  max-width: var(--max-w-message);
  color: var(--color-grey);
  width: fit-content;
  margin-left: var(--top-1-rem);
}

.container-image-user {
  background-color: #f3cdbd;
  height: 70px;
  width: 70px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  margin-left: var(--top-1-rem);
  justify-content: center;
  margin-right: 1rem;
}

.message-begin {
  display: flex;
  justify-content: start;
  align-items: baseline;
  gap: var(--mb-0-5);
}

.container-input-send-message {
  background-color: var(--bg-ultra-grey);
  padding: var(--top-1-rem);
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  position: static;
  border-radius: 0px 0px 7px 7px;
  border-top: 1px solid var(--border-top-input);
}

#submit-btn {
  position: relative;
  background-image: url(/svg-send/send.svg);
  background-repeat: no-repeat;
  background-size: 20px;
  border: none;
  cursor: pointer;
  top: 0px;
  left: 14px;
}

#submit-btn-foto{
  position: relative;
  background-image: url(/svg-send/foto.svg);
  background-repeat: no-repeat;
  background-size: 20px;
  border: none;
  cursor: pointer;
  top: 0px;
  color: transparent;
  left: 14px;
  background-color: transparent;
}

.container-input-send-message input[type="submit"] {
  background-color: var(--color-transparent);
  color: var(--color-transparent);
}

input[type="text" i],
input[type="email"] {
  width: 100%;
  border: none;
  padding: 13px;
  border-radius: var(--radius);
}

.span-strong {
  color: var(--color-dark-grey);
  font-weight: 500;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Visible focus for keyboard navigation */
.icon-option:focus,
button:focus,
input:focus,
select:focus {
    outline: 1px solid var(--color-primary);
    outline-offset: 1px;
}

/* Error messages */
.error-message {
    color: #d73502;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}
.max-w-200 {
  max-width: 200px !important;
}
.icon-select {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 3rem auto;
  max-width: 1200px;
}
.text-response-bot {
  max-width: var(--max-w-message);
  text-align: start;
  background-color: var(--color-primary-gray);
  color: var(--color-grey);
  padding: var(--radius);
  border-radius: var(--radius-message-bot);
  display: block;
  margin-bottom: var(--top-1-rem);
  margin-left: var(--top-1-rem);
  width: fit-content;
}
.general-size-image {
  max-width: 100%;
  height: auto;
  width: 165px;
}
.mb-10 {
  margin-bottom: 10px;
}
.container-message-full-w {
  width: var(--w-full);
  display: flex;
  justify-content: end;
  align-items: baseline;
  margin-bottom: var(--top-1-rem);
}

a {
  color: var(--color-secondary);
  font-weight: bold;
  font-style: italic;
}

.container-form {
  width: 95%;
  margin: 0rem 2rem 2rem 2rem;
}

.cobtainer-p {
  padding: var(--top-1-rem) var(--top-1-rem) 2rem var(--top-1-rem);
  background-color: var(--bg-grey-light);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.mt-4 {
  margin-top: var(--top-1-rem);
}

.grid {
  display: grid;
  width: 40%;
  margin: 0 auto;
}

.mt-0-5 {
  margin-top: var(--top-0-5-rem);
}
#container-form {
  max-width: 1200px;
  margin: 0 auto;
}
.auto {
  width: auto !important;
}
#containerButton {
  max-width: 1200px;
  margin: 0 auto;
}

.container-button-submit-form {
  width: 40%;
  margin: 0 auto;
}

.btn-submit-form-contact {
  width: var(--w-full);
  margin-top: 1.5rem;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  background-color: var(--color-primary);
  color: var(--color-grey);
  cursor: pointer;
  transition: var(--transition-hover);
}

.btn-submit-form-contact:hover {
  background-color: var(--color-primary-hover);
}

.contact-form {
  padding: 0 0 var(--top-1-rem) 0;
}

.mb-0-5 {
  margin-bottom: var(--top-1-rem);
}

.custom-select-wrapper {
  position: relative;
  width: var(--w-full);
  user-select: none;
}

.custom-select {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger {
  background-color: var(--color-secondary);
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--radius);
}

.custom-options {
  top: var(--w-full);
  left: 0;
  right: 0;
  border-radius: 4px;
  background-color: var(--color-secondary);
  display: none;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 6px;
  overflow-x: hidden;
}
.container-input {
  width: var(--w-full);
  position: sticky;
  top: 0;
}
.custom-select-search,
.custom-select-search-second {
  padding-block: 0;
  padding-inline: 0;
  width: 96% !important;
  padding: 13px;
  border-radius: 0px 7px 7px 0px !important;
  border-bottom: 1px solid #eee !important;
}
input.custom-select-search:focus-visible {
  outline: none;
  border-bottom: 1px solid #eee !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}
.mt-4-top {
  margin-top: 2rem;
}
input.custom-select-search-second:focus-visible {
  outline: none;
  border-bottom: 1px solid #eee !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}
.border-grey{
  background-color: #e3e3e3 !important;
  padding: 5px;
}
.resize-border{
  border-radius: 10px 0px 10px 10px !important;
}
.custom-option {
  padding: 10px;
  cursor: pointer;
  border-bottom: solid 1px var(--bg-ultra-grey);
}

.custom-option:hover {
  background-color: var(--custom-otion-hover);
}

button:disabled {
  background-color: #eee !important;
  color: #c5c5c5 !important;
}

.custom-select.open .custom-options {
  display: flex;
}

.open {
  display: block !important;
}

.container-error {
  height: var(--h-screen);
  display: grid;
  place-items: center;
}

.custom-select-wrapper-second {
  position: relative;
  width: var(--w-full);
  user-select: none;
}

.custom-select-second {
  position: relative;
  display: flex;
  flex-direction: column;
}

.custom-select-trigger-second {
  background-color: var(--color-secondary);
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--radius);
}

.custom-options-second {
  top: var(--w-full);
  left: 0;
  right: 0;
  border-radius: 4px;
  background-color: var(--color-secondary);
  display: none;
  flex-direction: column;
  max-height: 200px;
  overflow-y: auto;
  margin-top: 6px;
  overflow-x: hidden;
}

.message-begin {
  display: flex;
  justify-content: start;
  align-items: baseline;
  gap: 1rem;
}

.container-image-bot > img {
  max-width: 100%;
  height: 100%;
}

.container-image-bot {
  background-color: #d2d2d2;
  height: 70px;
  width: 70px;
  border-radius: 100%;
  display: flex;
  align-items: center;
  margin-left: var(--top-1-rem);
}

.container-message {
  max-width: var(--max-w-message);
  text-align: start;
  background-color: var(--color-primary-gray);
  color: var(--color-grey);
  padding: var(--radius);
  border-radius: 0px 15px 15px 15px;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: var(--top-1-rem);
  margin-top: var(--top-1-rem);
  margin-right: var(--top-1-rem);
}

.custom-option-second {
  padding: 10px;
  cursor: pointer;
}

.custom-option-second:hover {
  background-color: #f0f0f0;
}

.custom-select-second.open .custom-options-second {
  display: flex;
}

#toggle-form-button {
  width: var(--w-full);
  margin-top: 1.5rem;
  border: none;
  padding: 10px;
  border-radius: var(--radius);
  background-color: var(--color-primary);
  color: var(--color-grey);
  cursor: pointer;
  transition: var(--transition-hover);
  margin-bottom: 1.5rem;
}

.container-button {
  width: 95%;
  margin: 0 auto;
}

#sessionClosed {
  text-align: center;
  margin-top: 20rem;
}

#status-message {
  text-align: center;
}

/*Upload image*/

.container {
  background-color: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 15px 15px 0px 15px;
}

button {
  background-color: #e84e0e;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

button:hover {
  background-color: #c73f05;
}

.container-back {
  background-color: white !important;
}

.icon {
  width: 20px;
  height: 20px;
}


.image-preview {
  max-width: 100%;
  max-height: 300px;
  border-radius: 5px;
  display: none;
  margin-top: 15px;
  border: 2px solid #e0e0e0;
}

.delete-btn {
  background-color: var(--custom-otion-hover);
  color: var(--color-gray-dark);
  display: none;
}

.delete-btn:hover {
  background-color: var(--color-gray-dark);
  color: var(--bg-grey-light);
}

.action-buttons {
  display: flex;
  gap: 10px;
  margin-top: 15px;
  justify-content: center;
}

.send-btn {
  background-color: var(--color-primary);
  display: none;
}

.send-btn:hover {
  background-color: #219653;
}

#file-input {
  display: none;
}

.status-message {
  margin-top: 15px;
  text-align: center;
  color: #7f8c8d;
  font-style: italic;
}

.capture-container {
  display: none;
  margin-top: 20px;
  width: 100%;
}

#camera-stream {
  width: 100%;
  max-height: 300px;
  border-radius: 5px;
  border: 2px solid #e0e0e0;
}

.camera-controls {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  gap: 10px;
}

.capture-btn {
  background-color: var(--color-primary);
}

.capture-btn:hover {
  background-color: #c0392b;
}

#back-button{
  position: absolute;
    top: 0px;
    left: -10px;
    background-color: #ffffff00;
    color: var(--color-gray-dark);
}

.close-camera-btn {
  background-color: #7f8c8d;
}

.close-camera-btn:hover {
  background-color: var(--color-gray-dark);
  color: var(--color-dark-grey);
}

.image-zoom-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.image-zoom-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.zoom-image-container {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.zoom-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.close-zoom {
  position: absolute;
  top: -40px;
  right: 0;
  background-color: white;
  color: black;
  border: none;
  width: 36px;
  height: 36px;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.typing-indicator {
  display: flex;
  align-items: center;
  margin: 10px 0;
}

.typing-indicator-bubble {
  display: flex;
  align-items: center;
  border-radius: 20px;
  max-width: 100px;
}

.typing-indicator-dot {
  width: 8px;
  height: 8px;
  margin: 0 2px;
  background-color: #ffffff;
  border-radius: 50%;
  opacity: 0.6;
  animation: typing-indicator-animation 1.4s infinite ease-in-out;
}

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

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

.typing-indicator-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing-indicator-animation {
  0% {
    transform: translateY(0px);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0px);
    opacity: 0.6;
  }
}

/* responsive */

@media (max-width: 1000px) {
  .container-first-select,
  .container-second-select,
  .container-begin-section {
    width: 95% !important;
  }

  header {
    width: 90% !important;
  }
  #chatContainer {
    width: 95% !important;
  }
  input[type="submit"] {
    font-size: 16px;
  }

  .container-form {
    margin: auto auto var(--top-1-rem) auto !important;
  }

  .grid {
    width: var(--w-full) !important;
  }

  .container-button-submit-form {
    width: var(--w-full) !important;
  }

  #sessionClosed {
    margin-top: 10rem !important;
  }

  .container-chat-message {
    height: 55vh !important;
  }

  #text-response-chat {
    font-size: 14px !important;
    margin-left: 6px !important;
    margin-right: 0px !important;
    width: 78% !important;
  }

  .text-response-bot {
    font-size: 14px !important;
  }
  .logo-m {
    height: 40px;
  }
  #errorContainer {
    width: 70% !important;
    margin-top: 10rem !important;
  }

  .message-user {
    font-size: 14px !important;
    text-align: start !important;
    max-width: 76% !important;
  }

  #toggle-form-button {
    justify-content: center;
    font-size: 17px !important;
  }

  #submit-btn {
    left: 24px !important;
    top: -2px !important;
  }

  .container-image {
    bottom: var(--top-1-rem) !important;
    right: 5px !important;
    width: 70px !important;
    height: 70px !important;
  }

  .container-image::after {
    right: 18px !important;
  }

  .container-image-begin {
    background-color: #d2d2d2;
    height: 44px !important;
    width: 44px !important;
    border-radius: 100%;
    display: flex;
    align-items: center;
    margin-left: 7px !important;
    justify-content: center;
  }

  .container-image-begin > img {
    max-width: 100%;
    height: 20px !important;
    margin-left: 0 !important;
  }
  .general-size-image {
    width: 135px !important;
  }

  .container-image-user {
    height: 44px !important;
    width: 44px !important;
    border-radius: 100%;
    display: flex;
    align-items: center;
    margin-left: 7px !important;
    justify-content: center;
  }

  .container-image-bot {
    background-color: #d2d2d2;
    height: 44px !important;
    width: 44px !important;
    border-radius: 100%;
    display: flex;
    align-items: center;
    margin-left: 7px !important;
    justify-content: center;
  }
  .container-image-bot > img {
    height: 100% !important;
    margin-left: 0 !important;
  }

  .message-begin {
    gap: 9px !important;
  }

  .container-message {
    font-size: 14px !important;
    margin-right: 0px !important;
    max-width: 77% !important;
  }

  .container-image-user {
    height: 44px !important;
    width: 44px !important;
    margin-right: 3px !important;
  }

  .container-image-user > img {
    max-width: 100%;
    height: 20px;
  }
  .resize-image-input {
    width: 40% !important;
  }
  .container-select {
    text-align: center;
  }
}

@media (max-width: 636px) {
  .general-size-image {
    width: 95px !important;
  }
  .icon-select {
    margin-bottom: var(--mt-3);
  }
  .text-justify {
    text-align: start;
  }
  #ai-assistant-widget img {
    width: 80% !important;
    height: 80% !important;
  }

  #ai-assistant-widget::after {
    right: 20px !important;
  }
  #ai-assistant-widget {
    height: 80px !important;
    width: 80px !important;
  }
}

@media (max-width: 536px) {
    #ai-assistant-widget img {
      width: 80% !important;
      height: 80% !important;
    }

    .text-justify {
        text-align: center !important;
    }
  
    #ai-assistant-widget::after {
      right: 20px !important;
    }
    #ai-assistant-widget {
      height: 60px !important;
      width: 60px !important;
    }
    #ai-assistant-widget::after {
        bottom: 11px !important;
        right: 10px !important;
    }
  }

@media (max-width: 970px) {
  .icon-select {
    display: grid !important;
    justify-content: center !important;
  }
  .mb-4-text-styles {
    text-align: center !important;
    max-width: 700px !important;
  }

  .container-message-full-w {
    margin-top: 0.7rem;
    margin-top: 0px !important;
  }
}



/* Stile del modal per il caricamento immagini */
#UploadImage {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  padding: 20px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000;
}

#UploadImage h1 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

/* Nascondi input file predefinito */
#file-input {
  display: none;
}


#camera-stream {
  width: 100%;
  height: auto;
  border-radius: 5px;
  background-color: #f5f5f5;
}


.capture-btn, .close-camera-btn {
  padding: 10px 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.capture-btn {
  background-color: var(--color-primary);
  color: white;
}

.close-camera-btn {
  background-color: var(--custom-otion-hover);
  color: var(--color-gray-dark);
}


.status-message {
  margin-bottom: 10px;
  color: #666;
}

.center-div{
  display: flex;
  justify-content: center;
  align-items: center;
}


.send-btn:hover {
  background-color: var(--color-primary-hover);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.hidden {
  display: none !important;
}

/* Responsive per dispositivi mobili */
@media (max-width: 600px) {
  #UploadImage {
      width: 85%;
      padding: 15px;
  }
  .icon {
    margin: 0 auto;
  }
  
  .btn-container button {
      margin: 5px 0;
      justify-content: center;
      display: grid;
  }

  #submit-btn-foto {
    height: 20px;
    left: 30px !important;
  }
  
  .action-buttons {
      flex-direction: flex;
  }
  
  .delete-btn, .send-btn {
      margin: 5px 0;
  }
}

/* Accessibilità */

.select-items [role="option"][aria-selected="true"] {
  background-color: var(--color-primary) !important;
  color: white !important;
  font-weight: 500;
}

/* Migliora il focus sul trigger del select */
.select-selected:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-color: var(--color-primary) !important;
  box-shadow: 0 0 0 3px rgba(231, 78, 15, 0.1);
}

/* Stato espanso del select */
.select-selected[aria-expanded="true"] {
  border-color: var(--color-primary) !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Migliora l'elemento già selezionato nel dropdown */
.select-items [role="option"].same-as-selected {
  background-color: rgba(231, 78, 15, 0.1) !important;
  font-weight: 600;
  position: relative;
}


/* Focus aggiuntivo per accessibilità */
.select-items [role="option"]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  background-color: rgba(231, 78, 15, 0.1);
}

/* Transizione fluida per tutti gli stati */
.select-items [role="option"] {
  transition: background-color 0.15s ease, color 0.15s ease;
}