/* Agent question card — styled to match callout blocks */
.card {
  background: var(--chat-system-bg);
  border: 1px solid var(--accent-bg-strong);
  border-left: 3px solid var(--accent-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-4) var(--space-5);
  margin: var(--space-3) 0;
  box-shadow: var(--shadow-md);
}

.label {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
}

.label::before {
  content: "?";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(var(--accent-primary-rgb), 0.15);
  font-size: 11px;
  font-weight: 800;
}

/* Progress bar (multi-question wizard) */
.progressBar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.progressText {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.progressTrack {
  flex: 1;
  height: 3px;
  background: var(--hover-bg);
  border-radius: 2px;
  overflow: hidden;
}

.progressFill {
  height: 100%;
  background: var(--accent-primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.questionBlock {
  margin-bottom: 14px;
}

.header {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.question {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.options {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.option {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 14px;
  background: var(--hover-bg-subtle);
  border: 1px solid var(--divider);
  border-radius: 8px;
  cursor: pointer;
  text-align: left;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
  transition: border-color var(--transition-fast), background var(--transition-fast),
              transform var(--transition-fast);
}

.option:hover {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  background: rgba(var(--accent-primary-rgb), 0.05);
  transform: translateX(2px);
}

.optionLabel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.optionLabel::before {
  content: "";
  display: none;
}

.optionDesc {
  font-size: 12px;
  color: var(--text-dim);
}

.option.optionSelected,
.option.optionSelected:hover {
  border-color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.16);
  box-shadow: 0 0 0 1px rgba(var(--accent-primary-rgb), 0.3);
}

.option.optionSelected .optionLabel {
  color: var(--accent-primary);
}

.option.optionSelected .optionLabel::before {
  content: "\2713";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: var(--on-accent);
  font-size: 10px;
  line-height: 1;
}

.confirmBtn {
  display: block;
  width: 100%;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: rgba(var(--accent-primary-rgb), 0.1);
  border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
  border-radius: 8px;
  color: var(--accent-primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.confirmBtn:hover {
  background: rgba(var(--accent-primary-rgb), 0.18);
}

.divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 12px;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--hover-bg);
}

.freeformRow {
  display: flex;
  gap: 8px;
}

.freeformInput {
  flex: 1;
  background: var(--hover-bg-subtle);
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 13px;
  font-family: inherit;
  line-height: 1.5;
  outline: none;
  resize: none;
  min-height: 38px;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.freeformInput:focus {
  border-color: rgba(var(--accent-primary-rgb), 0.3);
  box-shadow: 0 0 0 3px rgba(var(--accent-primary-rgb), 0.06);
}

.freeformInput::placeholder {
  color: var(--text-faint);
}

.submitBtn {
  background: transparent;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
  color: var(--accent-dim);
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  align-self: flex-end;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.submitBtn:hover:not(:disabled) {
  background: rgba(var(--accent-primary-rgb), 0.08);
  color: var(--accent-primary);
}

.submitBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Navigation row (multi-question wizard) */
.navRow {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
}

.navBtn {
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid rgba(var(--accent-primary-rgb), 0.25);
  color: var(--accent-primary);
  background: rgba(var(--accent-primary-rgb), 0.08);
  transition: background var(--transition-fast), opacity var(--transition-fast);
}

.navBtn:hover:not(:disabled) {
  background: rgba(var(--accent-primary-rgb), 0.18);
}

.navBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.backBtn {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--divider);
}

.backBtn:hover:not(:disabled) {
  background: var(--hover-bg-subtle);
  color: var(--text-primary);
}
