body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background-color: #ffca18; /* sfondo giallo Fastweb */
}

#logo-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #fff;
  padding: 5px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
}

#logo-container img {
  max-height: 40px;
  max-width: 45%;
  height: auto;
  width: auto;
  object-fit: contain;
}

#chat-container {
  padding: 10px;
}

#chat-box::-webkit-scrollbar {
  display: none;
}

#chat-box {
  height: 65vh;
  overflow-y: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  scrollbar-width: none;
}

.bot-message {
  background-color: white;
  padding: 20px;
  border-radius: 25px;
  max-width: 90%;
  margin-bottom: 25px;
  line-height: 1.3;
}

.user-message {
  background-color: #5b52cf;   /* giallo Fastweb */
  color: white;                 /* testo nero */
  padding: 10px;
  border-radius: 15px;
  max-width: 70%;
  align-self: auto;
  margin-bottom: 15px;
}

.input-container {
  margin-top: 10px;
  width: 100%;
}

.input-container input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
}

.input-container button {
  width: 100%;
  background-color: #ffca18; /* giallo Fastweb */
  color: #000;               /* testo nero */
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.input-container button:hover {
  background: #000;   /* invertito: sfondo nero */
  color: #ffca18;     /* testo giallo */
  border: 2px solid #ffca18;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 4px;
}

.privacy-container {
  color: #80808096;
  font-size: 10px;
  margin-top: 10px;
  text-align: left;
}

#footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #fff;
  padding: 5px;
  text-align: center;
  font-size: 10px;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
}

.card {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 15px;
  margin-top: 10px;
  background-color: #f8f8f8;
  line-height: 1.2;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 15px;
}

.button-container button {
  padding: 10px 25px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 25px;
  border: 2px solid #ffca18;
  background-color: #ffffff;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* Hover / focus */
.button-container button:hover,
.button-container button:focus {
  background-color: #ffca18;
  color: #000;
  outline: none;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  justify-items: center;
  margin-top: 15px;
}

.button-container button {
  width: 100%;
  max-width: 140px;
  padding: 10px;
  border-radius: 20px;
  border: 2px solid #ffca18;
  background: #fff;
  color: #000;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
}

.button-container button:hover {
  background: #ffca18;
  color: #000;
}

.input-container input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 8px;
  width: 100%;
  box-sizing: border-box;
  font-size: 14px;
}

.input-container input:focus {
  outline: none;
  border-color: #ffca18;       /* giallo Fastweb */
  box-shadow: 0 0 4px rgba(255,202,24,0.8);
}

.input-container button {
  width: 100%;
  background-color: #ffca18;   /* giallo Fastweb */
  color: #000;                 /* testo nero */
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.input-container button:hover {
  background: #000;            /* inverti */
  color: #ffca18;
}

