/* ═══════════════════════════════════════════════════════════════════════════
   QLicitações — Chat Público Widget
   Visual coerente com a landing (azul navy #1B3A6B + dourado #F0A500)
   Tipografia: Inter + Plus Jakarta Sans (já carregadas pelo index.html)
═══════════════════════════════════════════════════════════════════════════ */

/* ─── Variáveis (escopadas pra não conflitar com o site) ─── */
.qlc-widget {
  --qlc-azul: #1B3A6B;
  --qlc-azul-dark: #0D1F3C;
  --qlc-azul-light: #2C5490;
  --qlc-gold: #F0A500;
  --qlc-gold-light: #FFB830;
  --qlc-bg: #FFFFFF;
  --qlc-bg-soft: #F8FAFC;
  --qlc-border: #E2E8F0;
  --qlc-text: #0F172A;
  --qlc-text-soft: #475569;
  --qlc-text-muted: #94A3B8;
  --qlc-shadow: 0 24px 64px -12px rgba(13, 31, 60, 0.35);
  --qlc-shadow-fab: 0 12px 32px -4px rgba(240, 165, 0, 0.55);
  --qlc-radius: 16px;
  --qlc-radius-sm: 10px;
}

/* Reset interno do widget */
.qlc-widget,
.qlc-widget *,
.qlc-widget *::before,
.qlc-widget *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.qlc-widget {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--qlc-text);
}

/* ════════════════════════════════════════════════════════════════════════
   FAB — Botão flutuante sempre visível
═══════════════════════════════════════════════════════════════════════════ */

.qlc-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999998;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--qlc-gold) 0%, var(--qlc-gold-light) 100%);
  color: var(--qlc-azul-dark);
  border: none;
  border-radius: 999px;
  padding: 14px 22px 14px 18px;
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: var(--qlc-shadow-fab);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  outline: none;
}

.qlc-fab:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 18px 40px -6px rgba(240, 165, 0, 0.7);
}

.qlc-fab:active {
  transform: translateY(0) scale(0.98);
}

.qlc-fab:focus-visible {
  outline: 3px solid rgba(240, 165, 0, 0.4);
  outline-offset: 4px;
}

.qlc-fab-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(13, 31, 60, 0.15);
  border-radius: 50%;
  flex-shrink: 0;
}

.qlc-fab-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--qlc-azul-dark);
}

.qlc-fab-text {
  white-space: nowrap;
}

/* Pulse — anel pulsante atrás do FAB (idle attention) */
.qlc-fab::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--qlc-gold);
  opacity: 0;
  animation: qlc-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes qlc-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Esconde FAB quando painel aberto */
.qlc-widget.qlc-open .qlc-fab {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.7);
}

/* ════════════════════════════════════════════════════════════════════════
   Backdrop (mobile)
═══════════════════════════════════════════════════════════════════════════ */

.qlc-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 31, 60, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999997;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.qlc-widget.qlc-open .qlc-backdrop {
  opacity: 1;
  pointer-events: auto;
}

/* ════════════════════════════════════════════════════════════════════════
   Painel
═══════════════════════════════════════════════════════════════════════════ */

.qlc-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  width: 440px;
  height: 680px;
  max-height: calc(100vh - 48px);
  background: var(--qlc-bg);
  border-radius: var(--qlc-radius);
  box-shadow: var(--qlc-shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.qlc-widget.qlc-open .qlc-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* ─── Header com gradiente animado ─── */

.qlc-header {
  position: relative;
  padding: 20px 20px 18px;
  background: linear-gradient(135deg, #1B3A6B 0%, #0D1F3C 100%);
  color: #FFFFFF;
  flex-shrink: 0;
  overflow: hidden;
}

/* Gradiente animado no fundo do header */
.qlc-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 600px 200px at 30% 100%,
    rgba(240, 165, 0, 0.22),
    transparent 70%
  );
  animation: qlc-glow 8s ease-in-out infinite alternate;
}

@keyframes qlc-glow {
  0% { transform: translate(0, 0) scale(1); opacity: 0.7; }
  100% { transform: translate(20%, -10%) scale(1.2); opacity: 1; }
}

