/* ============================================================
   Regency Analytics LLC — Static Website Assistant
   No text input. No Send button. No backend. Pure static.
   ============================================================ */

/* ── Floating toggle button ── */
.rga-toggle {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  background: #081225;
  color: #C9A96E;
  border: 1.5px solid rgba(201, 169, 110, 0.45);
  border-radius: 32px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(8, 18, 37, 0.28);
  transition: background 0.18s, border-color 0.18s, box-shadow 0.18s;
  white-space: nowrap;
  text-decoration: none;
}
.rga-toggle:hover,
.rga-toggle:focus-visible {
  background: #0F1B2D;
  border-color: #C9A96E;
  box-shadow: 0 6px 28px rgba(8, 18, 37, 0.36);
  outline: 2px solid #C9A96E;
  outline-offset: 3px;
}
.rga-toggle i {
  font-size: 16px;
  flex-shrink: 0;
}

/* ── Panel container ── */
.rga-panel {
  position: fixed;
  bottom: 82px;
  right: 28px;
  z-index: 9099;
  width: 336px;
  max-width: calc(100vw - 40px);
  background: #ffffff;
  border: 1px solid rgba(8, 18, 37, 0.13);
  border-radius: 14px;
  box-shadow: 0 8px 40px rgba(8, 18, 37, 0.18), 0 2px 10px rgba(8, 18, 37, 0.09);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow: hidden;
}
/* Hide when the [hidden] attribute is present */
.rga-panel[hidden] {
  display: none !important;
}

/* ── Panel header (navy background) ── */
.rga-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 12px;
  background: #081225;
  border-bottom: 2px solid #C9A96E;
}
.rga-panel-title {
  font-size: 11px;
  font-weight: 700;
  color: #C9A96E;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.3;
  margin: 0;
}
.rga-panel-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  margin: 4px 0 0;
  font-weight: 400;
  line-height: 1.4;
}
.rga-close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
  margin-top: -1px;
  transition: color 0.15s;
}
.rga-close:hover {
  color: #C9A96E;
}
.rga-close:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 3px;
  border-radius: 3px;
}

/* ── Question buttons — always visible while panel is open ── */
.rga-questions {
  padding: 10px 11px 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rga-q-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: #F8F9FA;
  border: 1px solid rgba(8, 18, 37, 0.09);
  border-radius: 7px;
  padding: 10px 13px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #1A2B45;
  cursor: pointer;
  line-height: 1.4;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.rga-q-btn:hover {
  background: #EEF2F8;
  border-color: rgba(8, 18, 37, 0.2);
  color: #081225;
}
.rga-q-btn:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 2px;
}
/* Active (selected) question */
.rga-q-btn.rga-active {
  background: #081225;
  border-color: #081225;
  color: #C9A96E;
  font-weight: 600;
}

/* ── Answer area — hidden until a question is clicked ── */
.rga-answer {
  margin: 4px 11px 12px;
  background: #F8F9FA;
  border: 1px solid rgba(8, 18, 37, 0.08);
  border-left: 3px solid #C9A96E;
  border-radius: 7px;
  padding: 13px 14px 12px;
}
.rga-answer[hidden] {
  display: none !important;
}
.rga-answer-text {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.7;
  margin: 0 0 12px;
}
.rga-answer-btn {
  display: inline-block;
  padding: 8px 16px;
  background: #081225;
  color: #C9A96E;
  border-radius: 6px;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s;
}
.rga-answer-btn:hover {
  background: #0F1B2D;
  color: #C9A96E;
}
.rga-answer-btn:focus-visible {
  outline: 2px solid #C9A96E;
  outline-offset: 3px;
}

/* ── Explicitly hide anything that does NOT belong ──
   Belt-and-suspenders: ensure no input or send button can appear */
.rga-panel input,
.rga-panel textarea,
.rga-panel select,
.rga-panel [type="submit"],
.rga-panel [type="text"],
.rga-panel [type="email"] {
  display: none !important;
}

/* ── Mobile — keep panel off contact form, above footer ── */
@media (max-width: 540px) {
  .rga-toggle {
    bottom: 20px;
    right: 16px;
    padding: 10px 16px;
    font-size: 13px;
  }
  .rga-panel {
    bottom: 70px;
    right: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    max-height: 70vh;
    overflow-y: auto;
  }
}

@media (max-width: 360px) {
  .rga-toggle {
    padding: 9px 14px;
    font-size: 12px;
    gap: 6px;
  }
}
