.actio-chat-widget {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: transparent;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: stretch;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
}

.actio-chat-container {
  max-width: 900px;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.actio-chat-container header {
  display: block;
  padding: 16px 20px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
}

.actio-chat-messages {
  padding: 1.5rem;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  background: #fafafa;
  border-bottom: 1px solid #eee;
  flex: 1;
}

.actio-chat-messages-inner {
  max-width: 100%;
}

.actio-message-row {
  gap: 0;
  margin-bottom: 0.75rem;
}

.actio-message-row > div:first-child {
  display: none;
}

.actio-message {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  max-width: 90%;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid #eee;
  background: #fff;
  color: #222;
}

.actio-message-user {
  background: #0055ff;
  color: #fff;
  border-color: #0055ff;
  margin-left: auto;
}

.actio-message-bot {
  margin-right: auto;
}

.actio-chat-input {
  padding: 1rem;
  display: flex;
  align-items: center;
  background: #fff;
  gap: 0.75rem;
  border-top: 1px solid #eee;
  box-shadow: none;
}

.actio-chat-input .max-w-3xl {
  max-width: none;
  width: 100%;
  margin: 0;
}

.actio-chat-input form {
  gap: 0.75rem;
  padding: 0;
}

.actio-chat-input p {
  display: none;
}

.actio-chat-input-field {
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 999px;
  font-size: 0.95rem;
  box-shadow: none;
}

.actio-chat-send-btn {
  background: #0055ff;
  color: #fff;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  box-shadow: none;
}

.actio-chat-send-btn:hover {
  background: #0044cc;
}

@media (max-width: 768px) {
  .actio-chat-widget {
    max-width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    padding: 12px;
  }

  .actio-chat-messages {
    min-height: 0;
    max-height: none;
  }
}

/* ===========================================
   FORMULARIO DE CONTACTO - Compacto e integrado
   =========================================== */

/* Contenedor del formulario - más pequeño y compacto */
div[class*="my-4"], 
div[class*="my-6"],
div[class*="my-8"] {
  margin-top: 0.75rem !important;
  margin-bottom: 0.75rem !important;
}

/* Card del formulario - reducir tamaño */
div[class*="max-w-md"][class*="p-6"],
div[class*="max-w-md"][class*="p-8"] {
  max-width: 280px !important;
  padding: 1rem !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  border-radius: 16px !important;
}

/* Icono superior del formulario - más pequeño */
div[class*="w-12"][class*="h-12"],
div[class*="w-14"][class*="h-14"],
div[class*="w-16"][class*="h-16"] {
  width: 2.5rem !important;
  height: 2.5rem !important;
  margin-bottom: 0.5rem !important;
}

div[class*="w-12"][class*="h-12"] svg,
div[class*="w-14"][class*="h-14"] svg,
div[class*="w-16"][class*="h-16"] svg {
  width: 1.25rem !important;
  height: 1.25rem !important;
}

/* Títulos del formulario - más compactos */
div[class*="text-center"][class*="mb-3"],
div[class*="text-center"][class*="mb-4"],
div[class*="text-center"][class*="mb-5"],
div[class*="text-center"][class*="mb-6"] {
  margin-bottom: 0.5rem !important;
}

div[class*="text-center"] h3 {
  font-size: 0.95rem !important;
  margin-bottom: 0.25rem !important;
}

div[class*="text-center"] p {
  font-size: 0.75rem !important;
}

/* Espaciado del formulario interno */
form[class*="space-y-3"],
form[class*="space-y-4"],
form[class*="space-y-6"] {
  gap: 0.5rem !important;
}

form[class*="space-y-3"] > *,
form[class*="space-y-4"] > *,
form[class*="space-y-6"] > * {
  margin-top: 0.5rem !important;
  margin-bottom: 0 !important;
}

form[class*="space-y-3"] > *:first-child,
form[class*="space-y-4"] > *:first-child,
form[class*="space-y-6"] > *:first-child {
  margin-top: 0 !important;
}

/* Labels del formulario */
form label {
  font-size: 0.7rem !important;
  margin-bottom: 0.25rem !important;
}

/* Inputs del formulario - más compactos */
form input[type="text"],
form input[type="tel"] {
  padding: 0.5rem 0.75rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

/* Botones del formulario */
form button {
  padding: 0.5rem 1rem !important;
  font-size: 0.8rem !important;
  border-radius: 8px !important;
}

form div[class*="flex"][class*="gap-2"],
form div[class*="flex"][class*="gap-3"] {
  gap: 0.5rem !important;
  padding-top: 0.25rem !important;
}
