/* Floating Build my AI plan / Ask AI consultant widget */

.vt-consultant-fab {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 9998;
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #0b1220;
  background: linear-gradient(105deg, #22d3ee, #a855f7);
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  max-width: calc(100vw - 2rem);
}

.vt-consultant-fab:hover {
  filter: brightness(1.05);
}

/* Compact FAB on narrow viewports so it doesn't cover hero CTAs */
@media (max-width: 720px) {
  .vt-consultant-fab {
    right: 0.85rem;
    bottom: 0.85rem;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
  }

  .vt-consultant-fab .vt-fab-full {
    display: none;
  }

  .vt-consultant-fab .vt-fab-short {
    display: inline;
  }

  .vt-consultant-panel {
    bottom: 4rem;
  }

  .hero-roi-aside {
    padding-bottom: 4.25rem;
  }
}

.vt-consultant-fab .vt-fab-short {
  display: none;
}

.vt-consultant-panel {
  position: fixed;
  right: 1rem;
  bottom: 4.5rem;
  z-index: 9999;
  width: min(400px, calc(100vw - 1.5rem));
  max-height: min(70vh, 620px);
  display: flex;
  flex-direction: column;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

.vt-consultant-panel[hidden] {
  display: none !important;
}

.vt-consultant-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.vt-consultant-head h2 {
  margin: 0;
  font-family: var(--font-display, "Outfit", system-ui, sans-serif);
  font-size: 1.05rem;
}

.vt-consultant-head p {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted, #94a3b8);
}

.vt-consultant-close {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.vt-consultant-tabs {
  display: flex;
  gap: 0.35rem;
  padding: 0.65rem 0.75rem 0;
}

.vt-consultant-tabs button {
  appearance: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: transparent;
  color: var(--text-muted, #94a3b8);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 650;
  cursor: pointer;
}

.vt-consultant-tabs button.on {
  color: #0b1220;
  background: linear-gradient(105deg, #22d3ee, #a855f7);
  border-color: transparent;
}

.vt-consultant-messages {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem;
  display: grid;
  gap: 0.65rem;
}

.vt-msg {
  max-width: 92%;
  padding: 0.65rem 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.vt-msg.bot {
  background: rgba(34, 211, 238, 0.08);
  border: 1px solid rgba(34, 211, 238, 0.2);
  color: var(--text, #f1f5f9);
}

.vt-msg.user {
  margin-left: auto;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text, #f1f5f9);
}

.vt-consultant-form {
  display: grid;
  gap: 0.55rem;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

.vt-consultant-form textarea,
.vt-consultant-form input {
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  color: var(--text, #f1f5f9);
  background: rgba(7, 11, 20, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

.vt-consultant-form textarea {
  min-height: 64px;
  resize: vertical;
}

.vt-consultant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.vt-consultant-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
}

.vt-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.vt-meeting-fields {
  display: grid;
  gap: 0.45rem;
}

.vt-meeting-fields[hidden] {
  display: none !important;
}

.vt-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted, #94a3b8);
}
