:root {
  --color-brand-blue: #0071bc;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}
  
h2 {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.usa-nav__close {
  font-size: 1.5rem;
  line-height: 1;
  color: currentColor;
}
.usa-nav__close:hover {
  color: var(--color-gray-50);
}
.usa-nav__close:focus {
  color: var(--color-gray-50);
  outline: 2px solid var(--color-gray-50);
  outline-offset: 2px;
}

/* Overlay container in bottom-right */
#iq-overlay {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  /* no width/height here, so it can expand with the chat panel */
}

/* “?” trigger button */
#iq-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #0070f3;
  color: #fff;
  font-size: 24px;
  text-decoration: none;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: background-color .2s;
}
#iq-trigger:hover {
  background-color: #005a9c;
}

/* Chat panel (hidden by default) */
#iq-chat {
  position: fixed;
  bottom: 80px;   /* 40px trigger + 20px space + 20px margin */
  right: 20px;
  width: 300px;
  max-height: 400px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  overflow: hidden;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: transform .2s ease, opacity .2s ease;
}
#iq-chat.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Messages scroll area */
#iq-messages {
  flex: 1;
  padding: 8px;
  overflow-y: auto;
  font-size: 14px;
}

/* Message styles */
#iq-messages .msg {
  margin: 0.5rem 0;
}
#iq-messages .msg.user { text-align: right; }
#iq-messages .msg.bot  { text-align: left;  }

/* Input row */
#iq-input-area {
  display: flex;
  border-top: 1px solid #eee;
}
#iq-input {
  flex: 1;
  padding: 8px;
  border: none;
  font-size: 14px;
}
#iq-input:focus { outline: none; }
#iq-send {
  padding: 0 16px;
  background: #0070f3;
  border: none;
  color: white;
  font-size: 14px;
  cursor: pointer;
}
#iq-send:disabled {
  opacity: 0.5;
  cursor: default;
}
