/* IT Help assistant — matches Sentinel Prime theme */

.help-page {
  min-height: 70vh;
}

.help-page .container {
  max-width: 720px;
}

.help-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.help-hero h1 {
  max-width: none;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.help-hero .help-subtitle {
  font-size: clamp(1.05rem, 2.8vw, 1.25rem);
  color: var(--muted);
  margin: 0 auto;
  max-width: 36ch;
}

.help-chat-wrap {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 420px;
}

.help-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.help-quick-btn {
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.help-quick-btn:hover:not(:disabled) {
  border-color: rgba(51, 209, 255, 0.45);
  background: rgba(51, 209, 255, 0.08);
  transform: translateY(-1px);
}

.help-quick-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.help-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.5rem 0.25rem;
  min-height: 220px;
  max-height: min(52vh, 480px);
  scroll-behavior: smooth;
}

.help-msg {
  max-width: 92%;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  font-size: 1.05rem;
  line-height: 1.55;
}

.help-msg--user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(51, 209, 255, 0.22), rgba(26, 156, 255, 0.15));
  border: 1px solid rgba(51, 209, 255, 0.35);
  color: var(--text);
}

.help-msg--ai {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.help-msg--ai p,
.help-msg--user p {
  margin: 0 0 0.5rem;
  color: inherit;
}

.help-msg--ai p:last-child,
.help-msg--user p:last-child {
  margin-bottom: 0;
}

.help-typing {
  align-self: flex-start;
  font-size: 0.95rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
}

.help-input-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
  margin-top: auto;
}

.help-input-row input {
  flex: 1;
  font-family: inherit;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
}

.help-input-row input::placeholder {
  color: var(--muted);
}

.help-input-row input:disabled {
  opacity: 0.6;
}

.help-input-row .btn-send {
  font-family: inherit;
  font-weight: 600;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--primary-strong));
  color: #03131d;
  box-shadow: 0 0 0 1px rgba(51, 209, 255, 0.2);
  white-space: nowrap;
}

.help-input-row .btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.help-conversion {
  display: none;
  text-align: center;
  padding: 1rem 1rem 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 0.25rem;
}

.help-conversion.is-visible {
  display: block;
}

.help-conversion p {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.help-conversion .btn {
  margin-bottom: 0;
}

.help-session-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0.35rem 0 0;
}

@media (max-width: 540px) {
  .help-quick-btn {
    font-size: 0.88rem;
    padding: 0.5rem 0.75rem;
  }

  .help-input-row {
    flex-wrap: wrap;
  }

  .help-input-row .btn-send {
    width: 100%;
  }
}
