/* body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  padding: 0;
  background: #192a6b;
  color: #fff;
  overflow-x: hidden;
} */
* {
  box-sizing: border-box;
}

#registration,
#chatSection {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  width: 100%;
  /* max-width: 800px; */
  padding: 56px 32px;
}

#registration h2 {
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  background: linear-gradient(90deg, #f69261 0%, #f9bc4a 82.97%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.chat-header-title{
  font-size: 32px;
  font-weight: 700;
  line-height: 120%;
  background: linear-gradient(90deg, #f69261 0%, #f9bc4a 82.97%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#registrationForm {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.chat-link {
  color: #439ee4;
  text-decoration: underline;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 32px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.captcha-group {
  display: flex;
  height: 100%;
  padding-top: 10px;
}

.fake-captcha {
  font-size: 14px;
  color: white;
  display: flex;
  align-items: center;
  gap: 8px;
}

#registrationForm input[type="text"],
#registrationForm input[type="email"],
#registrationForm input[type="tel"] {
  padding: 12px 16px;
  border: 1px solid #fff;
  border-radius: 4px;
  background-color: transparent;
  color: #fff;
}

#registrationForm input::placeholder {
  color: #ffffffb3;
}

form button {
  cursor: pointer;
  width: 100%;
  height: 48px;
  border-radius: 4px;
  background: #ff9500;
  border: none;
  color: #192a6b;
  font-size: 16px;
  font-weight: 600;
}

#chatContainer {
  background: #1e2a5a;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.chat-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #fff;
  font-size: 14px;
}

.chat-box {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.message-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.user-message,
.bot-message {
  padding: 8px 12px;
  border-radius: 4px;
  max-width: 70%;
  color: #fff;
}

.user-message {
  align-self: flex-end;
  background-color: #192a6b;
}

.bot-message {
  align-self: flex-start;
}

.chat-fixed-footer {
  padding: 12px;
  background: rgba(30, 42, 90, 0.9);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-inside-box {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  padding: 8px 0;
  width: 100%;
  resize: none;
  line-height: 1.4;
  overflow-y: auto;
  max-height: 200px;
}

.input-inside-box::placeholder {
  color: #ffffff99;
}

.chat-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
}

.chat-footer.no-suggestions {
  justify-content: flex-end;
}

.inside-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-grow: 1;
}

.suggestion {
  background: transparent;
  border: 1px solid #ffffff44;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.suggestion:hover {
  background: #ffffff50;
}

.send-button {
  display: flex;
  height: 40px;
  padding: 0px 8px;
  justify-content: center;
  align-items: center;
  gap: 4px;
  border-radius: 4px;
  background: #ff9500;
  cursor: pointer;
  border: none;
}

.send-button.small {
  font-size: 16px;
  flex-shrink: 0;
}

/* === MODAL === */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-content {
  background: #192a6b;
  padding: 24px;
  width: 100%;
  max-width: 1400px;
  border-radius: 8px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.close {
  align-self: flex-end;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
  margin-bottom: -12px;
}

.icon-button {
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
}

.message-list::-webkit-scrollbar {
  width: 4px;
}

.message-list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.message-list::-webkit-scrollbar-thumb {
  background-color: #ff9500;
  border-radius: 4px;
  border: 1spx solid transparent;
  background-clip: content-box;
}

.message-list {
  scrollbar-width: thin;
  scrollbar-color: #ff9500 rgba(255, 255, 255, 0.1);
}

.txt-termos-ebook {
  color: #fff;
}

.checkLGPD .txt-termos-ebook span.openTerm {
  text-decoration: underline;
  color: #439ee4;
}

.checkLGPD {
  display: flex;
  align-items: center;
  padding: 20px 10px 0;
  overflow: hidden;
  font-size: 14px;
  gap: 8px;
}

.txt-termos-ebook span {
  cursor: pointer;
}

.form-wrapper {
  position: relative;
}

.textLGPD {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 100%;
  z-index: 9;
  transition: all ease 0.4s;
  pointer-events: none;
}

.textLGPD > p {
  position: absolute;
  top: 0;
  left: -100%;
  opacity: 0;
  font-size: 15px;
  color: #fff;
  background: rgba(30, 42, 90, 0.95);
  width: 50%;
  height: 100%;
  padding: 50px 30px 30px;
  z-index: 10;
  transition: all ease 0.4s;
  box-sizing: border-box;
  overflow-y: auto;
}

.textLGPD.termoAberto {
  pointer-events: auto !important;
  width: 100%;
}

.textLGPD.termoAberto p {
  opacity: 1;
  left: 25%;
}

.fechar-termo {
  display: block;
  position: absolute;
  color: #fff;
  right: 20px;
  top: 20px;
  cursor: pointer;
  font-size: 16px;
}

.extern-term {
  margin-top: 8px;
  text-decoration: underline;
  color: #439ee4;
}

@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  #chatContainer {
    padding: 12px;
  }

  .chat-box {
    height: 600px;
  }

  .modal-content {
    background: #192a6b;
    padding: 24px;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
    color: #fff;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}
