:root {
  --primary-color: #f05929;
  --primary-dark: #d94a1a;
  --success-color: #28a745;
  --text-dark: #1a1a2e;
  --text-light: #6c757d;
  --bg-light: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e9ecef;
  --white: #ffffff;
  --shadow-md: 0 5px 20px rgba(0, 0, 0, 0.06);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Montserrat', 'Nunito', sans-serif;
  background: linear-gradient(135deg, #fff5f0 0%, #ffffff 50%, #fef9f5 100%);
  min-height: 100vh;
  color: var(--text-dark);
}
.desktop-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.main-container {
  max-width: 580px;
  width: 100%;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: 32px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  padding: 2rem 1.5rem;
  text-align: center;
  color: white;
}
.hero-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.hero-sub {
  font-size: 0.8rem;
  opacity: 0.9;
}
.main-card {
  padding: 2rem;
}
.comunicado-title {
  text-align: center;
  margin-bottom: 1.5rem;
}
.comunicado-title h2 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
.comunicado-title .divider {
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 0.5rem auto;
  border-radius: 2px;
}
.descricao-texto {
  color: var(--text-dark);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
}
.protocolo-box {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary-color);
}
.protocolo-box h3 {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.step {
  margin-bottom: 0.8rem;
  padding-left: 0.8rem;
  border-left: 2px solid var(--primary-color);
}
.step:last-child {
  margin-bottom: 0;
}
.step strong {
  color: var(--primary-color);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}
.step p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-dark);
}
.cpf-box {
  background: var(--white);
  border: 2px solid var(--border-color);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
}
.cpf-box:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(240, 89, 41, 0.1);
}
.cpf-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.cpf-label i {
  color: var(--primary-color);
}
.cpf-input {
  width: 100%;
  padding: 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: monospace;
  letter-spacing: 1px;
  border: none;
  background: transparent;
  outline: none;
}
.cpf-input::placeholder {
  font-weight: normal;
  font-size: 0.8rem;
  color: #adb5bd;
}
.resultado-box {
  background: var(--bg-light);
  border-radius: 16px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease;
}
.resultado-box.success {
  background: linear-gradient(135deg, #d4edda 0%, #e8f5e9 100%);
  border-left: 4px solid var(--success-color);
  display: block;
}
.resultado-box.error {
  background: linear-gradient(135deg, #f8d7da 0%, #ffe5e5 100%);
  border-left: 4px solid #dc3545;
  display: block;
}
.resultado-box.warning {
  background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
  border-left: 4px solid #ffc107;
  display: block;
}
.resultado-titulo {
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.resultado-info {
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.resultado-info strong {
  color: var(--primary-color);
}
.resultado-valor {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--success-color);
  margin-top: 0.5rem;
}
.btn-verificar {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  padding: 0.9rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 50px;
  width: 100%;
  color: white;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(240, 89, 41, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
}
.btn-verificar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(240, 89, 41, 0.4);
}
.btn-verificar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.6s linear infinite;
  margin-right: 6px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.toast-message {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-dark);
  color: white;
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2000;
  animation: fadeInUp 0.3s ease;
  white-space: nowrap;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
/* Para dispositivos móveis */
@media (max-width: 768px) {
  .toast-message {
    width: 90% !important;
    max-width: 90%;
    bottom: 20px;
    padding: 0.8rem 1rem;
    font-size: 0.85rem;
    white-space: normal;
    word-break: break-word;
    text-align: center;
    justify-content: center;
  }
}
/* ── CHAT ── */
.chat-btn-custom {
  position: fixed !important;
  bottom: 25px !important;
  right: 20px !important;
  width: 55px !important;
  height: 55px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
  border: none !important;
  cursor: pointer !important;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
  z-index: 1000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: transform 0.2s !important;
}
.chat-btn-custom:hover {
  transform: scale(1.1) !important;
}
.chat-btn-custom i {
  font-size: 1.5rem !important;
  color: white !important;
}
.chat-modal-custom {
  position: fixed !important;
  bottom: 90px !important;
  right: 20px !important;
  width: 350px !important;
  max-width: calc(100vw - 40px) !important;
  background: white !important;
  border-radius: 20px !important;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2) !important;
  z-index: 1001 !important;
  display: none !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.chat-modal-custom.active {
  display: flex !important;
}
.chat-modal-header {
  background: linear-gradient(135deg, var(--primary-color) 0%, #d94a1a 100%) !important;
  color: white !important;
  padding: 12px 15px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}
.chat-modal-logo {
  width: 35px !important;
  height: 35px !important;
  background: white !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.chat-modal-logo img {
  width: 30px !important;
  height: 30px !important;
  object-fit: contain !important;
  border-radius: 8px !important;
}
.chat-modal-title {
  flex: 1 !important;
}
.chat-modal-title h4 {
  margin: 0 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 5px;
}
.chat-modal-title p {
  margin: 0 !important;
  font-size: 0.6rem !important;
  opacity: 0.9 !important;
}
.chat-modal-close {
  background: none !important;
  border: none !important;
  color: white !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
}
.chat-modal-body {
  flex: 1 !important;
  height: 400px !important;
  display: flex !important;
  flex-direction: column !important;
  background: #f5f7fa !important;
}
.chat-modal-messages {
  flex: 1 !important;
  overflow-y: auto !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}
.message-bubble {
  max-width: 85% !important;
  padding: 8px 12px !important;
  border-radius: 18px !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
}
.message-bubble.system {
  background: #e9ecef !important;
  color: #495057 !important;
  align-self: flex-start !important;
}
.message-bubble.user {
  background: var(--primary-color) !important;
  color: white !important;
  align-self: flex-end !important;
}
.message-bubble.operator {
  background: white !important;
  color: var(--text-dark) !important;
  align-self: flex-start !important;
  border: 1px solid #e0e0e0 !important;
}
.message-time {
  font-size: 0.55rem !important;
  opacity: 0.7 !important;
  margin-top: 3px !important;
  display: block !important;
}
.chat-modal-input-area {
  padding: 12px !important;
  background: white !important;
  border-top: 1px solid #e0e0e0 !important;
  display: flex !important;
  gap: 8px !important;
}
.chat-modal-input-area input {
  flex: 1 !important;
  padding: 10px 12px !important;
  border: 1px solid #e0e0e0 !important;
  border-radius: 25px !important;
  font-size: 0.8rem !important;
  outline: none !important;
  font-family: inherit !important;
}
.chat-modal-input-area input:focus {
  border-color: var(--primary-color) !important;
}
.chat-modal-input-area button {
  background: var(--primary-color) !important;
  border: none !important;
  color: white !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}
.chat-online-indicator {
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-radius: 50% !important;
  background: #4caf50 !important;
  animation: pulse 1.5s infinite !important;
}
@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}
.header-simples {
  padding: 1rem 1.5rem;
  width: 100%;
}
.logo {
  height: 50px;
  width: auto;
  display: block;
}
@media (max-width: 480px) {
  .desktop-wrapper {
    padding: 1rem;
  }
  .main-container {
    border-radius: 24px;
  }
  .hero-section {
    padding: 1.5rem 1rem;
  }
  .hero-title {
    font-size: 1.2rem;
  }
  .main-card {
    padding: 1.3rem;
  }
  .cpf-input {
    font-size: 0.9rem;
  }
  .btn-verificar {
    font-size: 0.85rem;
    padding: 0.8rem;
  }
  .header-simples {
    padding: 0.6rem 1rem;
  }
  .logo {
    height: 35px;
  }
}