.qlc-header-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.qlc-avatar {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--qlc-gold) 0%, var(--qlc-gold-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  color: var(--qlc-azul-dark);
  font-size: 16px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(240, 165, 0, 0.3);
}

/* Indicador online no avatar */
.qlc-avatar::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 12px;
  height: 12px;
  background: #10B981;
  border: 2px solid var(--qlc-azul-dark);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: qlc-online-pulse 2s ease-out infinite;
}

@keyframes qlc-online-pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.qlc-header-text {
  flex: 1;
  min-width: 0;
}

.qlc-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
  letter-spacing: 0.1px;
}

.qlc-subtitle {
  font-size: 12px;
  opacity: 0.78;
  display: flex;
  align-items: center;
  gap: 6px;
}

.qlc-subtitle::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
}

.qlc-close {
  background: rgba(255, 255, 255, 0.1);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #FFFFFF;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.qlc-close:hover {
  background: rgba(255, 255, 255, 0.18);
}

.qlc-close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.qlc-close svg {
  width: 16px;
  height: 16px;
}

/* ════════════════════════════════════════════════════════════════════════
   Telas (form / chat)
═══════════════════════════════════════════════════════════════════════════ */

.qlc-screen {
  flex: 1;
  display: none;
  flex-direction: column;
  min-height: 0;
}

.qlc-screen.qlc-active {
  display: flex;
}

/* ─── TELA 1: Form de captura ─── */

.qlc-form-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 24px 22px 20px;
  background: var(--qlc-bg-soft);
}

.qlc-form-intro {
  margin-bottom: 22px;
}

.qlc-form-headline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--qlc-text);
  margin-bottom: 6px;
  letter-spacing: -0.2px;
}

.qlc-form-sub {
  font-size: 13px;
  color: var(--qlc-text-soft);
  line-height: 1.55;
}

.qlc-form-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.qlc-field {
  position: relative;
}

.qlc-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--qlc-text-soft);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.qlc-label .qlc-req {
  color: var(--qlc-gold);
  margin-left: 2px;
}

.qlc-input,
.qlc-select,
.qlc-textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--qlc-text);
  background: #FFFFFF;
  border: 1px solid var(--qlc-border);
  border-radius: var(--qlc-radius-sm);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qlc-input:focus,
.qlc-select:focus,
.qlc-textarea:focus {
  border-color: var(--qlc-azul);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

.qlc-input::placeholder {
  color: var(--qlc-text-muted);
}

/* UF chips multiselect */
.qlc-uf-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
  padding: 6px;
  background: #FFFFFF;
  border: 1px solid var(--qlc-border);
  border-radius: var(--qlc-radius-sm);
}

.qlc-uf-chip {
  padding: 4px 10px;
  background: var(--qlc-bg-soft);
  border: 1px solid var(--qlc-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--qlc-text-soft);
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.qlc-uf-chip:hover {
  background: rgba(27, 58, 107, 0.06);
}

.qlc-uf-chip.qlc-uf-active {
  background: var(--qlc-azul);
  color: #FFFFFF;
  border-color: var(--qlc-azul);
}

.qlc-form-error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #DC2626;
  padding: 10px 12px;
  border-radius: var(--qlc-radius-sm);
  font-size: 13px;
  margin-top: 8px;
}

.qlc-form-error.qlc-show {
  display: block;
}

.qlc-form-footer {
  padding: 14px 22px 20px;
  background: var(--qlc-bg-soft);
  border-top: 1px solid var(--qlc-border);
  flex-shrink: 0;
}

.qlc-form-submit {
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(135deg, var(--qlc-azul) 0%, var(--qlc-azul-light) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: var(--qlc-radius-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.qlc-form-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(27, 58, 107, 0.35);
}

.qlc-form-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qlc-form-disclaimer {
  margin-top: 10px;
  font-size: 11px;
  text-align: center;
  color: var(--qlc-text-muted);
  line-height: 1.5;
}

/* Spinner pequeno (botões durante loading) */
.qlc-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: qlc-spin 0.7s linear infinite;
  display: inline-block;
}

@keyframes qlc-spin {
  to { transform: rotate(360deg); }
}

/* ─── TELA 2: Chat ─── */

.qlc-chat-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #FFFFFF;
}

.qlc-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 18px 18px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  scroll-behavior: smooth;
}

