:root {
  --primary: #7055e8;
  --primary-hover: #5c43ce;
  --background: #ffffff;
  --surface: #f5f4fa;
  --text: #24212d;
  --muted: #85818f;
  --radius: 18px;
}

.hidden { 
  display: none !important; 
}

#form { 
  margin-top: 1rem; 
}

/* CTA da landing page */
.cta {
  background-color: #D43555;
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

/* Modal */
#chat-modal {
  border: 0;
  border-radius: 22px;
  background: var(--background);
  color: var(--text);
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0,0,0,.18);
}

#chat-modal[open] {
  display: flex;
  flex-direction: column;
  animation: modalEnter .25s ease;
}

#chat-modal::backdrop {
  background: rgba(20, 17, 30, .65);
  backdrop-filter: blur(5px);
}

@keyframes modalEnter {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Cabeçalho */
.chat-header {
  height: 76px;
  min-height: 76px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eeeef2;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand strong {
  font-size: 19px;
  letter-spacing: -.5px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.close-btn {
  border: 0;
  background: var(--surface);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 17px;
}

/* Conversa */
.chat-content {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-message {
  background: var(--surface);
  padding: 17px 19px;
  border-radius: 4px 18px 18px 18px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 95%;
}

.choices {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.choice-btn {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid #e5e1f2;
  border-radius: 12px;
  background: white;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: .2s;
  margin-right: 0.5rem;
  margin-top: 0.5rem;
}

.choice-btn:hover {
  background: #f7f5ff;
  border-color: var(--primary);
}

/* Rodapé */
.chat-footer {
  padding: 16px 20px;
  border-top: 1px solid #eeeef2;
  background: white;
}

#form {
  display: flex;
  gap: 10px;
}

#form input {
  flex: 1;
  min-width: 0;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #e4e1eb;
  border-radius: 12px;
  outline: none;
  font-size: 16px; /* Evita zoom automático no iOS/Android se menor que 16px */
}

#form input:focus {
  border-color: var(--primary);
}

#form button {
  border: 0;
  background: var(--primary);
  color: white;
  border-radius: 12px;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
}

.radio{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Esconde o input rádio original */
.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Container do rádio (o "botão" visível) */
.radio-label {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background-color: #f3f4f6;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  cursor: pointer; /* Deixa o cursor de clique */
  user-select: none;
  transition: all 0.2s ease-in-out;
  font-family: sans-serif;
  font-size: 14px;
  color: #374151;
}

/* Efeito ao passar o mouse */
.radio-label:hover {
  background-color: #e5e7eb;
  border-color: #d1d5db;
}

/* Estilo quando o rádio estiver marcado */
.radio-label input[type="radio"]:checked + span,
.radio-label:has(input[type="radio"]:checked) {
  background-color: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 500;
}

    #loading{
      width: 300px;
      height: 20px;
      border: 1px solid black;
      border-radius: 20px;
      overflow: hidden;
      padding: 5px;
    }
    #progress-bar{
      background-color: #48cae4;
      text-align: right;
      width: 0%;
      height: 100%;
      border-radius: 10px;
      transition: width 1.6s linear;
    }
    #loading-status{
      padding: 0 5px;
    }
