.sonuel-form-feedback {
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  border: 1px solid transparent;
}

.sonuel-form-feedback--loading {
  color: #3a2f2d;
  background: rgba(240, 152, 0, 0.12);
  border-color: rgba(240, 152, 0, 0.24);
}

.sonuel-form-feedback--success {
  color: #183128;
  background: rgba(225, 245, 233, 0.96);
  border-color: rgba(49, 138, 85, 0.24);
}

.sonuel-form-feedback--error {
  color: #641b16;
  background: rgba(255, 234, 231, 0.98);
  border-color: rgba(194, 71, 55, 0.24);
}

.sonuel-contact-submit {
  border: 0;
  cursor: pointer;
}

.sonuel-contact-submit.is-loading {
  opacity: 0.7;
  pointer-events: none;
}

.sonuel-chatbot {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 9998;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: #1f2626;
}

.sonuel-chatbot__dock {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.sonuel-chatbot__trigger {
  width: 66px;
  height: 66px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 22px 40px rgba(20, 20, 20, 0.18);
}

.sonuel-chatbot__trigger:hover {
  transform: translateY(-3px);
}

.sonuel-chatbot__trigger--assistant {
  background: linear-gradient(145deg, #f09800, #ffb72e);
  color: #1f2626;
}

.sonuel-chatbot__trigger--assistant i {
  font-size: 30px;
}

.sonuel-chatbot__trigger--whatsapp {
  background: linear-gradient(145deg, #25d366, #128c7e);
  color: #fff;
  box-shadow: 0 22px 40px rgba(18, 140, 126, 0.28);
}

.sonuel-chatbot__trigger--whatsapp i {
  font-size: 30px;
}

.sonuel-chatbot__panel {
  position: fixed;
  right: 104px;
  bottom: 22px;
  width: min(420px, calc(100vw - 132px));
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 252, 248, 0.98);
  border: 1px solid rgba(240, 152, 0, 0.18);
  box-shadow: 0 30px 64px rgba(27, 24, 23, 0.22);
  backdrop-filter: blur(12px);
}

.sonuel-chatbot__panel[hidden] {
  display: none !important;
}

.sonuel-chatbot__header {
  padding: 20px 20px 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  background:
    radial-gradient(circle at top left, rgba(240, 152, 0, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(255, 248, 237, 0.95), rgba(255, 255, 255, 1));
}

.sonuel-chatbot__brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.sonuel-chatbot__brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  padding: 5px;
  box-shadow: 0 10px 24px rgba(240, 152, 0, 0.18);
}

.sonuel-chatbot__eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(240, 152, 0, 0.12);
  color: #8b5300;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.sonuel-chatbot__header h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
  color: #182927;
}

.sonuel-chatbot__header p {
  margin: 6px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: #5d6665;
}

.sonuel-chatbot__close {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(31, 38, 38, 0.12);
  background: rgba(255, 255, 255, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #293332;
}

.sonuel-chatbot__status {
  padding: 0 20px 14px;
  color: #6a7373;
  font-size: 13px;
  line-height: 1.4;
}

.sonuel-chatbot__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 20px 14px;
  overflow: auto;
}

.sonuel-chatbot__message {
  display: flex;
}

.sonuel-chatbot__message--assistant {
  justify-content: flex-start;
}

.sonuel-chatbot__message--user {
  justify-content: flex-end;
}

.sonuel-chatbot__bubble {
  max-width: 92%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.sonuel-chatbot__message--assistant .sonuel-chatbot__bubble {
  background: rgba(244, 239, 232, 0.95);
  color: #22302f;
  border-bottom-left-radius: 8px;
}

.sonuel-chatbot__message--user .sonuel-chatbot__bubble {
  background: linear-gradient(145deg, #f09800, #ffb52b);
  color: #1c2322;
  border-bottom-right-radius: 8px;
}

.sonuel-chatbot__sources,
.sonuel-chatbot__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sonuel-chatbot__chip {
  border: 1px solid rgba(31, 38, 38, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #30403e;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

button.sonuel-chatbot__chip {
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

button.sonuel-chatbot__chip:hover {
  transform: translateY(-1px);
  border-color: rgba(240, 152, 0, 0.32);
}

.sonuel-chatbot__lead-row {
  padding: 0 20px 14px;
}

.sonuel-chatbot__lead-toggle,
.sonuel-chatbot__lead-submit,
.sonuel-chatbot__composer button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
}

.sonuel-chatbot__lead-toggle,
.sonuel-chatbot__lead-submit {
  min-height: 48px;
  padding: 0 18px;
  background: linear-gradient(145deg, #f09800, #ffb52b);
  color: #1e2625;
  box-shadow: 0 18px 30px rgba(240, 152, 0, 0.24);
}

.sonuel-chatbot__lead-toggle:hover,
.sonuel-chatbot__lead-submit:hover,
.sonuel-chatbot__composer button:hover {
  transform: translateY(-1px);
}

.sonuel-chatbot__lead-panel {
  margin: 0 20px 14px;
  padding: 18px;
  border-radius: 22px;
  background: rgba(248, 243, 236, 0.98);
  border: 1px solid rgba(240, 152, 0, 0.14);
}

.sonuel-chatbot__lead-panel[hidden] {
  display: none !important;
}

.sonuel-chatbot__lead-panel h4 {
  margin: 0;
  color: #182927;
  font-size: 18px;
}

.sonuel-chatbot__lead-panel p {
  margin: 6px 0 0;
  color: #5d6665;
  font-size: 13px;
  line-height: 1.45;
}

.sonuel-chatbot__lead-feedback {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 700;
}

.sonuel-chatbot__lead-feedback--info {
  background: rgba(240, 152, 0, 0.12);
  color: #7f4f00;
}

.sonuel-chatbot__lead-feedback--success {
  background: rgba(225, 245, 233, 0.96);
  color: #1c5c35;
}

.sonuel-chatbot__lead-feedback--error {
  background: rgba(255, 234, 231, 0.98);
  color: #8b3026;
}

.sonuel-chatbot__lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sonuel-chatbot__lead-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #41504d;
}

.sonuel-chatbot__lead-panel input,
.sonuel-chatbot__lead-panel textarea,
.sonuel-chatbot__composer textarea {
  width: 100%;
  border: 1px solid rgba(31, 38, 38, 0.14);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #1e2726;
  resize: none;
}

.sonuel-chatbot__composer {
  padding: 0 20px 20px;
}

.sonuel-chatbot__composer-row {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.sonuel-chatbot__composer button {
  min-width: 108px;
  min-height: 52px;
  padding: 0 16px;
  background: #1f2626;
  color: #fff;
}

.sonuel-chatbot__typing {
  display: inline-flex;
  gap: 6px;
}

.sonuel-chatbot__typing span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 38, 38, 0.4);
  animation: sonuelTyping 1.1s infinite ease-in-out;
}

.sonuel-chatbot__typing span:nth-child(2) {
  animation-delay: 0.15s;
}

.sonuel-chatbot__typing span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes sonuelTyping {
  0%,
  80%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }

  40% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@media (max-width: 991px) {
  .sonuel-chatbot {
    right: 14px;
    bottom: 14px;
  }

  .sonuel-chatbot__panel {
    right: 14px;
    bottom: 96px;
    width: min(420px, calc(100vw - 28px));
    max-height: 72vh;
  }
}

@media (max-width: 767px) {
  .sonuel-chatbot__lead-grid {
    grid-template-columns: 1fr;
  }

  .sonuel-chatbot__trigger {
    width: 60px;
    height: 60px;
  }

  .sonuel-chatbot__panel {
    width: calc(100vw - 24px);
    right: 12px;
    bottom: 86px;
  }

  .sonuel-chatbot__composer-row {
    flex-direction: column;
  }

  .sonuel-chatbot__composer button {
    width: 100%;
  }
}