.qlc-msgs::-webkit-scrollbar {
  width: 6px;
}

.qlc-msgs::-webkit-scrollbar-track {
  background: transparent;
}

.qlc-msgs::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.4);
  border-radius: 3px;
}

.qlc-msg {
  display: flex;
  gap: 8px;
  max-width: 85%;
  animation: qlc-msg-in 0.3s ease-out;
}

@keyframes qlc-msg-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qlc-msg-bot {
  align-self: flex-start;
}

.qlc-msg-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.qlc-msg-bubble {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.qlc-msg-bot .qlc-msg-bubble {
  background: var(--qlc-bg-soft);
  color: var(--qlc-text);
  border-bottom-left-radius: 4px;
}

.qlc-msg-user .qlc-msg-bubble {
  background: linear-gradient(135deg, var(--qlc-azul) 0%, var(--qlc-azul-light) 100%);
  color: #FFFFFF;
  border-bottom-right-radius: 4px;
}

/* Mini-avatar bot na mensagem */
.qlc-msg-bot::before {
  content: 'Q';
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--qlc-gold) 0%, var(--qlc-gold-light) 100%);
  color: var(--qlc-azul-dark);
  border-radius: 50%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Typing indicator */
.qlc-typing {
  display: none;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--qlc-bg-soft);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  margin-left: 36px;
  width: fit-content;
}

.qlc-typing.qlc-show {
  display: flex;
}

.qlc-typing-dot {
  width: 7px;
  height: 7px;
  background: var(--qlc-text-muted);
  border-radius: 50%;
  animation: qlc-typing 1.2s ease-in-out infinite;
}

.qlc-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.qlc-typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes qlc-typing {
  0%, 60%, 100% { transform: scale(1); opacity: 0.4; }
  30% { transform: scale(1.3); opacity: 1; }
}

/* CTA Trial — botão dentro do chat */
.qlc-trial-cta {
  align-self: flex-start;
  margin: 6px 0 6px 36px;
  background: linear-gradient(135deg, var(--qlc-gold) 0%, var(--qlc-gold-light) 100%);
  background-size: 200% 200%;
  animation: qlc-cta-shimmer 4s ease infinite;
  color: var(--qlc-azul-dark);
  border: none;
  padding: 12px 18px;
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 6px 20px -4px rgba(240, 165, 0, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

@keyframes qlc-cta-shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.qlc-trial-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -6px rgba(240, 165, 0, 0.65);
}

.qlc-trial-cta-arrow {
  font-size: 16px;
}

/* Footer chat — input */
.qlc-input-area {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--qlc-border);
  background: #FFFFFF;
  flex-shrink: 0;
}

.qlc-input-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.qlc-msg-input {
  flex: 1;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--qlc-text);
  background: var(--qlc-bg-soft);
  border: 1px solid var(--qlc-border);
  border-radius: 12px;
  outline: none;
  resize: none;
  max-height: 120px;
  min-height: 42px;
  line-height: 1.4;
  transition: border-color 0.15s ease;
}

.qlc-msg-input:focus {
  border-color: var(--qlc-azul);
  background: #FFFFFF;
}

.qlc-msg-input::placeholder {
  color: var(--qlc-text-muted);
}

.qlc-send {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--qlc-azul) 0%, var(--qlc-azul-light) 100%);
  color: #FFFFFF;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.qlc-send:hover:not(:disabled) {
  transform: scale(1.05);
}

.qlc-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.qlc-send svg {
  width: 16px;
  height: 16px;
  transform: translateX(1px);
}

/* Mensagem de erro inline no chat */
.qlc-chat-error {
  display: none;
  margin: 8px 18px;
  padding: 10px 12px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #DC2626;
  border-radius: 10px;
  font-size: 13px;
}

.qlc-chat-error.qlc-show {
  display: block;
}

/* Hint no rodapé do chat */
.qlc-input-hint {
  margin-top: 6px;
  font-size: 10.5px;
  color: var(--qlc-text-muted);
  text-align: center;
}



/* ════════════════════════════════════════════════════════════════════════
   Botão "Falar com nossa equipe" (5.3)
═══════════════════════════════════════════════════════════════════════════ */

