* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(to right, #04030b, #20040b);


}

h1 {
  font-weight: bold;
  font-size: 35px;
  line-height: 34px;
  color: #be131d;
  text-align: center;
  padding: 10px;
}

h2 {
  font-weight: bold;
  font-size: 24px;
  line-height: 34px;
  color: #fff;
  text-align: center;
  margin-bottom: 36px;
}

p {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
  margin: 0;
}

input {
  box-sizing: border-box;
  border: none;
  border-radius: 4px 0 0 4px;
  background: #e5e9ff;
  color: black;
  padding: 16px;
  font-size: 16px;
  font-family: 'Montserrat';
  font-weight: 600;
  line-height: 26px;
  flex: 1;
  width: 100%;
}

main {
  margin: 0 auto;
  width: 90%;
  max-width: 700px;
  height: 600px;
  border-radius: 30px;
  background: #fff;
  padding: 20px 24px;
  padding-top: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.chat {
  flex: 1;
  display: flex;
  justify-content: flex-start;
  overflow: scroll;
  flex-direction: column;
  padding-bottom: 16px;
}

.bot-msg {
  display: flex;
  margin: 16px 8px 0 0;
  flex-shrink: 0;
}

.user-msg {
  display: flex;
  justify-content: flex-end;
  margin: 16px 0 0 8px;
  flex-shrink: 0;
}

.bot-msg img,
.user-msg img {
  width: 60px;
  height: 60px;
}

.bubble {
  background: #ffefea;
  font-weight: 600;
  font-size: 16px;
  line-height: 26px;
  padding: 16px 24px;
  color: #be131d;
  max-width: 40%;
}

.bot-bubble {
  border-radius: 0px 26px 26px 26px;
  margin-left: 8px;
}

.user-bubble {
  border-radius: 26px 0 26px 26px;
  margin-right: 8px;
}

.input-wrapper {
  display: flex;
  justify-content: center;
}

.input-wrapper form {
  width: 100%;
  display: flex;
  align-items: center;
}

label {
  font-size: 16px;
  font-family: 'Montserrat';
  font-weight: 500;
  color: #720f0f;
  margin-right: 20px;
}

button {
  background-color: #720f0f;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 16px 20px;
  margin-right: 4px;
  font-size: 16px;
  line-height: 26px;
  font-family: 'Montserrat';
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

button:hover {
  opacity: 0.9;
  transition: all 0.2s ease;
}

/* Responsiveness */
@media (max-width: 480px) {
  h1 {
    font-size: 25px;
  }

  main {
    padding: 10px;
    height: 400px;

  }

  .bubble {
    max-width: 80%;
    /* Allow even more space for chat bubbles */
  }

  input {
    padding: 10px;
    font-size: 12px;
  }

  button {
    padding: 10px 16px;
    font-size: 12px;
  }

  .bot-msg img,
  .user-msg img {
    width: 40px;
    height: 40px;
  }

  label {
    font-size: 14px;
    margin-right: 10px;
  }
}

@media (min-width: 480px) and (max-width: 768px) {
  h1 {
    font-size: 30px;
  }

  .bubble {
    max-width: 60%;
  }

  input {
    padding: 12px;
    font-size: 14px;
  }

  button {
    padding: 12px 18px;
    font-size: 14px;
  }
}