body{
  background-color: #e1e1e1;
}
.carousel-inner>.item>img, .carousel-inner>.item>a>img {
display: block;
height: auto;
max-width: 100%;
line-height: 1;
width: 100%; // Add this
}

.form-wrapper{
  border-radius: 7px;
}
.form-wrapper label{
  font-weight: bold;
}
.errors li{
  list-style: none;
  width: 100%;
  text-align: center;
}
.errors ul{
  padding-left: 0;
  margin-bottom: 0;
}

@media (max-width: 768px){
  .form-wrapper .text-right{
    text-align: center !important;
  }

  .form-wrapper .btn-primary{
    display: block;
    margin: 0 auto;
  }
}
.icon-hover:hover {
  border-color: #3b71ca !important;
  background-color: white !important;
  color: #3b71ca !important;
}

.icon-hover:hover i {
  color: #3b71ca !important;
}

/* --- CONFIGURAZIONE STANDARD DESKTOP --- */
#chat-widget-container {
    position: fixed;
    bottom: 20px;
    right: 20px; /* Posizionamento classico a destra su desktop */
    width: 350px;
    height: 450px;
    z-index: 9999;
    transition: all 0.3s ease;
}

/* --- FIX RESPONSIVE PER SMARTPHONE E TABLET (MOBILE) --- */
@media screen and (max-width: 768px) {
    #chat-widget-container {
        /* Riduciamo i margini dal bordo per non farlo uscire dallo schermo */
        right: 15px !important; 
        bottom: 15px !important;
        
        /* Forziamo il widget a occupare quasi tutta la larghezza disponibile, 
           lasciando un po' di margine ai lati */
        width: calc(100% - 30px) !important;
        
        /* Opzionale: puoi regolare l'altezza per il mobile se copre troppo schermo */
        max-height: 70vh !important; 
    }
    
    /* Se hai un pulsante a icona (la bolla della chat) prima dell'apertura: */
    .chat-widget-toggle-btn {
        right: 20px !important;
        bottom: 20px !important;
        width: 60px !important;
        height: 60px !important;
    }
}