.qlc-human-bar {
  padding: 10px 14px;
  background: var(--qlc-bg-soft);
  border-top: 1px solid var(--qlc-border);
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.qlc-human-btn {
  background: transparent;
  border: 1px solid var(--qlc-border);
  color: var(--qlc-text-soft);
  padding: 8px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.qlc-human-btn:hover {
  background: var(--qlc-azul);
  color: #FFFFFF;
  border-color: var(--qlc-azul);
  transform: translateY(-1px);
}

.qlc-human-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.qlc-human-btn-icon {
  font-size: 14px;
}

/* Estado "já solicitado" — chip verde */
.qlc-human-bar.qlc-human-done .qlc-human-btn {
  background: rgba(16, 185, 129, 0.1);
  color: #10B981;
  border-color: rgba(16, 185, 129, 0.3);
  cursor: default;
}

.qlc-human-bar.qlc-human-done .qlc-human-btn:hover {
  transform: none;
}

/* ════════════════════════════════════════════════════════════════════════
   Modal de confirmação contato humano
═══════════════════════════════════════════════════════════════════════════ */

.qlc-modal {
  position: absolute;
  inset: 0;
  background: rgba(13, 31, 60, 0.55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
  animation: qlc-fade-in 0.2s ease-out;
}

.qlc-modal.qlc-show {
  display: flex;
}

@keyframes qlc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

.qlc-modal-card {
  background: #FFFFFF;
  border-radius: var(--qlc-radius);
  padding: 24px 22px;
  max-width: 360px;
  width: 100%;
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.4);
  animation: qlc-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes qlc-modal-in {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.qlc-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--qlc-gold) 0%, var(--qlc-gold-light) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 20px -4px rgba(240, 165, 0, 0.4);
}

.qlc-modal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--qlc-text);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}

.qlc-modal-text {
  font-size: 13.5px;
  color: var(--qlc-text-soft);
  text-align: center;
  line-height: 1.55;
  margin-bottom: 16px;
}

.qlc-modal-phone {
  background: var(--qlc-bg-soft);
  border: 1px solid var(--qlc-border);
  border-radius: var(--qlc-radius-sm);
  padding: 12px 14px;
  text-align: center;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--qlc-azul);
  margin-bottom: 14px;
  letter-spacing: 0.3px;
}

.qlc-modal-textarea {
  width: 100%;
  padding: 10px 12px;
  font-family: inherit;
  font-size: 13px;
  color: var(--qlc-text);
  background: #FFFFFF;
  border: 1px solid var(--qlc-border);
  border-radius: var(--qlc-radius-sm);
  outline: none;
  resize: none;
  min-height: 70px;
  margin-bottom: 16px;
  transition: border-color 0.15s ease;
}

.qlc-modal-textarea:focus {
  border-color: var(--qlc-azul);
  box-shadow: 0 0 0 3px rgba(27, 58, 107, 0.12);
}

.qlc-modal-textarea::placeholder {
  color: var(--qlc-text-muted);
}

.qlc-modal-actions {
  display: flex;
  gap: 8px;
}

.qlc-modal-btn {
  flex: 1;
  padding: 11px 14px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 13px;
  border: none;
  border-radius: var(--qlc-radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.qlc-modal-btn-cancel {
  background: var(--qlc-bg-soft);
  color: var(--qlc-text-soft);
  border: 1px solid var(--qlc-border);
}

.qlc-modal-btn-cancel:hover {
  background: var(--qlc-border);
}

.qlc-modal-btn-confirm {
  background: linear-gradient(135deg, var(--qlc-azul) 0%, var(--qlc-azul-light) 100%);
  color: #FFFFFF;
}

.qlc-modal-btn-confirm:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(27, 58, 107, 0.35);
}

.qlc-modal-btn-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.qlc-modal-error {
  display: none;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #DC2626;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
  margin-top: 10px;
  text-align: center;
}

.qlc-modal-error.qlc-show {
  display: block;
}

/* ════════════════════════════════════════════════════════════════════════
   Mobile (< 600px) — fullscreen
═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .qlc-fab {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px 12px 14px;
    font-size: 13px;
  }

  .qlc-panel {
    bottom: 0;
    right: 0;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   Acessibilidade — reduce motion
═══════════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .qlc-widget *,
  .qlc-widget *::before,
  .qlc-widget *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
