/* Ask TekCapitol — floating chat widget */
:root {
  --ask-navy: #080e1a;
  --ask-surface: #0d1625;
  --ask-blue: #3b82f6;
  --ask-blue-light: #60a5fa;
  --ask-white: #f0f4ff;
  --ask-muted: #64748b;
  --ask-border: rgba(255, 255, 255, 0.1);
}

#ask-tekcapitol-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Manrope', system-ui, sans-serif;
}

#ask-tekcapitol-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

#ask-tekcapitol-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.45);
}

#ask-tekcapitol-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#ask-tekcapitol-panel {
  display: none;
  flex-direction: column;
  width: min(400px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 100px));
  background: var(--ask-surface);
  border: 1px solid var(--ask-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  margin-bottom: 12px;
}

#ask-tekcapitol-panel.open {
  display: flex;
}

.ask-header {
  padding: 16px 18px;
  background: var(--ask-navy);
  border-bottom: 1px solid var(--ask-border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ask-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--ask-white);
}

.ask-header p {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--ask-muted);
  line-height: 1.4;
}

.ask-close {
  background: none;
  border: none;
  color: var(--ask-muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}

.ask-close:hover {
  color: var(--ask-white);
}

.ask-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ask-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.5;
  word-wrap: break-word;
}

.ask-msg.bot {
  align-self: flex-start;
  background: rgba(59, 130, 246, 0.12);
  color: var(--ask-white);
  border: 1px solid rgba(59, 130, 246, 0.2);
  line-height: 1.55;
}

.ask-msg.bot strong {
  color: #fff;
  font-weight: 700;
}

.ask-msg.user {
  align-self: flex-end;
  background: var(--ask-blue);
  color: #fff;
}

.ask-msg.typing {
  color: var(--ask-muted);
  font-style: italic;
}

.ask-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.ask-quick button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--ask-border);
  color: var(--ask-blue-light);
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.ask-quick button:hover {
  background: rgba(59, 130, 246, 0.15);
}

.ask-input-row {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--ask-border);
  background: var(--ask-navy);
}

.ask-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ask-border);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ask-white);
  font-size: 13px;
  font-family: inherit;
}

.ask-input-row input::placeholder {
  color: var(--ask-muted);
}

.ask-input-row input:focus {
  outline: none;
  border-color: var(--ask-blue);
}

.ask-input-row button {
  background: var(--ask-blue);
  border: none;
  border-radius: 8px;
  color: #fff;
  padding: 0 14px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
}

.ask-input-row button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.ask-cta {
  margin-top: 8px;
  display: inline-block;
  font-size: 12px;
  color: var(--ask-blue-light);
  text-decoration: underline;
}

.ask-offer-text {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
}

.ask-offer-btn {
  background: transparent;
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--ask-blue-light);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ask-offer-btn:hover {
  background: rgba(59, 130, 246, 0.12);
}

.ask-sample-wrap {
  max-width: 100% !important;
  width: 100%;
}

.ask-sample-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.ask-sample-form label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ask-muted);
  margin-top: 4px;
}

.ask-sample-form label .req {
  color: var(--ask-blue-light);
}

.ask-sample-form label .optional {
  text-transform: none;
  letter-spacing: 0;
  font-size: 10px;
  opacity: 0.85;
}

.ask-sample-form input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--ask-border);
  border-radius: 6px;
  padding: 9px 10px;
  color: var(--ask-white);
  font-size: 13px;
  font-family: inherit;
}

.ask-sample-form input:focus {
  outline: none;
  border-color: var(--ask-blue);
}

.ask-sample-form button[type='submit'] {
  margin-top: 6px;
  background: var(--ask-blue);
  border: none;
  border-radius: 6px;
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.ask-sample-form button[type='submit']:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ask-sample-note {
  margin: 4px 0 0;
  font-size: 10px;
  color: var(--ask-muted);
  line-height: 1.4;
}

@media (max-width: 480px) {
  #ask-tekcapitol-root {
    bottom: 16px;
    right: 16px;
    left: 16px;
  }
  #ask-tekcapitol-btn {
    width: 100%;
    justify-content: center;
  }
  #ask-tekcapitol-panel {
    width: 100%;
  }
}
